Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-2007, 08:30 AM
Intermediate Member
 
Posts: 22
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??

Reply With Quote
  #2 (permalink)  
Old 05-19-2007, 01:42 PM
Intermediate Member
 
Posts: 22
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).
Reply With Quote
  #3 (permalink)  
Old 05-19-2007, 01:51 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #4 (permalink)  
Old 05-19-2007, 02:01 PM
Intermediate Member
 
Posts: 22
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 02:06 PM..
Reply With Quote
  #5 (permalink)  
Old 05-19-2007, 02:09 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #6 (permalink)  
Old 05-19-2007, 02:24 PM
Intermediate Member
 
Posts: 22
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 02:30 PM..
Reply With Quote
  #7 (permalink)  
Old 05-19-2007, 02:33 PM
Zimbra Employee
 
Posts: 1,434
Default Not A Perl Hacker

...but you may have to use "\\" in order to escape the backslash.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #8 (permalink)  
Old 05-19-2007, 02:39 PM
Intermediate Member
 
Posts: 22
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!
Reply With Quote
  #9 (permalink)  
Old 05-20-2007, 10:39 AM
Junior Member
 
Posts: 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!
Reply With Quote
  #10 (permalink)  
Old 05-20-2007, 11:08 AM
Intermediate Member
 
Posts: 22
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.