aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sink.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sink.c b/sink.c
index d21a10b3..ad9b0240 100644
--- a/sink.c
+++ b/sink.c
@@ -862,8 +862,16 @@ int open_warning_by_mail(struct query *ctl)
struct msgblk msg = {NULL, NULL, "FETCHMAIL-DAEMON", 0};
if (!MULTIDROP(ctl))
+ {
msg.recipients = ctl->localnames;
+ /*
+ * Ick. This could get us in trouble someday, but
+ * it's necessary in order to fool open_sink().
+ */
+ msg.recipients->val.status.mark = XMIT_ACCEPT;
+ }
+
return(open_sink(ctl, &msg, &good, &bad));
}