nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] message/rfc822 C-T and whatnow's attach?

2013-12-15 11:29:48
Jon wrote:

David Levine writes:
I've been thinking about this.  It's possible, though maybe
a bit tricky, to determine if the file is a message in the
user's MH folders.  If it is, should attach set the
Content-Type for the part to message/rfc822?
 
Going from memory here (instead of the source code).  The attach code
uses the "file" command to determine the content type.

It just uses "file" to determine the Content-Description, and
then only with -attachformat 0, which isn't the default.  But,
I think you're on to something here . . .

Oh!  Just looked at the file man page, and someone has added a --mime
option that does the right thing and recognizes messages in ascii text.

POSIX "file" uses -i.  I think it does what we want but it'll
take some digging to verify.

David

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>