Is it OK to delete messages directly from the Maildir via a cronjob?

This is a discussion on Is it OK to delete messages directly from the Maildir via a cronjob? within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi, I've Googled and not found anything definite on this, so I'll try here. Is it OK to ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-09-2006
David
 
Posts: n/a
Default Is it OK to delete messages directly from the Maildir via a cronjob?

Hi,

I've Googled and not found anything definite on this, so I'll try here.

Is it OK to delete messages directly from the Maildir via a cron job
rather than using an email client? Whilst I know that each message is an
individual file in the Maildir, is there any kind of index file that
would be out of sync or corrupt if I did this?

We're using Postfix 2.1.5 and Courier-IMAP 3.0.7-3.2 on SuSE 9.2.

The reason for asking is we setup Learn_HAM and Learn_SPAM folders for
users to copy their incorrectly identified spam & ham and the we use a
cron job overnight to learn from these directories. The users are then
supposed to delete this learned stuff from these directories with their
mail clients. However, this last step gets forgotten. Whilst this
doesn't do any harm (spamassassin knows if it's learned a message
already) it's a waste to keep going over the old messages again and so
we want to have the cron job delete all the messages (using bash's rm)
from /cur when sa-learn has completed.

Can anyone see any problems with this?

A second question is the use of alt.comp.mail.postfix and
mailing.postfix.users down to personal preference or is there some
differentiation between them? Them both seem to include technical
questions and so it wasn't clear where I should post this.

Thanks, David
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0