[17534] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: exmh bug

daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Sat Feb 12 01:13:54 2000

Date: Sat, 12 Feb 2000 01:13:44 -0500 (EST)
From: Jacob Morzinski <jmorzins@MIT.EDU>
To: Kev <klmitch@mit.edu>
cc: bug-sipb@mit.edu, bugs@mit.edu
In-Reply-To: <200002112047.PAA24858@nerd-xing.mit.edu>
Message-ID: <Pine.LNX.4.21.0002112301560.16264-100000@quiche-lorraine.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

[cc'd to bugs because this is rooted in a nmh problem]

On Fri, 11 Feb 2000, Kev wrote:
> I received an email with the reply-to set to a very long email address.
> When I hit 'r', exmh formated the reply with that single email address
> broken across two lines, rendering it invalid.

Testing revelas that this seems to be an underlying [n]mh
problem.  I sent a message to myself, and played with it.
Repl splits the address across lines:

    athena% show last | grep ^From
    From: really-long-email-address-that-extends-for-a-long-long-long-long-distance@MIT.EDU

[..repl, save but don't send the draft..]
    athena% ggrep -C1 ^To `mhpath +drafts last`
    To: really-long-email-address-that-extends-for-a-long-long-long-long-dis
        tance@MIT.EDU

A brief look around suggests that there's no way to fix this
above the source-code level.  You can use "repl -width 300", or
remove the %(void(width)) from /usr/athena/etc/replcomps , but
both of these have the disadvantage that they won't properly
line-wrap instances where there are multiple addresses on the
To: or Cc: line.


The relevant part of the nmh source seems to start at line 730
of /mit/source-8.3/third/nmh/sbr/fmt_scan.c:

		/* try to break at a comma; failing that, break at a
		 * space, failing that, just split the line.
		 */

Maybe it would be reasonable to change this to not split in the
middle of lines.

 -Jacob


home help back first fref pref prev next nref lref last post