I have been manually editing drafts to remove Content-ID
headers from outgoing MIME messages. The default
configuration of Microsoft Outlook, Build 10.0.3416, in
particular, doesn't see attachments in incoming messages if
there are Content-ID headers. (There are a few old postings
to comp.mail.mh about it. That's not the latest version of
Outlook, but I still need to deal with it.)
I'd like to remove the manual steps, as well as support use
of X-MH-Attachment headers, which doesn't give me a chance
to edit the final draft before sending.
Can anyone suggest a better way? Or better option names
than -contentid/-nocontentid?
Can you perhaps define the sendproc profile entry to be a filter that
forwards options and its output to send?
That could work. It's easy to filter out all Content-ID:
lines. But if I wanted to keep forwarded messages perfectly
intact, it's not as simple. It usually doesn't matter, but
some recipients might want to see _all_ original header lines
in forwarded messages.
The changes to nmh are trivial, see below. I'm not fond of
adding options. But I think it might be easier than deciding
whether we should just eliminate Content-ID: completely :-)
David
8<----------8<----------8<----------8<----------8<----------8<----------8<----
Index: uip/mhbuild.c
===================================================================
RCS file: /sources/nmh/nmh/uip/mhbuild.c,v
retrieving revision 1.9
diff -r1.9 mhbuild.c
62c62,66
< #define VERSIONSW 16
---
#define CONTENTIDSW 16
{ "contentid", 0 },
#define NCONTENTIDSW 17
{ "nocontentid", 0 },
#define VERSIONSW 18
64c68
< #define HELPSW 17
---
#define HELPSW 19
66c70
< #define DEBUGSW 18
---
#define DEBUGSW 20
87a92
int contentidsw = 1;
221a227,233
case CONTENTIDSW:
contentidsw = 1;
continue;
case NCONTENTIDSW:
contentidsw = 0;
continue;
Index: uip/mhbuildsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/mhbuildsbr.c,v
retrieving revision 1.10
diff -r1.10 mhbuildsbr.c
53a54
extern int contentidsw;
3935c3936
< * output the Content-ID
---
* output the Content-ID, unless disabled by -nocontentid
3937c3938
< if (ct->c_id) {
---
if (contentidsw && ct->c_id) {
Index: man/mhbuild.man
===================================================================
RCS file: /sources/nmh/nmh/man/mhbuild.man,v
retrieving revision 1.6
diff -r1.6 mhbuild.man
17a18
.RB [ \-contentid " | " \-nocontentid ]
317c318,321
< using the \*(lq<\*(rq and \*(lq>\*(rq characters.
---
using the \*(lq<\*(rq and \*(lq>\*(rq characters. Alternatively,
the
.B \-nocontentid
switch suppresses creation of all \*(lqContent-ID:\*(rq headers.
644a649
.RB ` \-contentid '
_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers