|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Maildir/new Properties
Hi,
I am encountering a problem and I can't figure out if it is my code's fault or just a property of Maildir/new. What I am doing is writing a filter that filters new mail I fetch off a server and then writing the mail that passes the filter's check into Maildir/new. When I test this filter though, I notice that Maildir/new is getting flushed everytime I write a new email into it. Is this due to an error in my code or a property of Maildir/new I am unfamiliar with? Thx |
|
#2
|
||||
|
||||
|
I'm not sure what you mean by "flushed": do you mean that any previous email in the directory gets deleted? Or does it get moved to Maildir/cur ? Either way, this isn't an inherent property of Maildir; it's just a few directories on disk. There must be another process that's doing this. If there's a POP3 server running, possibly this account is being accessed via POP3 whilst you're writing the mails?
In any event, if you're writing a filter like the one you describe you shouldn't write to the Maildir directly; assuming you're using qmail, invoke qmail-local with the appropriate arguments, which will handle the task of writing the mail to the user's Maildir in the correct fashion.
__________________
Alex (http://www.alex-greg.com) |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Maildir/new Properties |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|