[Bps-public-commit] Net-IMAP-Server branch, master, updated. 1.28-3-g0a02ed1

Alex Vandiver alexmv at bestpractical.com
Wed Jun 23 12:52:15 EDT 2010


The branch, master has been updated
       via  0a02ed15deaefb2a93b9adabeeb13efb8fd19876 (commit)
      from  6f5d21a2de3a9c77e93de6982b3d6266d0a2aaf2 (commit)

Summary of changes:
 lib/Net/IMAP/Server/Message.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 0a02ed15deaefb2a93b9adabeeb13efb8fd19876
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Jun 17 11:39:25 2010 -0400

    06cb857 and a7f5e24 are incorrect; it is a bug in DateTime::Format::Strptime
    
    DateTime::Format::Strptime parses %d with a leading space, but passes
    it on to DateTime, still with the leading space, which fails.  See
    [rt.cpan.org #58459].

diff --git a/lib/Net/IMAP/Server/Message.pm b/lib/Net/IMAP/Server/Message.pm
index 6294dd4..3e52c0d 100644
--- a/lib/Net/IMAP/Server/Message.pm
+++ b/lib/Net/IMAP/Server/Message.pm
@@ -12,7 +12,7 @@ use DateTime;
 
 use DateTime::Format::Strptime;
 use DateTime::Format::Mail;
-use constant INTERNALDATE_PARSER => DateTime::Format::Strptime->new(pattern => "%n%e-%b-%Y %T %z");
+use constant INTERNALDATE_PARSER => DateTime::Format::Strptime->new(pattern => "%e-%b-%Y %T %z");
 use constant HEADERDATE_PARSER => DateTime::Format::Mail->new->loose;
 
 # Canonical capitalization

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list