Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!usc!ucsd!ucbvax!THINK.COM!garyo From: garyo@THINK.COM (Gary Oberbrunner) Newsgroups: comp.mail.mh Subject: repl wraps and indents headers incorrectly, I think Message-ID: <8909062110.AA00932@prometheus.think.com> Date: 6 Sep 89 21:10:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 60 When wrapping long headers with repl(1), it seems to use the length of the field name as the indent width rather than a fixed number of spaces or a TAB. I believe (although I don't have the RFC822 spec here) that indented header lines are always supposed to be indented with a TAB, or else they get treated as the beginning of the message. Repl's indenting breaks my reply mail to people with long return (or From) addresses, such as the following message (enclosed within lines of ==='s): ============================================================================ Date: Wed, 6 Sep 89 13:48:25 EDT From: Bob Doolittle ({gatech,uunet,petsd}!masscomp!rad) To: garyo Subject: this is a test ------------------ This is a test message to see how reply formatting works. ============================================================================ Repl turns this message into an outgoing header like this: ============================================================================ To: Bob Doolittle ({gatech,uunet, petsd}!masscomp!rad) Fcc: ccs Subject: Re: this is a test In-reply-to: Your message of Wed, 06 Sep 89 13:48:25 -0400. -------- ============================================================================ From the source code, it looks like this behavior is hardwired into fmtscan() (in uip/sbr/formatsbr.c). And fmtscan() is always called from Replout() (in uip/replsbr.c), regardless of the -format switch. So I don't know what I can do, short of an awk script that parses the headers and turns any leading spaces into a TAB. Any suggestions? Perhaps (I don't know enough about this to really tell) this is a sendmail config-file issue instead? Any help would be appreciated. Here's my .mh_profile, for completeness: ============================================================================ Path: Mail Editor: vi Signature: Gary Oberbrunner Alternate-Mailboxes: *garyo*,staff@*,*!staff Send: -verbose -alias aliases showproc: mhl Repl: -nocc me -fcc ccs -annotate Msg-Protect: 0600 Folder-Protect: 0744 Draft-Folder: /u8/garyo/Mail/drafts Sequence-Negation: ^ whom: -alias aliases ali: -alias aliases Unseen-Sequence: unseen ============================================================================ Thanks, Gary Oberbrunner garyo@think.com {ames,harvard}!think!garyo