Invalid flag in Append command

Jared Watkins jared at watkins.net
Mon Mar 22 13:39:53 EST 2004


Cyrus Daboo wrote:

> Bottom line is: its a client bug - fix the client.


In this case.. the client is the imapmigrate tool from the Cyrus IMAPd 
Utilities project on sourceforge.

Just to have this in the archive...  around line 514 I've added a line 
that should ignore any Recent flags...

for $msg ($oldimap->search(ALL)) {
       my $msgtext = $oldimap->message_string($msg);
       my $flags = $oldimap->flags($msg);
       my $flg = "";
       for (@flags) {
               if ($_ eq "\\Recent") { next; }   # Added line
               $flg .= $_
       }
       chomp $flg;
        $newimap->append_string($newfolder, $msgtext, $flg);
}



That seems to take care of it...

Jared
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list