make marshal respect /mail/box/$user/headers when forwarding or replying to a message from nedmail (I.E. using -n option). MS Exchange insists I use the same username in the smtp envelope as the rcf822 header. I enforce this in /mail/lib/remotemail (smtp) and /mail/box/$user/headers (rcf822) so both must be used when forwarding as well as sending mail. -Steve Reference: /n/sources/patch/applied/marshal-fwd-hdrs Date: Thu Jul 5 16:13:52 CES 2007 Signed-off-by: steve@quintile.net --- /sys/src/cmd/upas/marshal/marshal.c Thu Jul 5 16:07:11 2007 +++ /sys/src/cmd/upas/marshal/marshal.c Thu Jul 5 16:07:06 2007 @@ -331,23 +331,23 @@ fatal("write error"); s_free(hdrstring); hdrstring = nil; + } - /* read user's standard headers */ - file = s_new(); - mboxpath("headers", user, file, 0); - b = Bopen(s_to_c(file), OREAD); - if(b != nil){ - switch(readheaders(b, &flags, &hdrstring, nil, 0)){ - case Error: /* error */ - fatal("reading"); - } - Bterm(b); - if(Bwrite(&out, s_to_c(hdrstring), s_len(hdrstring)) != - s_len(hdrstring)) - fatal("write error"); - s_free(hdrstring); - hdrstring = nil; + /* read user's standard headers */ + file = s_new(); + mboxpath("headers", user, file, 0); + b = Bopen(s_to_c(file), OREAD); + if(b != nil){ + switch(readheaders(b, &flags, &hdrstring, nil, 0)){ + case Error: /* error */ + fatal("reading"); } + Bterm(b); + if(Bwrite(&out, s_to_c(hdrstring), s_len(hdrstring)) != + s_len(hdrstring)) + fatal("write error"); + s_free(hdrstring); + hdrstring = nil; } /* add any headers we need */