Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: follow-up & CC
Date: Tue, 18 Nov 2003 17:05:42 +0100	[thread overview]
Message-ID: <v9ad6t8xwp.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <u4qx9e1e6.fsf@gnu.org>

On Wed, Nov 12 2003, Sam Steingold wrote:

> +(defvar message-header-synonyms
> +  '((To Cc Bcc))
> +  "List of lists of header synonyms.
> +E.g., if this list contains a member list with elements `Cc' and `To',
> +then `message-carefully-insert-headers' will not insert a `To' header
> +when the message is already `Cc'ed to the recipient.")
> +
>  (defun message-carefully-insert-headers (headers)
> +  "Insert the headers, an alist, into the message buffer.
> +Does not insert the headers when they are already present there
> +or in the synonym headers, defined by `message-header-synonyms'."
[...]

Committed, thanks.

> +              when (and old-header (string-match new-header old-header))

Hm, another problem here.  Say, I have "To: bar@foo.invalid.my.domain"
in the current message.  Then, the following examples wont work as
expected:

- (message-carefully-insert-headers '((To . "bar@foo.invalid")))

- (message-carefully-insert-headers '((To . "ar@foo.invalid.my.domain")))

- (setq case-fold-search nil)
  (message-carefully-insert-headers '((To . "bar@FOO.INVALID.my.domain")))

Maybe it would be better to use something like (gnus-string-equal (nth
1 (mail-extract-address-components ...))).

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




  reply	other threads:[~2003-11-18 16:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10  1:18 Sam Steingold
2003-11-10 12:30 ` Reiner Steib
2003-11-10 14:47   ` Sam Steingold
2003-11-10 17:44     ` Reiner Steib
2003-11-10 18:04       ` Sam Steingold
2003-11-10 18:54         ` Reiner Steib
2003-11-10 19:12           ` Sam Steingold
2003-11-10 19:26           ` Sam Steingold
2003-11-10 20:26             ` Reiner Steib
2003-11-12 16:05               ` Sam Steingold
2003-11-12 16:54                 ` Reiner Steib
2003-11-12 18:36                   ` Sam Steingold
2003-11-12 20:00                     ` Reiner Steib
2003-11-12 21:13                       ` Sam Steingold
2003-11-18 16:05                         ` Reiner Steib [this message]
2003-11-18 18:50                           ` Sam Steingold
2003-11-18 19:57                             ` Reiner Steib
2003-11-18 20:47                               ` Sam Steingold
2004-01-03 14:07                                 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9ad6t8xwp.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).