<!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>