freebsd-ports/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin-Constants.pm
Cheng-Lung Sung ad9f9335fe - fix the issue
"SpamAssassin's sa-learn --mbx is broken"
  http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5101

PR:		ports/103308
Submitted by:	Larry Rosenman <ler_AT_lerctr dot org>
2006-10-02 01:11:06 +00:00

11 lines
601 B
Perl

--- lib/Mail/SpamAssassin/Constants.pm.orig Tue Aug 29 23:16:47 2006
+++ lib/Mail/SpamAssassin/Constants.pm Fri Sep 29 10:49:46 2006
@@ -265,7 +265,7 @@
# regular expression that matches message separators in The University of
# Washington's MBX mailbox format
-use constant MBX_SEPARATOR => qr/([\s|\d]\d-[a-zA-Z]{3}-\d{4}\s\d{2}:\d{2}:\d{2}.*),(\d+);([\da-f]{12})-(\w{8})/;
+use constant MBX_SEPARATOR => qr/^([\s|\d]\d-[a-zA-Z]{3}-\d{4}\s\d{2}:\d{2}:\d{2}.*),(\d+);([\da-f]{12})-(\w{8})\r?$/;
# $1 = datestamp (str)
# $2 = size of message in bytes (int)
# $3 = message status - binary (hex)