Re: Sieve junks mail script creating links
On 19.2.2020 8.51, @lbutlr wrote:
On 18 Feb 2020, at 22:52, Aki Tuomi <aki.tuomi@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@open-xchange.com <mailto:aki.tuomi@open-xchange.com>> wrote:
On 19.2.2020 8.51, @lbutlr wrote:
On 18 Feb 2020, at 22:52, Aki Tuomi <aki.tuomi@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
On 19 Feb 2020, at 00:47, @lbutlr <kremels@kreme.com> wrote:
My account has a .active_sieve file. But it makes no mention of Junk.
It’s been a couple of weeks, and I am still seeing some messages in Junk mailboxes with hard links, though far fewer than I was seeing before and only with a single hard link (that is, showing in the ls -l with a ‘2’ instead of a 1).
There are few enough (under 100) that I am not especially concerned, but I still don’t understand why there are hard linked messages in Junk at all. There are no hard links in any Trash mailbox, for example.
There are a very few messages hard linked in user’s INBOXES (~/Maildir/cur/) but not the same number (a bit higher) than the messages with hard links in Junk. Dovecot is the LMTP, so it should have exlusive handling of where and how messages are saved.
Is this hard linking of a few messages normal and something I just don’t need to worry about?
In better news, it appears that the autoexpunge is working now with no changes in configuration (though everything else has changed including FreeBSD version and dovecot versions).
participants (2)
-
@lbutlr
-
Aki Tuomi