Results 1 to 5 of 5

Thread: [SOLVED] imapsync invalid date format

  1. #1
    su_A_ve is offline Advanced Member
    Join Date
    Dec 2006
    Posts
    183
    Rep Power
    8

    Default [SOLVED] imapsync invalid date format

    Testing imapsync v1.223 from a test account under uw-imap to Zimbra 4.5.7 NE

    I'm running it with the following params:

    --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates \
    --noauthmd5 ...

    All folders got created, but no mail was transferred. Errors show as:

    + NO msg #57 [zRBqSixZzLW3oRh/L4/ohA:3056] in MYFolder
    + Copying msg #57:3056 to folder MYFolder
    flags from : [\Seen]["13 Jun 2002 18:11:04 -0400"]
    2107 BAD parse error: invalid date format
    at /usr/local/bin/imapsync line 1178
    Couldn't append msg #57 (Subject:[RE: subject...]) to folder MYFolder:
    2107 BAD parse error: invalid date format

    Any hints ??? TIA...

  2. #2
    rey
    rey is offline Active Member
    Join Date
    Jul 2007
    Location
    Brisbane, Australia
    Posts
    39
    Rep Power
    8

    Default

    I had the same problem under FreeBSD and Cyrus IMAP.
    Downgraded to imapsync ver 1.182 and things worked out.
    You can download from here Index of /prj/imapsync/dist

  3. #3
    su_A_ve is offline Advanced Member
    Join Date
    Dec 2006
    Posts
    183
    Rep Power
    8

    Default

    Excellet - that works !

  4. #4
    SPremeau is offline Intermediate Member
    Join Date
    Aug 2007
    Posts
    19
    Rep Power
    7

    Default

    It's an error on Line 1163 of ImapSync:

    Code:
    $d = UnixDate(ParseDate($d), "%d %b %Y %H:%M:%S %z");
    Should be
    Code:
    $d = UnixDate(ParseDate($d), "%d-%b-%Y %H:%M:%S %z");
    to be RFC compliant.

    After making that change, it works like a charm.

    Seems the previous versions just send the date on to the destination in the same (hopefully RFC compliant) format the source gave it to them, but the new version parses it and reformats it. (But not quite to RFC standards.)

  5. #5
    mmrc-mike is offline Junior Member
    Join Date
    Feb 2013
    Posts
    8
    Rep Power
    2

    Default

    perfect, thank SPremeau !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. Irish/UK date format
    By rniland in forum I18N/L10N - Translations
    Replies: 10
    Last Post: 02-11-2008, 12:24 AM
  3. 4.0 RC1 imapsync with admin???
    By kirme3 in forum Administrators
    Replies: 37
    Last Post: 07-19-2007, 09:52 AM
  4. Web Client Date Format & Firefox
    By bhickey in forum Administrators
    Replies: 1
    Last Post: 03-21-2007, 07:42 AM
  5. Replies: 1
    Last Post: 08-11-2006, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •