nmh-workers
[Top][All Lists]
Advanced

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

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


From: norm
Subject: Re: [Nmh-workers] message/rfc822 C-T and whatnow's attach?
Date: Sun, 15 Dec 2013 09:11:30 -0800

David Levine <address@hidden> writes:
>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.

I'm confused. Are you saying that a file not in the hierarchy starting at the
user's MH directory, cannot be a message file?



    Norman Shapiro



reply via email to

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