On Tue, 6 May 2008, John Peacock wrote:
[EMAIL PROTECTED] wrote:
I have multiple maildir mailbox, I want to deliver new mail in the mailbox
containing the previous message (reply, thread, ...).
I strongly recommend against implementing this in a qpsmtpd delivery plugin.
Normally, you want delivery to do as little work as possible so that you can
return success to the sending MTA. If you spend a lot of time groveling
through the folders looking for possible matches, you may take too long and
the remote MTA will time out, and retry, and time out, and retry...
I am certain that there are procmail recipes that would do something like
this. You are much better off doing this asynchronous with the SMTP
session...
Chances are also very high that qpsmtpd does not have permission to read
or write to those mailboxes.
I agree with John - this is the task for a Local Delivery Agent, which you
would call from a .qmail file, and not the job of an SMTP daemon, such as
qpsmtpd.