summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-08-06 14:12:49 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-08-06 14:12:49 +0000
commit9c4ad90e43932a82d8ada4b21e1b107ea94b8252 (patch)
tree65675b74334ee29547d56e0c4cfb65e46c566e32 /usr.sbin/smtpd/smtpd.h
parentc2bde9abdefaba3e926607c03f01b078bae29015 (diff)
- introduce message_set_errormsg() to set the error description that will
appear in a bounce message, and message_get_errormsg() to retrieve that message. - when loop is detected, call message_set_errormsg() - in mta, call message_set_errormsg() for each recipient failure - in mta, call message_set_errormsg() to copy batch errors to recipients if we failed to deliver for a session related error - when bouncing, add the recipient and error reason to the bounce message
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 675efbb996b..f62491f1379 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.131 2009/08/06 13:40:45 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.132 2009/08/06 14:12:48 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -938,3 +938,5 @@ int valid_message_uid(char *);
char *time_to_text(time_t);
int secure_file(int, char *, struct passwd *);
void lowercase(char *, char *, size_t);
+void message_set_errormsg(struct message *, char *, ...);
+char *message_get_errormsg(struct message *);