I am sorry if this was mentioned before but after i wrote yet another clean trash script (i am sorry Eric if ofended you in any way, it realy wasn't my intention to do that in any way, my only gold was to make a humble contribution) i used a google and read courier documentation.
Now, i have setup courier to automaticaly clean trash upon user login.
Problem is that courier has two conf files for imap: /etc/courier/imapd and /etc/courier/imapd-ssl
in both those files should be this:

IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0

After this restart imapd and imapd-ssl. Courier will scan Trash dir for any file that has ctime older than 7 days. Pay attention, CTIME, not MTIME or ATIME. So, mail will be deleted 7 days after user puts it there, upon user login.

Jake, can we have this settings merged into new toaster package. They can be commented but should be there. Also, maybe some sort of info for users that imapd and imapd-ssl have different config files. I learned this by changing imapd config while testing on imapd-ssl :) Everything was working in squirrelmail but nothing was working in my Thunderbird :)

These changes complitely eliminated need for qtp-clean-trash for me...

I am sorry for my bad english. Complicated sentences are too hard for me :)

---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to