ports/mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm

22 lines
808 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: lib/Log/Procmail.pm
--- lib/Log/Procmail.pm.orig
+++ lib/Log/Procmail.pm
@@ -59,7 +59,7 @@ sub next {
};
# assert: $read == 2;
- /^ Subject: (.*)/i && do {
+ /^ Subject:\s*(.*)/i && do {
push @{$log->{buffer}}, Log::Procmail::Abstract->new()
unless @{$log->{buffer}};
$log->{buffer}[0]->subject($1);
@@ -69,7 +69,7 @@ sub next {
# procmail tabulates with tabs and spaces... :-(
# assert: $read == 3;
# Folder means the end of this record
- /^ Folder: (.*?)\s+(\d+)$/ && do {
+ /^ Folder:\s*(.*?)\s+(\d+)$/ && do {
push @{$log->{buffer}}, Log::Procmail::Abstract->new()
unless @{$log->{buffer}};