Giter VIP home page Giter VIP logo

Comments (9)

gilleslamiral avatar gilleslamiral commented on May 23, 2024

Hi Martijn,

Remove --subscribed

When running |imapsync| between two hosts, I am able to authenticate to both hosts.
Host 1 is a clean email account and host 2 contains many folders. When running imapsync, the folders are listed but no mails are transferred.

I'm not sure why this could be. Any help would be greatly appreciated! Below is my output of the imapsync command.
...
Command line used: imapsync ... --subscribed

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

from imapsync.

devos50 avatar devos50 commented on May 23, 2024

@gilleslamiral I tried it without the subscribed option but I get the same problem.

from imapsync.

gilleslamiral avatar gilleslamiral commented on May 23, 2024

Hi Martijn,

Show me the log.

On 26/01/2016 11:29, Martijn de Vos wrote:

@gilleslamiral https://github.com/gilleslamiral I tried it without the |subscribed| option but I get the same problem.

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

from imapsync.

devos50 avatar devos50 commented on May 23, 2024

@gilleslamiral running now without the subscribed option gives:

MBP-van-Martijn:imapsync-master martijndevos$ perl imapsync --host1 host1.com --user1 [email protected] --password1 secret --host2 mail.host2.com --user2 [email protected] --password2 secret
Transfer started at Tue Jan 26 16:19:48 2016
PID is 9754
Log file is LOG_imapsync/[email protected] ( to change it, use --logfile path ; or use --nolog to turn off logging )
$RCSfile: imapsync,v $ $Revision: 1.670 $ $Date: 2015/12/03 02:36:41 $ 
Here is a [darwin] system (Darwin MBP-van-Martijn 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64)
With perl 5.18.2 Mail::IMAPClient  3.37
Command line used:
imapsync --host1 bmcbouw.no-ip.org --user1 [email protected] --password1 MASKED --host2 mail.bmcbouw.nl --user2 [email protected] --password2 MASKED
Temp directory is /var/folders/r8/d63xy0dx62l8n8mdgpy8dxw00000gn/T  ( to change it use --tmpdir dirpath )
PID file is /var/folders/r8/d63xy0dx62l8n8mdgpy8dxw00000gn/T/imapsync.pid ( to change it use --pidfile filepath ; to avoid it use --pidfile "" )
Modules version list:
Mail::IMAPClient     3.37
IO::Socket           1.36
IO::Socket::IP       ?
IO::Socket::INET     1.33
IO::Socket::SSL      1.966
Net::SSLeay          1.58
Compress::Zlib       2.06
Digest::MD5          2.52
Digest::HMAC_MD5     1.01
Digest::HMAC_SHA1    1.03
Term::ReadKey        2.31
File::Spec           3.40
Time::HiRes          1.9725
Unicode::String      2.09
IO::Tee              0.64
File::Copy::Recursive 0.38
Authen::NTLM         ?
URI::Escape          3.31
Data::Uniqid         ?
JSON                 ?
JSON::WebToken       ?
Crypt::OpenSSL::RSA  0.28
LWP                  6.05
HTML::Entities       3.69
( use --no-modules_version to turn off printing this Perl modules list )
Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
Info: will try to use LOGIN authentication on host1
Info: will try to use LOGIN authentication on host2
Info: imap connexions timeout is 120 seconds
Host1: IMAP server [bmcbouw.no-ip.org] port [143] user [[email protected]]
Host2: IMAP server [mail.bmcbouw.nl] port [143] user [[email protected]]
Host1: connecting and login on host1 [bmcbouw.no-ip.org] port [143] with user [[email protected]]
Host1 banner: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot DA ready.
Host1: bmcbouw.no-ip.org says it has NO CAPABILITY for AUTHENTICATE LOGIN
Host1: success login on [bmcbouw.no-ip.org] with user [[email protected]] auth [LOGIN]
Host2: connecting and login on host2 [mail.bmcbouw.nl] port [143] with user [[email protected]]
Host2 banner: * OK Kerio MailServer 6.7.3 patch 1 IMAP4rev1 server ready
Host2: mail.bmcbouw.nl says it has CAPABILITY for AUTHENTICATE LOGIN
Host2: success login on [mail.bmcbouw.nl] with user [[email protected]] auth [LOGIN]
Host1: state Authenticated
Host2: state Authenticated
Host1 capability: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA
Host2 capability: IMAP4 IMAP4rev1 IDLE ACL LITERAL+ UIDPLUS QUOTA ID SORT ANNOTATE ANNOTATEMORE STATUS-COUNTERS UNSELECT LISTEXT NAMESPACE XLIST STARTTLS AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5

