OfflineIMAP / offlineimap

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

Renamed gmail folders are skipped #621

Open dzieko opened 5 years ago

dzieko commented 5 years ago

General informations

Configuration file offlineimaprc

[general]
accounts = gmail

[Account gmail]
localrepository = gmail-local-mirror
remoterepository = gmail-server

[Repository gmail-local-mirror]
type = GmailMaildir
localfolders = /home/dziekopr/poczta/gmail

[Repository gmail-server]
type = Gmail
remoteuser = xxx
remotepass = xxx
sslcacertfile = /etc/ssl/ca-bundle.pem
auth_mechanisms = LOGIN
readonly = True

Logs, error

https://drive.google.com/open?id=1O6atg__wABj5XReO4zJeb04briXPsQsO

Steps to reproduce the error

This is related to gmail. I have a folder "wakacje" with some emails and about 15 sub-folders. I have renamed all those sub-folders recently. Old name: wakacje/year-name New name: wakacje/year.month-name

Those renamed sub-folders are not synchronized now. Log shows just a bunch of empty lines, even with -dALL:

Folder inne/xxx [acc: gmail]:
 Syncing inne/xxx: Gmail -> GmailMaildir
Account sync gmail:

[ ... a bunch of empty lines ... ]

Folder wakacje [acc: gmail]:
 Syncing wakacje: Gmail -> GmailMaildir
Account sync gmail:
 *** Finished account 'gmail' in 0:14

LocalStatus files are created but FolderValidity not.

Sub-directories on my local filesystem are created but not populated with emails. Deleting everything does not help.

thanks, Pawel

nicolas33 commented 5 years ago

What's the output of offlineimap --info?

dzieko commented 5 years ago

I can provide output of this command but it contains a lot of my private folder names. Is the a way to make it not visible publicly?

nicolas33 commented 5 years ago

Here is my pubkey (PKCS8):

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvvvx24oHAM/UnJYkNCHK
ogNfCyBZdg/bw+W2CNzlDWIK/wQ8IJwNHNDT0LmsZbkd/HY6LiE98haDqxJSZ8Ht
HJ6tAZzjPiYRA4GDvq1xMs0jKqv6vvINEEt5U47ofYLc8taSmgIeWruVW4I5UBAq
6ZTbzRjrOnIiTf5uPAQAS1bXuj4ckTNbIOkkn6SZNORDsCXupG66N9KMikfUEcty
bARqTS+0Bcagx7cJkG1YDw/2QoXWEE7yfBpgLByyDmbphR6AS1BvawNKNBZMYSP8
kmxbB4CEig0nenlZhsP2CjIb4nkDmqj8LJYP0xSiNwljlxlVg66p9NG+qAOcu/r3
FQIDAQAB
-----END PUBLIC KEY-----
dzieko commented 5 years ago

Please find below the encryption key and encrypted file. I'm using this script for encryption and decryption: https://sshenc.sh/sshenc.sh

Thanks!

-- key uC7S5YFF8oywkOxQQO4KuKSEI/ODnvgXMZc9ZYfyup3nunlwp/yOfQejisQt9PrG J7rK7fp2V0HeqBN2/K9MPyLAnmwncLQXHnHa/nxOK4MRRRb+sNB+/7jWhNmitEq6 OmqFFwXGuaNCaD3yQBuPWiFeDiARGtMVf1eP5SkesvLHdGwmI6S0sHQ3ObExXdg4 YR6SyfgcNs81oF1Kj40VopT5dR2DcLyObMxpBD2k9dht6L3+0kKEwiSLHNcyR4j4 gJqbXGxuNMNBF54i+8ds4eMBMMiBDakrroDxhL8kpayH6CFv4BK3XZGrHZ5OzHtZ 2Eh2bq+lLd9UQgkx9h9j3g== -- /key

