Package: offlineimap
Version: 4.0.14
Severity: normal

I received a spam with a "Date:" header of "Tue, 31 Nov 2006".  It
downloaded fine, but when I moved it to my "spam" folder, it would crash
whenever it tried to upload the message (back to the IMAP server).

Obviously, there is no thirty-first of November, but offlineimap
doesn't recognise that; instead, it tries to send that date to the
IMAP server (Cyrus), which rejects it, causing a crash.

    Thread 'New msg sync from spam' terminated with exception:
    Traceback (most recent call last):
            [...]
    error: APPEND command error: BAD ['Invalid date-time in Append command']

    Last 11 debug messages logged for New msg sync from spam prior to exception:
    imap: savemessage: called
    imap: savemessage: using date "31-Nov-2006 18:42:06 -0500"
            [...]

Editing the mail and changing the "Date:" header to the 30th of
November made everything work fine again.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (400, 'testing'), (300, 'stable'), (200, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-686
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages offlineimap depends on:
ii  python                        2.4.3-11   An interactive high-level object-o
ii  python-support                0.4.3      automated rebuilding support for p

offlineimap recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to