aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix1/files/patch-src::cleanup_message.c
blob: 9136591841bf4b275a9834c919943ab9cc70370d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- ./src/cleanup/cleanup_message.c.orig	Tue Nov 27 16:55:39 2001
+++ ./src/cleanup/cleanup_message.c	Tue Nov 27 16:58:43 2001
@@ -269,6 +269,10 @@
 		state->errs |= CLEANUP_STAT_CONT;
 	    } else if (strcasecmp(value, "IGNORE") == 0) {
 		return;
+	    } else if (strcasecmp(value, "WARN") == 0) {
+		msg_info("%s: warning: header %.200s; from=<%s> to=<%s>",
+			state->queue_id, header, state->sender,
+			state->recip ? state->recip : "unknown");
 	    }
 	}
     }
@@ -498,6 +502,10 @@
 		    state->errs |= CLEANUP_STAT_CONT;
 		} else if (strcasecmp(value, "IGNORE") == 0) {
 		    return;
+		} else if (strcasecmp(value, "WARN") == 0) {
+		    msg_info("%s: warning: body %.200s; from=<%s> to=<%s>",
+			state->queue_id, buf, state->sender,
+			state->recip ? state->recip : "unknown");
 		}
 	    }
 	}