Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi guys!

So, I'm using imapsync to sync mailboxes from Zimbra to Google Workpsace. It's a sucessable process, but, only one mailbox, are not working. On my imapsync LOG, on SEARCH ALL part, it's found 23k messages on Host 1. But, on Host 1 Nb messages and folders, anyone was found. I've already tried with --noabletosearch and --nochecknoabletosearch commands, but without success. Anyone has any idea? Remember, only one account has this problem. All the others have worked.

Thanks :)

You must be logged in to vote

Replies: 2 comments · 7 replies

Comment options

Try with --timeout 600

You must be logged in to vote
3 replies
@gustavoluig
Comment options

Hi @gilleslamiral ! So, timeout it's not my problem :(

All connections were successable, in log file any error are detected. So, my problem is: when I'm accessing the zimbra account, I can see all messages and in log on SEARCH ALL part, the messages were found. But, on section "messages found on host1", what is zimbra server, 0 messages were found.

@gilleslamiral
Comment options

So, timeout it's not my problem :(

How do you know timeout is not your problem?
If you tried with --timeout 600 with the same result then it may be something else but if you didn't try, well, you're better than me at imapsync.
--debugimap1 can help as well.

@gustavoluig
Comment options

Sorry @gilleslamiral, I've expressed bad! I've tried to execute with --timeout 600 and same situation has occured. That's why I've said "timeout it's not my problem", I'm sorry for the way I said it!

So, I've tried now with --debugimap1 and get some erros. I'll post part of log here

Host1: success login on [correio.cariacica.es.gov.br] with user [hudson.souza@cariacica.es.gov.br] auth [PLAIN] or [LOGIN]
ERROR: 5 NO LIST failed at /usr/share/perl5/Mail/IMAPClient.pm line 1388.
	Mail::IMAPClient::__ANON__("5 NO LIST failed\x{d}\x{a}") called at /usr/share/perl5/Mail/IMAPClient.pm line 1424
	Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x55975affd6f0), 5, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1350
	Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST \"\" *") called at /usr/share/perl5/Mail/IMAPClient.pm line 1248
	Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST \"\" *") called at /usr/share/perl5/Mail/IMAPClient.pm line 679
	Mail::IMAPClient::_list_or_lsub(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST", undef, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 685
	Mail::IMAPClient::list(Mail::IMAPClient=HASH(0x55975affd6f0), undef, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 723
	Mail::IMAPClient::_folders_or_subscribed(Mail::IMAPClient=HASH(0x55975affd6f0), "list", undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 745
	Mail::IMAPClient::folders(Mail::IMAPClient=HASH(0x55975affd6f0)) called at /usr/bin/imapsync line 2105
	main::single_sync(HASH(0x55975abc2080), HASH(0x559758cbd4b8), HASH(0x55975abc2548)) called at /usr/bin/imapsync line 1367
ERROR: 5 NO LIST failed at /usr/share/perl5/Mail/IMAPClient.pm line 1298.
	Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST \"\" *") called at /usr/share/perl5/Mail/IMAPClient.pm line 679
	Mail::IMAPClient::_list_or_lsub(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST", undef, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 685
	Mail::IMAPClient::list(Mail::IMAPClient=HASH(0x55975affd6f0), undef, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 723
	Mail::IMAPClient::_folders_or_subscribed(Mail::IMAPClient=HASH(0x55975affd6f0), "list", undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 745
	Mail::IMAPClient::folders(Mail::IMAPClient=HASH(0x55975affd6f0)) called at /usr/bin/imapsync line 2105
	main::single_sync(HASH(0x55975abc2080), HASH(0x559758cbd4b8), HASH(0x55975abc2548)) called at /usr/bin/imapsync line 1367
Host1: found 0 folders.

Sending: 9 LIST "" *
Sent 13 bytes
Read: 	9 NO LIST failed
ERROR: 9 NO LIST failed at /usr/share/perl5/Mail/IMAPClient.pm line 1388.
	Mail::IMAPClient::__ANON__("9 NO LIST failed\x{d}\x{a}") called at /usr/share/perl5/Mail/IMAPClient.pm line 1424
	Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x55975affd6f0), 9, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1350
	Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST \"\" *") called at /usr/share/perl5/Mail/IMAPClient.pm line 1248
	Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST \"\" *") called at /usr/share/perl5/Mail/IMAPClient.pm line 679
	Mail::IMAPClient::_list_or_lsub(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST") called at /usr/share/perl5/Mail/IMAPClient.pm line 685
	Mail::IMAPClient::list(Mail::IMAPClient=HASH(0x55975affd6f0)) called at /usr/bin/imapsync line 2297
	main::single_sync(HASH(0x55975abc2080), HASH(0x559758cbd4b8), HASH(0x55975abc2548)) called at /usr/bin/imapsync line 1367
ERROR: 9 NO LIST failed at /usr/share/perl5/Mail/IMAPClient.pm line 1298.
	Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST \"\" *") called at /usr/share/perl5/Mail/IMAPClient.pm line 679
	Mail::IMAPClient::_list_or_lsub(Mail::IMAPClient=HASH(0x55975affd6f0), "LIST") called at /usr/share/perl5/Mail/IMAPClient.pm line 685
	Mail::IMAPClient::list(Mail::IMAPClient=HASH(0x55975affd6f0)) called at /usr/bin/imapsync line 2297
	main::single_sync(HASH(0x55975abc2080), HASH(0x559758cbd4b8), HASH(0x55975abc2548)) called at /usr/bin/imapsync line 1367
Host1: folders list (first the raw imap format then the [X] = [Y]):
Use of uninitialized value $_[1] in print at /usr/share/perl5/IO/Tee.pm line 132.

//////////////////////////////////////////////////////////////////////
Host2: folders list (first the raw imap format then the [X] = [Y]):
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasChildren \Noselect) "/" "[Gmail]"
* LIST (\Flagged \HasNoChildren) "/" "[Gmail]/Com estrela"
* LIST (\HasNoChildren \Sent) "/" "[Gmail]/E-mails enviados"
* LIST (\HasNoChildren \Important) "/" "[Gmail]/Importante"
* LIST (\HasNoChildren \Trash) "/" "[Gmail]/Lixeira"
* LIST (\Drafts \HasNoChildren) "/" "[Gmail]/Rascunhos"
* LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
* LIST (\All \HasNoChildren) "/" "[Gmail]/Todos os e-mails"
10 OK Success


////////////////////////////////////////////////////////////////////

Checking SEARCH ALL works on both accounts. To avoid that check, use --nochecknoabletosearch
Host1: checking if SEARCH ALL works on INBOX
Sending: 10 SELECT INBOX
Sent 17 bytes
Read: 	* 23118 EXISTS
  	* 20 RECENT
  	* OK [UNSEEN 118] mailbox contains unseen messages
  	* OK [UIDVALIDITY 1] UIDs are valid for this mailbox
  	* OK [UIDNEXT 126374] next expected UID is 126374
  	* FLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded $MDNSent Forwarded $Junk $NotJunk Junk JunkRecorded NonJunk NotJunk)
  	* OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded $MDNSent Forwarded \*)] junk-related flags are not permanent
  	* OK [HIGHESTMODSEQ 188285] modseq tracked on this mailbox
  	10 OK [READ-WRITE] SELECT completed
