aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exim-old/files
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-09-27 00:31:19 +0800
committersheldonh <sheldonh@FreeBSD.org>2001-09-27 00:31:19 +0800
commit05399b3ed8352d310a0d3aab667d6d3a2592be2c (patch)
tree656c574b6db584c0a3f2d0385f408d27100645fc /mail/exim-old/files
parent221d39f5015399f02701ee074478a63bed0bfae1 (diff)
downloadfreebsd-ports-gnome-05399b3ed8352d310a0d3aab667d6d3a2592be2c.tar.gz
freebsd-ports-gnome-05399b3ed8352d310a0d3aab667d6d3a2592be2c.tar.zst
freebsd-ports-gnome-05399b3ed8352d310a0d3aab667d6d3a2592be2c.zip
Fix the message_body_size filter variable bug reported by Phil Chambers
to the exim-users mailing list on 2001-09-19 using the patch posted to the list by the author on 2001-09-24. Bump PORTREVISION accordingly.
Diffstat (limited to 'mail/exim-old/files')
-rw-r--r--mail/exim-old/files/patch-src::filter.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/mail/exim-old/files/patch-src::filter.c b/mail/exim-old/files/patch-src::filter.c
new file mode 100644
index 000000000000..5b662add1022
--- /dev/null
+++ b/mail/exim-old/files/patch-src::filter.c
@@ -0,0 +1,31 @@
+Fix the message_body_size filter variable bug reported by Phil Chambers
+to the exim-users mailing list on 2001-09-19 using the patch posted to
+the list by the author on 2001-09-24.
+
+--- src/filter.c.orig Wed Aug 15 13:09:09 2001
++++ src/filter.c Wed Sep 26 18:16:20 2001
+@@ -2566,7 +2566,7 @@
+ BOOL
+ filter_runtest(int fd, BOOL is_system, BOOL dot_ended)
+ {
+-int rc, body_len, action;
++int rc, body_len, action, header_size;
+ register int ch;
+ BOOL yield, delivered;
+ struct stat statbuf;
+@@ -2658,6 +2658,7 @@
+ s = message_body_end;
+ body_len = 0;
+ body_linecount = 0;
++header_size = message_size;
+
+ if (!dot_ended && !feof(stdin))
+ {
+@@ -2713,6 +2714,7 @@
+ }
+
+ message_body[body_len] = 0;
++message_body_size = message_size - header_size;
+
+ /* body_len stops at message_body_visible; it if got there, we may have
+ wrapped round in message_body_end. */