]> git.pld-linux.org Git - packages/amavisd-new.git/commitdiff
- unify formatting of 5xx answer/log messages
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 9 Sep 2005 11:51:30 +0000 (11:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    amavisd-new-unify-log-format.patch -> 1.1

amavisd-new-unify-log-format.patch [new file with mode: 0644]

diff --git a/amavisd-new-unify-log-format.patch b/amavisd-new-unify-log-format.patch
new file mode 100644 (file)
index 0000000..2363b85
--- /dev/null
@@ -0,0 +1,24 @@
+--- amavisd-new-2.2.1/amavisd.orig     2004-12-23 02:38:39.000000000 +0100
++++ amavisd-new-2.2.1/amavisd  2005-09-09 13:43:08.822055536 +0200
+@@ -7326,8 +7326,8 @@
+           $reason = substr($reason,0,100)."..."  if length($reason) > 100+3;
+           $r->recip_smtp_response( ($final_destiny == D_DISCARD
+                                     ? "250 2.7.1 Ok, discarded"
+-                                    : "550 5.7.1 Message content rejected") .
+-                                   ", id=$am_id - $reason");
++                                    : "550 5.7.1 Message content rejected, $reason"
++                                ) . ", id=$am_id");
+           $r->recip_done(1);
+           # note that 5xx status rejects may later be converted to bounces or
+           # discards, according to $*_destiny setting
+@@ -7414,8 +7414,8 @@
+           my($reason) = (split(/\n/, $bad_headers[0]))[0];
+           $r->recip_smtp_response(($final_destiny == D_DISCARD
+                       ? "250 2.6.0 Ok, message with invalid header discarded"
+-                      : "554 5.6.0 Message with invalid header rejected"
+-                    ) . ", id=$am_id - $reason");
++                      : "554 5.6.0 Message with invalid header rejected, $reason"
++                    ) . ", id=$am_id");
+           $r->recip_done(1);
+           $any_badh++;
+         }
This page took 0.038798 seconds and 4 git commands to generate.