[Top] [All Lists]

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

2010-04-04 22:07:49
david wrote:
I wrote:

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 
    cc: nmh-workers(_at_)nongnu(_dot_)org
    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%>\
    %<(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) %>\
    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

That's because I had %(formataddr(me)) in my reply form
(and so do you).  Removing that got rid of the reply to my
login name.

So, adding -cc me (or -cc all) should get what you want.

at the expense of the extra cc to me, right?  (unless i use -query)

Or, we could hack the code as shown below.  That keeps
the To: header to self, unless "-nocc me" was specified.
It keeps the confusion between cc and To:, but at this
point I don't think that's worth fixing.

did you attach the right patch?  i'm having trouble seeing
that this will result in any change in behavior.



Index: replsbr.c
RCS file: /sources/nmh/nmh/uip/replsbr.c,v
retrieving revision 1.11
diff -u -r1.11 replsbr.c
--- replsbr.c        13 Apr 2007 11:53:08 -0000      1.11
+++ replsbr.c        5 Apr 2010 01:44:38 -0000
@@ -396,7 +396,9 @@
             && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox))
         return 0;
-    if (!ccme && ismymbox (np))
+    /* Check for own mailbox.  Don't reply to self if -nocc me specified. */
+    if (ccme == 0 && ismymbox (np))
     return 0;
     if (querysw) {

Nmh-workers mailing list

 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 55.6 degrees)

Nmh-workers mailing list

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