Host2: found quota, presented in raw IMAP
Sending: 4 GETQUOTAROOT INBOX
Sent 22 bytes
Read:   * QUOTAROOT "INBOX" "[email protected]"
    * QUOTA "[email protected]" ()
    4 OK GETQUOTAROOT completed

Host2: Quota current storage is 0 bytes. Limit is 0 bytes. So 0 % full
Host1: found 1 folders.
Host2: found 143 folders.
Including all folders found by default. Use --subscribed or --folder or --folderrec or --include to select specific folders. Use --exclude to unselect specific folders.
Host1: checking all wanted folders exist.
Host1: checking all wanted folders are selectable. Use --nocheckselectable to avoid this check.
Host1: guessing separator from folder listing: [/]
Host1: separator given by NAMESPACE: [.]
Host2: guessing separator from folder listing: [/]
Host2: separator given by NAMESPACE: [/]
Host1: guessing prefix from folder listing: []
Host1: prefix given by NAMESPACE: []
Host2: guessing prefix from folder listing: []
Host2: prefix given by NAMESPACE: []
Host1 separator and prefix: [.][]
Host2 separator and prefix: [/][]
Turned off automapping folders ( use --automap to turn on automapping )

++++ Listing folders
All foldernames are presented between brackets like [X] where X is the foldername.
When a foldername contains non-ASCII characters it is presented in the form
[X] = [Y] where
X is the imap foldername you have to use in command line options and
Y is the uft8 output just printed for convenience, to recognize it.

Host1 folders list:
[INBOX]

Host2 folders list:
[Archives]
[Concepten]
... many more...

Folders sizes before the synchronization.
You can remove foldersizes listings by using "--nofoldersizes" and  "--nofoldersizesatend"
but then you will also loose the ETA (Estimation Time of Arrival) given after each message copy.
++++ Calculating sizes of 1 folders on Host1
Host1 folder     1/1 [INBOX]                             Size:         0 Messages:     0 Biggest:         0
Host1 Nb folders:                1 folders
Host1 Nb messages:               0 messages
Host1 Total size:                0 bytes (0.000 KiB)
Host1 Biggest message:           0 bytes (0.000 KiB)
Host1 Time spent:              7.8 seconds
++++ Calculating sizes of 1 folders on Host2
Host2 folder     1/1 [INBOX]                             Size: 422549081 Messages:   743 Biggest:  40923307
Host2 Nb folders:                1 folders
Host2 Nb messages:             743 messages
Host2 Total size:        422549081 bytes (402.974 MiB)
Host2 Biggest message:    40923307 bytes (39.028 MiB)
Host2 Time spent:              2.8 seconds
++++ Looping on each one of 1 folders to sync
    1/1 [INBOX]                             -> [INBOX]                            
++++ End looping on each folder

Folders sizes after the synchronization.
You can remove this foldersizes listing by using  "--nofoldersizesatend"
++++ Calculating sizes of 1 folders on Host1
Host1 folder     1/1 [INBOX]                             Size:         0 Messages:     0 Biggest:         0
Host1 Nb folders:                1 folders
Host1 Nb messages:               0 messages
Host1 Total size:                0 bytes (0.000 KiB)
Host1 Biggest message:           0 bytes (0.000 KiB)
Host1 Time spent:              0.9 seconds
++++ Calculating sizes of 1 folders on Host2
Host2 folder     1/1 [INBOX]                             Size: 422549081 Messages:   743 Biggest:  40923307
Host2 Nb folders:                1 folders
Host2 Nb messages:             743 messages
Host2 Total size:        422549081 bytes (402.974 MiB)
Host2 Biggest message:    40923307 bytes (39.028 MiB)
Host2 Time spent:              2.2 seconds
++++ Statistics
Transfer started on               : Tue Jan 26 16:19:48 2016
Transfer ended on                 : Tue Jan 26 16:20:13 2016
Transfer time                     : 25.3 sec
Folders synced                    : 1/1 synced
Messages transferred              : 0 
Messages skipped                  : 0
Messages found duplicate on host1 : 0
Messages found duplicate on host2 : 0
Messages void (noheader) on host1 : 0
Messages void (noheader) on host2 : 0
Messages deleted on host1         : 0
Messages deleted on host2         : 0
Total bytes transferred           : 0 (0.000 KiB)
Total bytes duplicate host1       : 0 (0.000 KiB)
Total bytes duplicate host2       : 0 (0.000 KiB)
Total bytes skipped               : 0 (0.000 KiB)
Total bytes error                 : 0 (0.000 KiB)
Message rate                      : 0.0 messages/s
Average bandwidth rate            : 0.0 KiB/s
Reconnections to host1            : 0
Reconnections to host2            : 0
Memory consumption                : 2604.0 MiB
Biggest message                   : 0 bytes
Start difference host2 - host1    : 743 messages, 422549081 bytes (402.974 MiB)
Final difference host2 - host1    : 743 messages, 422549081 bytes (402.974 MiB)
Detected 0 errors


