Interesting, I have a script that does just that (move files about in the maildir) and it has not lead to problems yet. Though, I can definitely understand how it might be problematic. I gotta watch out for that. If you want to be on the safe side, I guess Eric's suggestion of using dovecot's lda is the thing to do.
Martin Am 08.07.2010 um 11:47 schrieb Andreas Galatis: > Hi Eric, > > As far as I learned it is never a good idea to copy (or delete) messages > directly in the Maildir if you use dovecot. > I had a script deleting old mails from a clients Maildir running via cron. > The first day the script deleted old messages, the client could not access > the > last listpage from squirrelmail. > I think the dovecot- index files where irritated because of missing files. > At least you would have to delete the dovecot-files in the concerned > directory > (they will be rebuilt) > > Andreas > Am Donnerstag, 8. Juli 2010 04:18:51 schrieb Eric Shubert: >> Rajesh M wrote: >>> hi eric >>> >>> when the email arrives in the spam box its headers contained the >>> "delivered to" email id in the header so my script will know where to >>> which email id the message is to be delivered. so my concern about bcc is >>> resolved. >>> >>> my second question is as such >>> which would be better >> >> Define better. ;) >> >>> Simply move the email from the "centralized spambox" to the inbox of that >>> email id >>> Or use the qmail-queue program to reroute the message back to the queue >>> for delivery. >> >> As usual, there's more than one way. >> >>> i don't want the email time stamps changed during this process. >> >> Which time stamps are you referring to? >> >> On further thinking about this, I wouldn't do either. If you have >> dovecot installed, I would use dovecot's deliver program. Otherwise, I'd >> use the maildrop program. You should realize though that at some point >> dovecot's lda (deliver) is likely going to replace maildrop. With either >> program, I don't expect you'd need to do any parsing of the message in >> your script - just pass it on to the lda. I could be wrong about this >> though. >> >> You could move the file to the appropriate inbox yourself and I believe >> that would work, but using the lda would be 'better'. The lda really >> should know what's going into the mailbox, for indexing and quota purposes. >> > > --------------------------------------------------------------------------------- > 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: qmailtoaster-list-unsubscr...@qmailtoaster.com > For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com > > -- "Corporation. An ingenious device for obtaining individual profit without individual responsibility." Bierce, Ambrose --------------------------------------------------------------------------------- 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: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com