Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 11th, 2004, 09:06 AM
cyy2 cyy2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 8 cyy2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 44 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 13th, 2004, 03:19 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
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)

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Maildir/new Properties


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT