[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] message/rfc822 C-T and whatnow's attach?
From: |
David Levine |
Subject: |
Re: [Nmh-workers] message/rfc822 C-T and whatnow's attach? |
Date: |
Sun, 15 Dec 2013 12:29:08 -0500 |
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