{"action":"created","issue":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/384","repository_url":"https://api.github.com/repos/OfflineIMAP/offlineimap","labels_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/384/comments","events_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/384/events","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/384","id":183042661,"number":384,"title":"maxage is respected only once","user":{"login":"mhavo","id":14158009,"avatar_url":"https://avatars.githubusercontent.com/u/14158009?v=3","gravatar_id":"","url":"https://api.github.com/users/mhavo","html_url":"https://github.com/mhavo","followers_url":"https://api.github.com/users/mhavo/followers","following_url":"https://api.github.com/users/mhavo/following{/other_user}","gists_url":"https://api.github.com/users/mhavo/gists{/gist_id}","starred_url":"https://api.github.com/users/mhavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhavo/subscriptions","organizations_url":"https://api.github.com/users/mhavo/orgs","repos_url":"https://api.github.com/users/mhavo/repos","events_url":"https://api.github.com/users/mhavo/events{/privacy}","received_events_url":"https://api.github.com/users/mhavo/received_events","type":"User","site_admin":false},"labels":[{"id":10007140,"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"nicolas33","id":90065,"avatar_url":"https://avatars.githubusercontent.com/u/90065?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas33","html_url":"https://github.com/nicolas33","followers_url":"https://api.github.com/users/nicolas33/followers","following_url":"https://api.github.com/users/nicolas33/following{/other_user}","gists_url":"https://api.github.com/users/nicolas33/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas33/subscriptions","organizations_url":"https://api.github.com/users/nicolas33/orgs","repos_url":"https://api.github.com/users/nicolas33/repos","events_url":"https://api.github.com/users/nicolas33/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas33/received_events","type":"User","site_admin":false},"assignees":[{"login":"nicolas33","id":90065,"avatar_url":"https://avatars.githubusercontent.com/u/90065?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas33","html_url":"https://github.com/nicolas33","followers_url":"https://api.github.com/users/nicolas33/followers","following_url":"https://api.github.com/users/nicolas33/following{/other_user}","gists_url":"https://api.github.com/users/nicolas33/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas33/subscriptions","organizations_url":"https://api.github.com/users/nicolas33/orgs","repos_url":"https://api.github.com/users/nicolas33/repos","events_url":"https://api.github.com/users/nicolas33/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas33/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2016-10-14T12:54:44Z","updated_at":"2016-11-07T17:44:52Z","closed_at":null,"body":"#### General informations\n- system/distribution (with version): OSX Yosemite 10.10.5 (14F1912)\n- offlineimap version (`offlineimap -V`): homebrew offlineimap v7.0.7, imaplib2 v2.55 (bundled), Python v2.7.10\n#### Configuration file offlineimaprc\n\n```\nssl = yes\nmaxage = 100\nstatus_backend = sqlite\ntype = GmailMaildir\n```\n#### Steps to reproduce the error\n- Empty maildir\n- sync -> mails newer than 100 days are synced normally\n- change maxage to 200\n- sync -> no new mails (there should be)\n- remove maxage from config\n- sync -> all mails coming... (17000)\n- interrupt\n- put maxage back\n- sync\n- all mails still coming, no way to get offlineimap respect maxage again...\n"},"comment":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/comments/258907097","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/384#issuecomment-258907097","issue_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/384","id":258907097,"user":{"login":"nicolas33","id":90065,"avatar_url":"https://avatars.githubusercontent.com/u/90065?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas33","html_url":"https://github.com/nicolas33","followers_url":"https://api.github.com/users/nicolas33/followers","following_url":"https://api.github.com/users/nicolas33/following{/other_user}","gists_url":"https://api.github.com/users/nicolas33/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas33/subscriptions","organizations_url":"https://api.github.com/users/nicolas33/orgs","repos_url":"https://api.github.com/users/nicolas33/repos","events_url":"https://api.github.com/users/nicolas33/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas33/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T17:44:52Z","updated_at":"2016-11-07T17:44:52Z","body":"> I think it's possible to change/add maxage only if filename_use_mail_timestamp is set to yes for the local repository since the first run AND that the all the emails are correctly formatted (otherwise, we fallback to the download datetime). This option will use the date found in the header for the prefix.\r\n\r\nThis is not enough. This would help while decreasing the maxage range (e.g.: 200 -> 100) but not while increasing it. To allow increasing the range, we must keep track on the min_uid/maxage value to check if maxage was changed or we would keep computing the same min_uid.\r\n\r\nAlso, I'm worried what would be done for the already downloaded emails that we'd next ignore while decreasing the range, because of the cache.\r\n\r\nAllowing to change the maxage value is not easy."}}
{"actor":{"display_login":"nicolas33"}}