Gnus development mailing list
 help / color / mirror / Atom feed
* To/Cc address uniquification
@ 2010-08-30 22:31 Lars Magne Ingebrigtsen
  2010-08-31  8:13 ` Steinar Bang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-30 22:31 UTC (permalink / raw)
  To: ding

That should be a word.

A very common situation at work is that I've misconfigured the MTA on my
machine, so messages from me to

  To: cvs

is expanded by the MTA to

  To: cvs@beatriz.netfonds.no

instead of cvs@netfonds.no.  That, in itself, is OK, but then somebody
responds to it and somehow both cvs@beatriz.netfonds.no and
cvs@netfonds.no get in the To/Cc headers, and then everybody gets two of
everything and I have to edit the headers and AAARGH.

Now, sensible people might suggest that I just fix the configuration on
my MTA, but, man!  That's boring.

So I want some functionality in Message that would root out these
obvious duplicates.  But I want it to be general.

Here's what I envision:

(setq message-uniquifications
      '(("\\([^@]+\\)@netfonds.no" "\\1@.*\\.netfonds.no")
      ;; Meaning that if you have foo@netfonds.no in the recipient list,
      ;; then all instances of foo@.*.netfonds.no should be removed.
        ("bugzilla@" ".*")
      ;; Meaning that if bugzilla is in the recipient list, then remove
      ;; all the other addresses.
      ("\\([^@]+\\)@\\(.*\\)$" "\\1@.*\\.\\2")
      ;; This would be a general rule that most people might want...
      ))

Doesn't that sound slightly useful?

And there's the \1 literal string expansion thing again that we were
talking about earlier.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-31 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-30 22:31 To/Cc address uniquification Lars Magne Ingebrigtsen
2010-08-31  8:13 ` Steinar Bang
2010-08-31 14:39 ` Lars Magne Ingebrigtsen
2010-08-31 18:33 ` Ted Zlatanov
2010-08-31 18:41   ` Lars Magne Ingebrigtsen

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).