| View previous topic :: View next topic |
| Author |
Message |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Wed Jun 22, 2005 11:00 am Post subject: Qmail - File Name |
|
|
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 |
|
 |
Niek Baakman Guest
|
Posted: Wed Jun 22, 2005 11:27 am Post subject: |
|
|
| man maildir |
|
| Back to top |
|
 |
Charles Guest
|
Posted: Wed Jun 22, 2005 11:34 am Post subject: |
|
|
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
|
Posted: Sat Mar 25, 2006 3:57 am Post subject: |
|
|
Good topic! Very useful   |
|
| Back to top |
|
 |
|