OfflineIMAP / offlineimap

Read/sync your IMAP mailboxes (python2) [LEGACY: move to offlineimap3]
http://www.offlineimap.org
Other
1.78k stars 360 forks source link

Folders not sync #694

Closed opensource21 closed 3 years ago

opensource21 commented 3 years ago

General informations

OfflineIMAP 7.2.3 Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception) imaplib2 v2.57 (system), Python v2.7.16, OpenSSL 1.1.1d 10 Sep 2019

Configuration file offlineimaprc

metadata = /workdir/accounts/offlineimap-metadata
accounts = Test,Niels
enabled = yes
filename = /workdir/accounts/Mutt/muttrc.mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"
incremental = no

[Account Niels]

# These settings specify the two folders that you will be syncing.
# You'll need to have a "Repository ..." section for each one.

localrepository = LocalNiels
remoterepository = RemoteNiels

quick = -1

########## Advanced settings
autorefresh = 60

[Repository LocalNiels]

type = Maildir
localfolders = /workdir/accounts/niels
sep = /

# This option stands in the [Repository LocalNiels] section.
#
# Propagate deletions from local to remote. Messages deleted in this repository
# won't get deleted on remote if set to "no". Default is yes.
sync_deletes = no

[Repository RemoteNiels]
type = IMAP
remotehost =  imap.strato.de 
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteport = 993
remoteuser = niels
remotepassfile = /workdir/config/Password.IMAP.Niels
maxconnections = 1

Logs, error

  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (system), Python v2.7.16, OpenSSL 1.1.1d  10 Sep 2019
Account sync Niels:
 *** Processing account Niels
 Establishing connection to imap.strato.de:993 (RemoteNiels)
 [DRYRUN] Creating folder Administratives/pooh[LocalNiels]
 [DRYRUN] Creating folder Administratives/MacOS[LocalNiels]
 [DRYRUN] Creating folder Sent[LocalNiels]
 [DRYRUN] Creating folder Administratives/Infos[LocalNiels]
 [DRYRUN] Creating folder Drafts[LocalNiels]
 [DRYRUN] Creating folder Verschiedenes[LocalNiels]
 [DRYRUN] Creating folder INBOX[LocalNiels]
 [DRYRUN] Creating folder Administratives[LocalNiels]
 [DRYRUN] Creating folder Administratives/FritzBox[LocalNiels]
 [DRYRUN] Creating folder Archive[LocalNiels]
 [DRYRUN] Creating folder Trash[LocalNiels]
 [DRYRUN] Creating folder Administratives/tine[LocalNiels]
 [DRYRUN] Creating folder debian[LocalNiels]
 [DRYRUN] Creating folder Computer-Mails/Verschiedenes[LocalNiels]
 [DRYRUN] Creating folder Verschiedenes/WallstreetVokabeln[LocalNiels]
 ERROR: getfolder() asked for a nonexisting folder 'Administratives'.

Steps to reproduce the error

Additional information

nicolas33 commented 3 years ago

the --dry-run cli option is known to have issues, especially when updates on the folders structure is on the road. See #52