X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=fsf-get-mail;h=4bcd151a37e6dd6e2b262228cc9b94592da79f22;hp=16c8d7e6fc93f096bffda6f1fdbce868ae307068;hb=b857462732e15f455e41f26e3048a390d7b399c0;hpb=f0a35267f28e274ef3c2f63ffc20a26ca864e37c diff --git a/fsf-get-mail b/fsf-get-mail index 16c8d7e..4bcd151 100755 --- a/fsf-get-mail +++ b/fsf-get-mail @@ -4,11 +4,11 @@ #offlineimap -a fsf # delete based on http://deflexion.com/2006/05/imap-way-of-deleting-message -sieve-filter -eW -o mail_location=maildir:/nocow/user/fsfmd:LAYOUT=fs:INBOX=/nocow/user/fsfmd/INBOX ~/sieve/fsf.sieve INBOX delete &>/tmp/fsfsieve.log +sieve-filter -eW -o mail_location=maildir:/nocow/user/fsfmd:LAYOUT=fs:INBOX=/nocow/user/fsfmd/INBOX ~/sieve/fsf.sieve INBOX delete &>>/tmp/fsfsieve.log -# mu indexing happens after this, it gets files that have been moved -# from the above command. So, trying this out to fix it out. -sleep 0.5 +# mu indexing happens after this, and if offlineimap is running, +# it can index messages which are in the wrong folder. +# Just run it again if this happens. # to test new rules, update fsf-test.sieve, run these commands, then copy new fsf-test.sieve to fsf.sieve # sieve-filter -o mail_location=maildir:/nocow/user/fsfmd:LAYOUT=fs:INBOX=/nocow/user/fsfmd/INBOX ~/sieve/fsf-test.sieve INBOX &>/tmp/testfsfsieve.log