Host1: folder [INBOX] has 23118 messages mentioned by SELECT
Comment options

#426
https://imapsync.lamiral.info/FAQ.d/FAQ.Zimbra.txt

=======================================================================
Q. Imapsync finds 0 folders on a Zimbra account.

A. Check there are no broken mountpoints in the account you are trying 
   to sync. Broken mountpoints appear strike through in the webmail.

   Just remove the broken mountpoint (clicking on it in the webmail 
   will show a popup you just have to confirm) and Zimbra will stop 
   answering there's zero IMAP folder to the LIST "" *.

   From https://github.com/imapsync/imapsync/issues/426

=======================================================================
You must be logged in to vote
4 replies
@gustavoluig
Comment options

Hi @gilleslamiral ! So, I've checked on my Zimbra mailbox, but I doesn't found any broken mountpoints :(

And, if I've understood correctly, in this issue INBOX can be sync. In my case, imapsync not found any message on inbox too.

I've downloaded the user mailbox using zimbra ui to confirm, and all messages come

@gilleslamiral
Comment options

Can you see this mailbox with another IMAP client like Thunderbird?

@gustavoluig
Comment options

@gilleslamiral I've tested now and yes, I can see messages on IMAP client, I'll attach the image

image

@gilleslamiral
Comment options

Ok.

I have no clue.

What says the Zimbra server log when imapsync accesses this imap account?

In a previous log, you sent:

Read: 	* 23118 EXISTS
  	* 20 RECENT
  	* OK [UNSEEN 118] mailbox contains unseen messages

It was very different than 2555 or 118.
Are you on the same server as before with this image?
Is there only INBOX in this Zimbra account? No Sent folder? No Spam folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
Folders Folders issues Zimbra
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.