My Junk mailbox is still filling up with hard linked emails. There are some junk mails with over 3000 hard linked files and over half a million files in the .Junk/cur folder. I had a handy script to remove them all by doing a find for inodes and sorting the list by age and keeping the olds hard link and removing all the others, but I now can?t find it :/ so I have just taken to periodically nuking the entire folder, but I?d like to fix this. *everything is current on FreeBSD 12.1-RELEASE => dovecot.conf imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve => /usr/lib/dovecot/sieve/report-spam.sieve: require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; if environment :matches "imap.user" "*" { set "username" "${1}"; } pipe :copy "sa-learn-spam.sh" [ "${username}" ]; => /usr/lib/dovecot/sieve/sa-learn-spam.sh: #!/bin/sh exec /usr/local/bin/sa-learn -u ${1} ?spam -- When the stars threw down their spears And watered heaven with their tears, Did He smile his work to see? Did He who made the Lamb make thee?
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Why not turn on autoexpunge after next nuke? <a href="https://doc.dovecot.org/configuration_manual/namespace/#namespace-settings">https://doc.dovecot.org/configuration_manual/namespace/#namespace-settings</a> </div> <div> <br> </div> <div> Aki </div> <blockquote type="cite"> <div> On 19/02/2020 03:58 @lbutlr < <a href="mailto:kremels@kreme.com">kremels@kreme.com</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> My Junk mailbox is still filling up with hard linked emails. There are some junk mails with over 3000 hard linked files and over half a million files in the .Junk/cur folder. </div> <div> <br> </div> <div> I had a handy script to remove them all by doing a find for inodes and sorting the list by age and keeping the olds hard link and removing all the others, but I now can’t find it :/ so I have just taken to periodically nuking the entire folder, but I’d like to fix this. </div> <div> <br> </div> <div> *everything is current on FreeBSD 12.1-RELEASE </div> <div> <br> </div> <div> => dovecot.conf </div> <div> imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve </div> <div> <br> </div> <div> => /usr/lib/dovecot/sieve/report-spam.sieve: </div> <div> require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; </div> <div> <br> </div> <div> if environment :matches "imap.user" "*" { </div> <div> set "username" "${1}"; </div> <div> } </div> <div> <br> </div> <div> pipe :copy "sa-learn-spam.sh" [ "${username}" ]; </div> <div> <br> </div> <div> <br> </div> <div> => /usr/lib/dovecot/sieve/sa-learn-spam.sh: </div> <div> #!/bin/sh </div> <div> exec /usr/local/bin/sa-learn -u ${1} —spam </div> <div> <br> </div> <div> <br> </div> <div> -- </div> <div> When the stars threw down their spears And watered heaven with their </div> <div> tears, Did He smile his work to see? Did He who made the Lamb </div> <div> make thee? </div> </blockquote> <div> <br> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
On 19.2.2020 8.51, @lbutlr wrote:> On 18 Feb 2020, at 22:52, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: >> Why not turn on autoexpunge after next nuke? https://doc.dovecot.org/configuration_manual/namespace/#namespace-settings > I should have mentioned I did this: > > mailbox Junk { > auto = subscribe > autoexpunge = 2 weeks > special_use = \Junk > > It?s not working. There were over half a million files in my Junk folder, almost all hard links with over 3,000 links. >Keeping reply in-list... Does this happen after each nuke or was it just first time? Aki
On 19 Feb 2020, at 00:06, Aki Tuomi <aki.tuomi at open-xchange.com <mailto:aki.tuomi at open-xchange.com>> wrote:> On 19.2.2020 8.51, @lbutlr wrote: >> On 18 Feb 2020, at 22:52, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: >>> Why not turn on autoexpunge after next nuke? https://doc.dovecot.org/configuration_manual/namespace/#namespace-settings >> I should have mentioned I did this: >> >> mailbox Junk { >> auto = subscribe >> autoexpunge = 2 weeks >> special_use = \Junk >> >> It?s not working. There were over half a million files in my Junk folder, almost all hard links with over 3,000 links. >> > > Keeping reply in-list... > > Does this happen after each nuke or was it just first time?I had disabled the ?nuke? because I thought it was working, but when I rebuilt the system this weekend I noticed all the hard links in the junk folder (since they do not take up space, I hadn?t noticed). At that point (Monday) I deleted all the mail in every Junk folder, so right now I cannot answer this. Mail in the .Junk/cur folder dated back to November, at least. Looking at mail logs I see ?too many? instances of "sieve: pipe action: piped message to program `sa-learn-spam.sh?? and " sieve: left message in mailbox ?Junk'" (140 thousand this week on my non-list account, where maybe only 50 messages were moved/copied to Junk). My account has a .active_sieve file. But it makes no mention of Junk. -- Nine-tenths of the universe is the knowledge of the position and direction of everything in the other tenth. Every atom has its biography, every star its file, every chemical exchange its equivalent of the inspector with a clipboard. It is unaccounted for because it is doing the accounting for the rest of it. Nine-tenths of the universe, in fact, is the paperwork. --The Thief of Time -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200219/d9458361/attachment-0001.html>