Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Folder CPAN distribution.

Report information
The Basics
Id: 32553
Status: rejected
Priority: 0/
Queue: Email-Folder

People
Owner: Nobody in particular
Requestors: bokutin [...] cpan.org
cornelius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.854
Fixed in: (no value)



Subject: fuzzy processing for end of mbox
mbp root # diff -C 10 /opt/local/lib/perl5/site_perl/5.8.8/Email/Folder/Mbox.pm.orig /opt/local/lib/perl5/site_perl/5.8.8/Email/Folder/Mbox.pm *** /opt/local/lib/perl5/site_perl/5.8.8/Email/Folder/Mbox.pm.orig 2008-01-23 15:25:35.000000000 +0900 --- /opt/local/lib/perl5/site_perl/5.8.8/Email/Folder/Mbox.pm 2008-01-23 16:22:11.000000000 +0900 *************** *** 185,204 **** --- 185,213 ---- /^From (?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)/ ); } else { # though, as jwz rants, only this is reliable and portable last if $prev eq $/ && /^From /; } $mail .= $prev; $prev = $_; } + if ($prev !~ m/^\n$/) { + # http://www.ietf.org/rfc/rfc4155.txt + # Each message in the database MUST be terminated by an empty + # line, containing a single end-of-line marker. + # + # fuzzy processing for mbox where hasn't terminated by an empty line + # for such mbox constructed by Email::LocalDelivery::Mbox. :) + $mail .= $prev; + } print "$count end of message line $.\n" if debug; return unless $mail; return $mail; } sub tell { my $self = shift; return tell $self->{_fh}; } mbp root #
Subject: mbox mail with one line content is ignored
the last line of mbox mail is ignored. if i create email content with "string" , and read the mbox by Email::Folder::mbox , the retrieved content will be empty and for content like "string\n\n" would be "string\n".
I'm afraid this patch no longer applies. I will promptly apply any new patch, and urge you to supply them at https://github.com/rjbs/Email-Folder I apologize for the delay leading to this situation. I am getting all these bugs in order, now. -- rjbs
I believe this is a duplicate of 32553, and will merge it, with the same resolution: If you can produce a patch, please submit to https://github.com/rjbs/Email-Folder Test cases would also be welcome. I am closing out this bug tracker to help make it easier to process incoming tickets. -- rjbs
I have filed https://github.com/rjbs/Email-Folder/issues/2 to track that a bug exists. -- rjbs