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

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 08-01-2007, 07:17 PM
Senior Member
 
Posts: 55
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
Reply With Quote
  #2 (permalink)  
Old 08-01-2007, 09:53 PM
Zimbra Employee
 
Posts: 1,434
Default

Zimbra supports all the standard IMAP system flags as defined in RFC 3501 section 2.3.2. These are:
Quote:
\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!
Reply With Quote
  #3 (permalink)  
Old 08-06-2007, 09:17 AM
Junior Member
 
Posts: 8
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?
Reply With Quote
  #4 (permalink)  
Old 08-06-2007, 07:34 PM
Zimbra Employee
 
Posts: 1,434
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!
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.