Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: imapsync error (\X-Has-Attach)

  1. #1
    roopeshsheth is offline Intermediate Member
    Join Date
    May 2007
    Posts
    22
    Rep Power
    8

    Default imapsync error (\X-Has-Attach)

    I'm currently using Scalix 11.0.4. I am interested in trying out ZCS. I've got the server setup fine, but when trying to imapsync my mailbox, I'm getting the following error:
    Code:
    BAD parse error: non-storable system tag "\X-Has-Attach"
    Has anyone seen this and/or know what to do??


  2. #2
    roopeshsheth is offline Intermediate Member
    Join Date
    May 2007
    Posts
    22
    Rep Power
    8

    Default

    I've spent at least two days on this issue, and will have to give up soon...
    Code:
    imapsync \
            --host1 mail.domain.com --user1 roopesh --password1 password \
            --host2 zimmail.domain.com --user2 roopesh --password2 password \
            --delete2 \
            --expunge2 \
            --authmech2 LOGIN \
            --nosyncacls \
            --syncinternaldates \
            --subscribe \
            --subscribe \
            --folder INBOX  \
            --nofastio1 \
            --nofastio2
    gives me
    Code:
    BAD parse error: non-storable system tag "\X-Has-Attach"
    on almost every message with an attachment (99%+). But not all (can't figure out the pattern, some .doc and rtf files make it through, not others).

    I've tried with/without subscribe, nofastio, syncinternaldates, nosyncacls, but everything returns me the same error on messages with attachments.

    I am trying to migrate mailboxes from Scalix 11.0.4 to Zimbra ZCS 4.5 (latest available).

  3. #3
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default You're kidding me.

    Basically, what you're running up against is that Scalix broke the IMAP specification in order to add some features to their web client.

    If you check out the flag and flag-extension productions in RFC 3501 section 9 (the ABNF grammar), you are not allowed to return a flag that starts with "\" unless it's one of the ones from RFC 3501 ("\Answered", "\Flagged", "\Deleted", "\Seen", "\Recent", or "\Draft") or it's defined in another RFC. Scalix pissed all over this, and as a result imapsync to any other server is probably going to fail.

    If there's a way to tell Scalix to not send non-standard system flags, try that. Otherwise, we may have to try to tweak imapsync to drop such flags.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    roopeshsheth is offline Intermediate Member
    Join Date
    May 2007
    Posts
    22
    Rep Power
    8

    Default

    Thanks for the quick response. I tried
    Code:
    --skipheader "X-Has-Attach"
    and
    Code:
    --regexflag 's/"X-Has-Attach"//g'
    but neither resolved the issue.

    I wish I could tell Scalix to do what I wanted! I don't see a way to force an RFC compliant response.

    I have been poking around in the imapsync code, but I haven't seen anything that would resolve this issue (yet). Please let me know if you have any ideas.

    FYI - There is also a Barracuda Spam Firewall that front-ends all my email. Could that be adding in the flag?

    Thanks!

    Roopesh Sheth
    Last edited by roopeshsheth; 05-19-2007 at 01:06 PM.

  5. #5
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default --regexflag

    Code:
    --regexflag   <regex>  : Apply the whole regex to each flags list.
                             Example : 's/\"Junk"//g' # to remove "Junk" flag.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  6. #6
    roopeshsheth is offline Intermediate Member
    Join Date
    May 2007
    Posts
    22
    Rep Power
    8

    Default Is this progress?

    So I applied
    Code:
    --regexflag 's/\X-Has-Attach//g'
    and now I get this:
    Code:
    BAD parse error: zero-length content
    But if I look at the output from imapsync, I see this:
    Code:
    now:
    flags from : [\Seen $MdnSent \]["12-Mar-2007 20:13:36 -0400"]
    before:
    flags from : [\Seen $MdnSent \X-Has-Attach]["12-Mar-2007 20:13:36 -0400"]
    Where the "\" is after $MdnSent is where the "\X-Has-Attach" used to be. I think I need to get rid of the "\".
    Last edited by roopeshsheth; 05-19-2007 at 01:30 PM.

  7. #7
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default Not A Perl Hacker

    ...but you may have to use "\\" in order to escape the backslash.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  8. #8
    roopeshsheth is offline Intermediate Member
    Join Date
    May 2007
    Posts
    22
    Rep Power
    8

    Default

    Ah, got it figured out:
    Code:
    --regexflag 's/\\X-Has-Attach//g'
    I immediately got another X-* flag called "\X-Forwarded". I changed the regex to
    Code:
    --regexflag 's/\\X-*//g'
    And everything works fine!

    Thanks!! Awesome help on a Saturday!

  9. #9
    illc0mm is offline Junior Member
    Join Date
    Jan 2006
    Posts
    9
    Rep Power
    9

    Default

    Doh!

    I too am migrating from Scalix. I realized this was a Scalix issue and honestly didn't think of even asking about it. I only had a handful of boxes to migrate for our testing so I just used the outlook migration tool.

    When we to move to production, however, this will make it much easier!

  10. #10
    roopeshsheth is offline Intermediate Member
    Join Date
    May 2007
    Posts
    22
    Rep Power
    8

    Default

    I looked at the Outlook Migration wizard, but I'm all Linux (yeah, baby!) and didn't want to deal with Crossover or Wine to run the .exe for the wizard.

    Good luck!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Migrating from Cyrus to Zimbra - imapsync
    By claud1e in forum Migration
    Replies: 4
    Last Post: 08-26-2009, 12:59 AM
  2. problems with imapsync from cyus
    By g8se in forum Migration
    Replies: 3
    Last Post: 02-22-2007, 07:52 PM
  3. imapsync & dovecot
    By PenguinWrangler in forum Migration
    Replies: 3
    Last Post: 01-18-2007, 03:36 PM
  4. imapsync "out of memory"
    By EFSNetworks in forum Administrators
    Replies: 9
    Last Post: 10-13-2006, 01:51 PM
  5. imapsync and mail filters
    By Coilcore in forum Administrators
    Replies: 5
    Last Post: 08-10-2006, 08:21 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
  •