-- file U2FsdGVkX18gIw9eLwfiUDpXwNSj2Y78gkRBcZL/T0K9rm6W+ZsaPWyIx1auJFWy UAIB+1FS9Z6DXE+suvCEw3FZ2aS6jB4rATfoRonYiSZV1KgfjwdFlwGKAJymcOu3 0HWWkTOTXNOle+appG4+Ci/f3fqZEc/I0yh1uSo1FKc3g2Tm4GVZFXF/JUKdm7L4 fuw1oWRx99CPVD9d18qEy9h6vYwONg9Wk8sTlhhAzPRiYWs73xGf71dXOnjWujRO XdrrIpu6tM5ru9dAysNHfDKD2pTN0eguAf6hY7/22Wt9tA7KuFpMF7iBCfkVZ3GC 6lMYBJOuxfYhSz0vFm0o8e3VS06axHeFKusVxd96TYFkTYtZXPwr8+pCE3lMpu8w tJL2HFw/qXhpZ65pb+o/6pAYwNFqhdFsUCvytQec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o7WUEShlIZu1Qx+7f NcPe9FOOQdZRWm19nvrgpjRHYKoiTW+YO3sSbJa5zwtjCQzsUZmUfWI331MkD9VU quotwWFA0eOSUci2jt4EZrAlwtdYVyyhcb4g3v/Q2pAdocVhC7xjENYAfnUUyZdG gy04vEECEy5cxRJM3NCaRfVGTE2j9X4kZ+WTr2E0U8mBSlYHb64dRpjZiigs7VZJ wg5Yzacd5iUgJd/6+DQCEP+/C3yWJI7DVfiM34B8fL53W2MGXAn8gRuqDItckt0+ c8cTYSlr37AIlCDUptCgrJeDsNB+E040waVgRxh1ihvcCU2dNENAXHO5iKc6sG1f ckCaSVob7xsi4IfiY5qJ3R0FCGt5YQ8RFNqrVxzxqB9v/8Kah9FtgoyNkXXe7kMT pT7KRHaibh986ZatTF5Xkfy6Lb5D4QhB5ZZ0LSxmZMFAJB4NsmA/3+aHGae6maz5 9NRbet7y/on2ZHycoPNWZzd045rvzn4FGST1wt4oMJTsAqRetuhxNwm3tLMbS7jR WR7qfAXuzRtpVzv5ol3wGWUTQsOlvrGgyr2HrA8YsGyqYINOK+uInYJF4pHeTh0O yZxDJ+LMBHrTlJo/j9be8+8S5HOHupBYnXCxX+KeN9dSl3gvf7+3QB66VZWTqGAY qoBvh3TB3UUaJL7tV5a7KlCJDCTMgxFv284/3s377zeWtTvsj6RajsKzrSyMsnCG J4yA0DGNuvZqNuBMR2NdGPTF8LJLYLJEZmyv/1DtaPQLqgFVSyDe4F8786QBT9JF zE1mqimjfYQiHhRZiP0U+sA+q3H/tVWzYmww5rDPCvh2TxMovLM5DtKljltG74B5 5zKa1uFlrmuWhppyRcDhjOGcVKxXib3n6s3ITnzdqeYTjip6Ipy8vk0Vp9JdHcq2 AihHN7QFPWHb+iJoPHqHCx3gu58nlQgEoNTyOxMoV3Wio6TlHaf/EQ1MsKo4Uxb9 PDQOEdVPQqr6ap5JWPwaKA== -- /file

nicolas33 commented 5 years ago

I've had to sightly change the above output to be able to decrypt it.

Anyway, the folders are correctly mapped. However, they do not appear in the synced folders in the logs after the structure comparison/copy.

Is it possible that these folders are filtered in your conf file? Did you paste the full configuration file here?

dzieko commented 5 years ago

I have used the config file as exactly posted above (just with correct credentials). :(

dzieko commented 5 years ago

I just connected via IMAP with thunderbird and I can access all folders and emails.

dzieko commented 2 years ago

Hello Team,

I'm still facing this issue but I spotted something:

One of the labels that was silently skipped by OfflineIMAP was: wakacje/2021.12-barcelona

I renamed it to: wakacje/2021_12-barcelona

Note: I replaced a dot with underscore.

Both label and emails were downloaded correctly!

Are you willing to do live debugging over zoom/team viewer/webex?

cheers! ps.

OfflineIMAP 7.3.4
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.101 (bundled), Python v2.7.18, OpenSSL 1.1.1l  24 Aug 2021
dzieko commented 2 years ago

"fixed" by adding: sep = / to localrepository config entry.