nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: David Levine
Subject: [Nmh-workers] message/rfc822 C-T and whatnow's attach?
Date: Sun, 15 Dec 2013 12:02:14 -0500

Paul F. wrote:

> how do i use whatnow's attach to attach a file, like a mail
> message, with a specific Content-Type?  i.e., if i use this:
>     Nmh-Attachment: /home/pgf/Mail/inbox/2902
> i get a Content-Type of text/plain rather than message/rfc822

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?

For that determination, one way might be based on the full
path to the file, which attach already finds.  We could
iterate over the directory portion of that path, starting
from the bottom and adding one level each time.  If
 "mhpath +dir filename" succeeds and if the inodes of the
files match, then that file is an MH message.

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]