Homepage: http://imapsync.lamiral.info/
Log file is LOG_imapsync/[email protected] ( to change it, use --logfile filepath ; or use --nolog to turn off logging )

from imapsync.

gilleslamiral avatar gilleslamiral commented on May 23, 2024

Hi Martijn,

Host1 INBOX is empty.

Host1 folder 1/1 [INBOX] Size: 0 Messages: 0 Biggest: 0

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

from imapsync.

raimocom avatar raimocom commented on May 23, 2024

Hi Gilles,

hi somewhat experience the same issue here:

Host1 folder [INBOX] has 26 messages in total (mentioned by SELECT)
Host2 folder [foobar/INBOX] has 0 messages in total (mentioned by SELECT)
Host1 folder [INBOX] considering 0 messages
Host2 folder [foobar/INBOX] considering 0 messages

commandline options:

imapsync.exe ^
--user1 foo ^
--password1 foopass ^
--user2 bar ^
--password2 barpass ^
--host1 localhost ^
--host2 imap.gmail.com --ssl2 --authmech2 PLAIN ^
--nofoldersizes ^
--folder INBOX ^
--subfolder2 foobar ^
--logfile .%~n0.log.txt --debug

Manually copying the mails with Mozilla Thunderbird works without issues.

host1 is an old IMAP server from Germany (AVM Ken!). I´m trying to migrate to Gmail. Am using imapsync v1.727

Do i miss something or is this a bug?

Thanks for your excellent IMAP swiss army knife anyway! :)
Raimo

from imapsync.

gilleslamiral avatar gilleslamiral commented on May 23, 2024

Hi Raimo,

What is the whole log without --authmech2 PLAIN nor --debug?

What happens with --noabletosearch

imapsync.exe ... --noabletosearch

Le 19/09/2016 à 18:21, raimocom a écrit :

Hi Gilles,

hi somewhat experience the same issue here:

Host1 folder [INBOX] has 26 messages in total (mentioned by SELECT)
Host2 folder [foobar/INBOX] has 0 messages in total (mentioned by SELECT)
Host1 folder [INBOX] considering 0 messages
Host2 folder [foobar/INBOX] considering 0 messages

Au revoir,
Gilles Lamiral. France, Baulon (35580)
mob 06 19 22 03 54
tel 09 51 84 42 42

from imapsync.

raimocom avatar raimocom commented on May 23, 2024

--noabletosearch did the trick!

Host1 folder [INBOX] has 26 messages in total (mentioned by SELECT)
Host2 folder [foobar/INBOX] has 0 messages in total (mentioned by SELECT)
Host1 folder [INBOX] considering 26 messages
Host2 folder [foobar/INBOX] considering 0 messages

Syncing is in progress now . . .

Merci beaucoup, Gilles!

2016-09-20 3:12 GMT+02:00 Gilles LAMIRAL [email protected]:

Hi Raimo,

What is the whole log without --authmech2 PLAIN nor --debug?

What happens with --noabletosearch

imapsync.exe ... --noabletosearch

Le 19/09/2016 à 18:21, raimocom a écrit :

Hi Gilles,

hi somewhat experience the same issue here:

Host1 folder [INBOX] has 26 messages in total (mentioned by SELECT)
Host2 folder [foobar/INBOX] has 0 messages in total (mentioned by SELECT)
Host1 folder [INBOX] considering 0 messages
Host2 folder [foobar/INBOX] considering 0 messages

Au revoir,
Gilles Lamiral. France, Baulon (35580)
mob 06 19 22 03 54
tel 09 51 84 42 42


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#56 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGBcJDEx3R57953IlqCsrj0VnyoSPz0mks5qrzL_gaJpZM4HL8ff
.

from imapsync.

gilleslamiral avatar gilleslamiral commented on May 23, 2024

Good!
Have a nice sync

Le 20/09/2016 à 10:16, raimocom a écrit :

--noabletosearch did the trick!

Host1 folder [INBOX] has 26 messages in total (mentioned by SELECT)
Host2 folder [foobar/INBOX] has 0 messages in total (mentioned by SELECT)
Host1 folder [INBOX] considering 26 messages
Host2 folder [foobar/INBOX] considering 0 messages

Syncing is in progress now . . .

Merci beaucoup, Gilles!

Au revoir,
Gilles Lamiral. France, Baulon (35580)
mob 06 19 22 03 54
tel 09 51 84 42 42

from imapsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.