nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] header issue, when replying to self

2010-03-30 21:22:12
Paul wrote:

i get bitten by this several times a year -- perhaps there's a
way to configure around it.

i often reply to my own mailing list posts.  when i do so, mh
attempts to reply to me, cc'ing the original recipient (i.e.,
the list).   but i think because i'm both the sender and the
recipient, the To: header ends up missing entirely.  for example,
here's what the draft looks like if i start to reply to an old
message i sent to this list:

    Subject: Re: [Nmh-workers] sync'ing an mh mailstore between two machines?
    cc: nmh-workers(_at_)nongnu(_dot_)org
    In-reply-to: 
<12129(_dot_)1211398023(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us>
    References: 
<E1JyqcD-0007Y8-N7(_at_)mnementh(_dot_)archaic(_dot_)org(_dot_)uk> 
<200805211914.m4L
JExTY0>
    Fcc: outbox
    --------

needless to say, if i don't notice, and simply send the message,
it causes great confusion.

the command i use to reply to a list looks like this, after
expanding my wrapper scripts:

    repl -cc to -cc cc -form form.repl.usual <msgnumber>

the contents of form.repl.usual look like this:

    %(lit)%(formataddr %<{reply-to}%|%<{from}%|%{sender}%>%>)\
    %<(nonnull)%(void(width))%(putaddr To: )\n%>\
    %<{subject}Subject: Re: %{subject}\n%>\
    %(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
    %<(nonnull)%(void(width))%(putaddr cc: )\n%>\
    %;
    %; Make References: and In-reply-to: fields for threading.
    %; Use (void), (trim) and (putstr) to eat trailing whitespace.
    %;
    %<{message-id}In-reply-to: %{message-id}\n%>\
    %<{message-id}References: \
    %<{references}%(void{references})%(trim)%(putstr) %>\
    %(void{message-id})%(trim)%(putstr)\n%>\
    Reply-to: pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us
    Fcc: outbox
    --------



i've just done a scan of the repl and mh-format man pages to see
what might cause, or fix, this, but i'm missing it if it's there.

any ideas?

I add -cc me when replying to my own messages and suppress
the second copy (see below) by using -query.  Inconvenient
and of course doesn't solve the problem.  But maybe it gives
a clue on how to fix it:  -cc me (or -cc all) restores the
To: header.  But that seems like an unintended side effect:
I don't see why -cc should affect To:.

And they also add my login name, even if my reply address is
in my Alternate-Mailboxes.  I don't need two copies of the
message.

I took a quick look at the code in uip/replsbr.c and quick
fixes didn't jump out at me.  Maybe it would be best to
maintain the current behavior and add another -cc option,
but I have yet to figure out how the current code works.

David


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>