Does some spec require a space-padded day-of-month in the From line that separates messages in an mbox file?
The new mailx complains about From lines that have a single-digit day-of-month. mailx's man page says it uses ctime. ctime's man page says nothing about this. time.h doesn't so specify.
Now, to create a From line I can't just use 'date', but have to specify the whole format. It's a small thing. I'm just wondering. |
Please show what you're trying that's not working. AFAIK From lines only contain email addresses...not dates.
|
I refer to rfc4155, the spec for mbox files.
Quote:
|
Ahh. Very Interesting. I had no idea.
I'm sorry, I don't use mbox, I'm a Maildir guy; but perhaps the expanded explanation will draw knowledgeable responses. ['Tho, if the only thing that's changed is the version of mailx, I'd just probably start padding the month...with a fun script to update all the existing entries] ;) |
Quote:
Code:
From noreply@linux-mag.com Tue Jun 2 14:26:28 2009 (btw, this was from a Linux magazine I was subscribed to at that time, I do not remember exactly what MTA I was using then, but it passed a lot of the university mail processing agents before it reached me). It was retrieved FROM a university (Delft University of Technology) server through imap, though, possibly by evolution. So certainly at that time having a single digit day of month was no problem. |
Quote:
What I use is what date returns. I take that as a sign of what the spec is. To get a space-padded day-of-month, I have to specify every element. It'd be nice if date responded to an environment variable to get its default format. Quote:
I don't object to accepting it. I ask about requiring it. |
A fellow on the s-mailx list pointed me to the relevant POSIX page http://pubs.opengroup.org/onlinepubs...s/asctime.html which says the day-of-month displayed by %2d , so it is POSIX.
|
All times are GMT -5. The time now is 02:12 AM. |