From 9c4ad90e43932a82d8ada4b21e1b107ea94b8252 Mon Sep 17 00:00:00 2001
From: Gilles Chehade <gilles@cvs.openbsd.org>
Date: Thu, 6 Aug 2009 14:12:49 +0000
Subject: - 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

---
 usr.sbin/smtpd/smtpd.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'usr.sbin/smtpd/smtpd.h')

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 *);
-- 
cgit v1.2.3