Results 1 to 4 of 4

Thread: IMAP Migration - "Answered Flag"

  1. #1
    jefft@iri.columbia.edu is offline Senior Member
    Join Date
    Aug 2007
    Location
    New York
    Posts
    56
    Rep Power
    8

    Question IMAP Migration - "Answered Flag"

    In my UW-IMAP schema, there is a flag titled '\Answered', which shows that the email in question has been replied to. As I am migrating my users, I'd like to set the appropriate flag in Zimbra. Is there such a flag?

    In fact, is there a list of IMAP system flags somewhere that I can map from my current IMAP server to zimbra?

    If anyone has migrated from a UW-IMAP server to a Zimbra server, I'd love to talk with them.

    I am currently running Zimbra 4.5.6 on Mac OSX 10.4 using the imapsync-1.219 program recommended by Zimbra.

    Thanks for any help.

    Jeffrey Turmelle
    IRI of Columbia University

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

    Default

    Zimbra supports all the standard IMAP system flags as defined in RFC 3501 section 2.3.2. These are:
    \Seen
    Message has been read

    \Answered
    Message has been answered

    \Flagged
    Message is "flagged" for urgent/special attention

    \Deleted
    Message is "deleted" for removal by later EXPUNGE

    \Draft
    Message has not completed composition (marked as a draft).
    Zimbra also supports the $MDNSent keyword from RFC 3503.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    sholden is offline Junior Member
    Join Date
    Aug 2007
    Posts
    8
    Rep Power
    7

    Default

    I've hacked up a perl script to load a courier Maildir of mail into zimbra (some of our accounts have 20GB of mail which according to our quick calculation would take imapsync about a week to transfer (since the from server was loaded))...

    What I don't know how to do is set those \Answered flags, the snippet of code that runs for each message (it's using expect to communicate with zmmailbox) is (note, perl not PHP but the PHP tag seemed to work OK):

    PHP Code:
            my $msgfile "$dir/cur/$_";
            
    my $msecs = (stat $msgfile)[9] * 1000;
            
    $exp->send(qq{addMessage -d $msecs "$folder" "$msgfile"\n});
            
    $exp->expect(10'-re''mbox.*?> \d+ ');
            if (
    $exp->match()=~/mbox.*?> (\d+)/) {
                my $mid = $1;
                # .D. - this is a 'draft' message
                # .R. - this message has been replied to
                # .S. - this message has been viewed (seen)
                # .T. - this message has been marked to be deleted (trashed)
                # .F. - this message has been marked by the user, for some purpose.
                if ($msgfile=~/.*:2,(.+)/) {
                    my $tags = $1;
                    my %tags;
                    for my $tag (split //, $tags) {
                        $tags{$tag} = 1;
                    }
                    if ($tags{'D'}) {
                           print MISSED "$mid\tdraft\n";
                    }
                    if ($tags{'R'}) {
                           print MISSED "$mid\treplied\n";
                    }
                    if ($tags{'S'}) {
                           $exp->send("markMessageRead $mid 1\n");
                           $exp->expect(10,'-re',"mbox.*>");
                    } else {
                           $exp->send("markMessageRead $mid 0\n");
                           $exp->expect(10,'-re',"mbox.*>");
                    }
                    if ($tags{'T'}) {
                           print MISSED "$mid\ttrash\n";
                    }
                    if ($tags{'F'}) {
                           $exp->send("flagMessage $mid 1\n");
                           $exp->expect(10,'-re',"mbox.*>");
                    } else {
                           $exp->send("flagMessage $mid 0\n");
                           $exp->expect(10,'-re',"mbox.*>");
                    }
                }
            } 
    Is there a zmmailbox command I can use to set the \Answered flags?

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

    Default

    Embarrassingly enough, I don't believe that there is. If you could please add an enhancement request in bugzilla, we'll try to get to it as quickly as possible.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 37
    Last Post: 12-28-2010, 06:02 PM
  2. IMAP Migration
    By mclain in forum Migration
    Replies: 6
    Last Post: 07-31-2007, 06:33 AM
  3. Thunderbird IMAP Migration problem
    By rsmithh in forum Migration
    Replies: 6
    Last Post: 06-08-2007, 02:34 PM
  4. Problem with IMAP
    By kernelpanic in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 03-10-2006, 05:44 AM
  5. Error on IMAP - Tomcat crashes!
    By rodrigoccurvo in forum Administrators
    Replies: 5
    Last Post: 11-30-2005, 07:14 PM

Posting Permissions

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