Harry Duncan writes:

Are there hooks in the process that I could overide / implement with a
script or a binary to perform an action such as this when it occurs?

Also, if I wanted to implement the archiving outside of sqwebmail and
cron it to happen monthly, is the process abstracted enough to be
called from a cron script? I understand that it is a simple folder
rename, are there any directives I must give the MTA before renaming
and running maildirmake to create the new sent folder? I haven't
decided yet if this is a good idea or not.

There isn't really anything much else to it. If it just so happens that something else is doing something with the folder, at the same time, renaming the folder will result in an unexpected surprise to them, and they'll probably fail. If the mail server happens to be delivering mail to the folder, the final rename will fail. But sqwebmail itself doesn't do anything about it. Just don't rename a folder where you deliver mail directly.

Same thing with the subscribed file. You can simply append a folder name to it. Courier-IMAP itself updates the subscribed file by creating a new file in the tmp directory and renaming it, so if you both happen to do it at the same time, your change might get lost. You shouldn't even bother with the subscribed file. It's a completely useless IMAP feature, not even used any more by modern IMAP clients, and old ones can usually be reconfigured to access all folders, not just the ones that are officially subscribed to.

Attachment: pgpfOcyiLqWF1.pgp
Description: PGP signature

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to