Can't create output
"Wes L. Zuber" <[email protected]> Sat, 11 Oct 2003 07:37:34 -0700
| Newsgroups | gmane.mail.procmail.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi there, We have been using procmail for a while now on a single machine. We recently decided to change to a load balance situation and use the Maildir format over NFS. We ran into an issue with this however. Every few minutes we would get a line in our sendmail log like this: Oct 10 18:35:32 smtp4 sendmail[84188]: h9B1ZFw83970: to=<[email protected]>, delay=00:00:16, xdelay=00:00:00, mailer=local, pri=662847, dsn=5.0.0, stat=Can't create output After doing some tracking I noticed a bug in the retry mechanism of the writefolder routine. This part: strcpy(chp2,maildirnew); chp2+=MAILDIRLEN; *chp2++= *MCDIRSEP_; strcpy(chp2,chp); is executed every time through the loop. Once is fine but if a retry is actually executed then maildirnew is appended for the number of retries. I just did this: if (retries == MAILDIRretries) { strcpy(chp2,maildirnew); chp2+=MAILDIRLEN; *chp2++= *MCDIRSEP_; strcpy(chp2,chp); } and that fixed one issue. Thanks, --Wes