spaetz/offlineimap — Issue #4: Return value is 0 while offlineimap fails to parse passwd field
Author: jkarlson
Created: 2011-12-14 10:10:32+00:00
State: open

Return value seems to be 0 while one of the accounts fails to sync.

jkarlson@schur: ~
$ offlineimap -c ~/tyo/etc/share/offlineimaprc; echo $?
OfflineIMAP 6.4.2
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).

Account sync Aalto:
*** Processing account Aalto
Establishing connection to mail.aalto.fi:993
Folder Calendar [acc: Aalto]:
Syncing Calendar: IMAP -> Maildir
Folder Contacts [acc: Aalto]:
Syncing Contacts: IMAP -> Maildir
Folder Deleted Items [acc: Aalto]:
Syncing Deleted Items: IMAP -> Maildir
Folder INBOX [acc: Aalto]:
Syncing INBOX: IMAP -> Maildir
Deleting 2 messages (2493,2506) in Maildir[INBOX]
Folder Journal [acc: Aalto]:
Syncing Journal: IMAP -> Maildir
Folder Luonnokset [acc: Aalto]:
Syncing Luonnokset: IMAP -> Maildir
Folder Notes [acc: Aalto]:
Syncing Notes: IMAP -> Maildir
Folder Outbox [acc: Aalto]:
Syncing Outbox: IMAP -> Maildir
Folder Roskaposti [acc: Aalto]:
Syncing Roskaposti: IMAP -> Maildir
Folder Sent Items [acc: Aalto]:
Syncing Sent Items: IMAP -> Maildir
Folder Teht&AOQ-v&AOQ-t [acc: Aalto]:
Syncing Teht&AOQ-v&AOQ-t: IMAP -> Maildir
Folder saved-messages [acc: Aalto]:
Syncing saved-messages: IMAP -> Maildir
Account sync Aalto:
*** Finished account 'Aalto' in 0:01
Account sync Gmail:
*** Processing account Gmail
Establishing connection to imap.gmail.com:993
ERROR: While attempting to sync account 'Gmail'
'%' must be followed by '%' or '(', found: '************'
*** Finished account 'Gmail' in 0:00

ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Gmail'
'%' must be followed by '%' or '(', found: '************'
0
jkarlson@schur: ~
$