IMAP Sync and "received" date

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
Arura
Posts: 8
Joined: Fri Sep 12, 2014 10:15 pm

IMAP Sync and "received" date

Postby Arura » Tue Jan 09, 2007 8:05 am

[quote user="10330phoenix"]Which email client are you using? I've just tried it and it's working. Can you confirm the actual version of Zimbra you're using?[/QUOTE]
I have asked support and version is: ZCS 4.0.5


Arura
Posts: 8
Joined: Fri Sep 12, 2014 10:15 pm

IMAP Sync and "received" date

Postby Arura » Tue Jan 09, 2007 8:12 am

[quote user="10330phoenix"]I suggest that you contact your provider and give them the details of your problem, they can contact Zimbra support for you. It seems (to me) that the "/tb" hack has stopped working, there is an outstanding bug entry in bugzilla here. When you contact your provider can you get them to mention whether they're using an external LDAP for authentication or whether it's Zimbra internal authentication.[/QUOTE]
They use Zimbra Internal Authentication.
phoenix
Ambassador
Ambassador
Posts: 26415
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

IMAP Sync and "received" date

Postby phoenix » Tue Jan 09, 2007 8:18 am

So in your IMAP client you are putting your login information as 'username/tb' (or username@domain.com/tb) and it's failing to log you in, is that what you're saying? I've tried that with Evolution, Thunderbird and evn Outlook and the '/tb' allows me to login. Make sure that you don't have a space between your login id & the '/tb'.
Can you confirm which client you're using? What error message are you seeing?
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Arura
Posts: 8
Joined: Fri Sep 12, 2014 10:15 pm

IMAP Sync and "received" date

Postby Arura » Tue Jan 09, 2007 8:41 am

[quote user="10330phoenix"]So in your IMAP client you are putting your login information as 'username/tb' (or username@domain.com/tb) and it's failing to log you in, is that what you're saying? I've tried that with Evolution, Thunderbird and evn Outlook and the '/tb' allows me to login. Make sure that you don't have a space between your login id & the '/tb'.
Can you confirm which client you're using? What error message are you seeing?[/QUOTE]
With latest thunderbird.

Login to server ****** failed.
phoenix
Ambassador
Ambassador
Posts: 26415
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

IMAP Sync and "received" date

Postby phoenix » Tue Jan 09, 2007 8:51 am

All I can say is that it works for me on Thunderbird 1.5 & 2beta. Is this a single account you have at this host or is there a test account I can login to? send me the detail sby PM if you want me to try a login.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Rich Graves
Outstanding Member
Outstanding Member
Posts: 687
Joined: Fri Sep 12, 2014 10:24 pm

IMAP Sync and "received" date

Postby Rich Graves » Thu Jan 18, 2007 9:05 am

At revision 1.200, imapsync was changed to use append_file() instead of append_string(). This can be a good thing; otherwise, large messages need to be duplicated in RAM as perl strings, which can be expensive. See
But">http://www.mail-archive.com/info-cyrus@lists.andrew.cmu.edu/msg31356.html
But
this broke the --syncinternaldates option because Mail::IMAPClient version 2.2.9 ignores the 4th argument. Correct replication of INTERNALDATE is *critical* for migrations to Zimbra.
The /tb flag suggested in this thread doesn't really do the right thing. If we considered Date: headers to be trustworthy, then Zimbra would just use Date: rather than INTERNALDATE. (Although I must say, there are times that I wish it did, or at least that I could choose when searching/sorting.)
The best fix would be to change the behavior of append_file() in Mail::IMAPClient, which doesn't seem to have been maintained since 2003, to accept and act on the same arguments as append_string(). Alternatively, undo the imapsync 1.199->1.200 change and use append_string(), and make sure you have lots of RAM on the imapsync host.
phoenix
Ambassador
Ambassador
Posts: 26415
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

IMAP Sync and "received" date

Postby phoenix » Thu Jan 18, 2007 9:27 am

Thanks for that information, very interesting. Now, I wonder if there's any coders up for the challenge.:)
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
marcdm
Posts: 6
Joined: Fri Sep 12, 2014 10:23 pm

IMAP Sync and "received" date

Postby marcdm » Sat Jan 20, 2007 7:00 pm

I downloaded the latest imapsync (version 1.204) and modified it to use append_string so that --syncinternal dates would work properly.
Lines 1123 to 1132 are as below.
unless ($dry) {

my $mmstr = file_to_string($message_file);

unless($new_id = $to->append_string($t_fold,$mmstr, $flags_f, $d)){

#unless($new_id = $to->append_file($t_fold, $message_file, $flags_f, $d)){

warn "Couldn't append msg #$f_msg (Subject:[".$from->subject($f_msg)."]) to folder $t_fold: ",

$to->LastError, "
";

$error++;

$mess_size_total_error += $f_size;

next MESS;


The change is the introduction of the $mmstr variable and the use of $to->append_string instead of $to->append_file (commented out)
Warning : This will use more RAM per message but it syncs the internal dates properly.
RJB
Posts: 13
Joined: Fri Sep 12, 2014 10:24 pm

IMAP Sync and "received" date

Postby RJB » Sat Jan 20, 2007 8:13 pm

Perfect .... it works :)
Also other flags are now good.

Like read/unread and zimbra-tags.
bobby
Zimbra Employee
Zimbra Employee
Posts: 515
Joined: Fri Sep 12, 2014 10:01 pm

IMAP Sync and "received" date

Postby bobby » Mon Jan 22, 2007 5:15 pm

can't you just uncomment the append_string line that's already there?
#unless($new_id = $to->append_string($t_fold,$string, $flags_f, $d)){

unless($new_id = $to->append_file($t_fold, $message_file, $flags_f, $d)){

Return to “Migration”

Who is online

Users browsing this forum: No registered users and 3 guests