On 16 Aug 19, at 16:57 , @lbutlr kremels@kreme.com wrote:
Ack. I checked the junk folder and there are 379 files in there with 379 links!
It appears the main culprit is actually the sieve script that is supposed to mark messages moved out of the Junk box as ham. Somehow it was getting itself stuck and creating new hard links over at over. Before I for it under control, I have 240,000 “messages:” in the inbox, 141 of which were actual messages. I have disabled the sieve script and so far the problem hahasn’t reoccurred, but then the sieve script has been there a long time without issues before, so I suspect there was something else going on.
👹 # cat report-ham.sieve.disabled require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
if environment :matches "imap.mailbox" "*" { set "mailbox" "${1}"; }
if string "${mailbox}" "Trash" { stop; }
if environment :matches "imap.user" "*" { set "username" "${1}"; }
pipe :copy "sa-learn-ham.sh" [ "${username}" ];
Executed via:
plugin { … imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_from = Junk imapsieve_mailbox2_name = * … }