Qmail Support Forum Forum Index Qmail Support Forum
Qmail Email Server Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Qmail - File Name

 
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Support
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Wed Jun 22, 2005 11:00 am    Post subject: Qmail - File Name Reply with quote

I wonder what means the name of the file like:

1119011035.98783.xxx.xxxx,S=1596:2,S

Can I have the date from this name of the file or I need to read the file
for that? Someone have doc about it?
Back to top
View user's profile Send private message Send e-mail
Niek Baakman
Guest





PostPosted: Wed Jun 22, 2005 11:27 am    Post subject: Reply with quote

man maildir
Back to top
Charles
Guest





PostPosted: Wed Jun 22, 2005 11:34 am    Post subject: Reply with quote

The ":2,S" part has a specific meaning. See
http://cr.yp.to/proto/maildir.html, section "What can I put in info?", where
it explains that the "S:" means the message has been "seen" by an MUA.

The rest has no meaning -- it is an opaque token, and you explicitly are /not/
supposed to try to extract meaning from it. See the first paragraph of "How
are unique names created?" in the above document, where it says:

Unless you're writing messages to a maildir, the format of a unique name is
none of your business. A unique name can be anything that doesn't contain a
colon (or slash) and doesn't start with a dot. Do not try to extract
information from unique names.

Quote:
Can I have the date from this name of the file


No.

Quote:
or I need to read the file for that?


Maybe not. Depends by which "date" you're talking about. If you want the
time the message was created by its author, you'll need to parse the message
for it's Date: header. If you want to find out when it was delivered, try
reading `man stat`.
Back to top
Guest






PostPosted: Sat Mar 25, 2006 3:57 am    Post subject: Reply with quote

Good topic! Very useful SmileSmile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!