Gnus development mailing list
 help / color / mirror / Atom feed
* Re: problem with message-dont-reply-to-names
  2005-06-17 19:48 problem with message-dont-reply-to-names Uwe Brauer
@ 2005-06-17 17:59 ` Adam Sjøgren
  2005-06-17 20:14   ` Uwe Brauer
  2005-06-18 11:52 ` Mark Thomas
  1 sibling, 1 reply; 8+ messages in thread
From: Adam Sjøgren @ 2005-06-17 17:59 UTC (permalink / raw)


On Fri, 17 Jun 2005 19:48:36 +0000, Uwe wrote:

> I tried

> (setq message-dont-reply-to-names ".*<uwe_brauer@bla.bla>\\|
> <uwe_brauer@bla.bla>")

> But this did not work neither. So it seems that I have difficulties
> with the regexp. Can anybody help me?

I'm using this:

 (setq message-dont-reply-to-names "\\(asjo\\|spamtrap\\|webcustodian\\|webspamtrap\\|adam\\|webmaster\\)@\\(koldfront.dk\\|asjo.org\\||diku.dk\\)")

with success.

Maybe you're simply missing the \\( and \\) for your \\| to work?


  Best regards,

-- 
 "I hate mental exercise                                      Adam Sjøgren
  Thinking gives me pain"                                asjo@koldfront.dk




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

* Re: problem with message-dont-reply-to-names
  2005-06-17 20:14   ` Uwe Brauer
@ 2005-06-17 18:40     ` Adam Sjøgren
  2005-06-17 20:51       ` Uwe Brauer
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Sjøgren @ 2005-06-17 18:40 UTC (permalink / raw)


On Fri, 17 Jun 2005 20:14:49 +0000, Uwe wrote:

> (setq message-dont-reply-to-names "\\(Uwe \\| uwe \\| uwe brauer\\|
> Uwe Brauer\\)\\(<uwe_brauer@mat.ucm.es>\\)") (setq
> message-dont-reply-to-names "\\(Uwe Brauer
> <uwe_brauer@mat.ucm.es>\\)\\|\\(uwe brauer
> <uwe_brauer@mat.ucm.es>\\)\\|\\(<uwe_brauer@mat.ucm.es>\\)")

I think you're missing the point. The structure should be:

  \((onething\\|anotherthing\\|athirdthing\\|afourth\\)

I think. Does that help?


  Best regards,

-- 
 "I hate mental exercise                                      Adam Sjøgren
  Thinking gives me pain"                                asjo@koldfront.dk




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

* problem with message-dont-reply-to-names
@ 2005-06-17 19:48 Uwe Brauer
  2005-06-17 17:59 ` Adam Sjøgren
  2005-06-18 11:52 ` Mark Thomas
  0 siblings, 2 replies; 8+ messages in thread
From: Uwe Brauer @ 2005-06-17 19:48 UTC (permalink / raw)


Hello 

I receive message in which my address or part of my address appear in
the CC field, like

CC: <uwe_brauer@bla.bla>
or
CC: Uwe Brauer <uwe_brauer@bla.bla>


Etc.


So the second case I can deal with 

(setq message-dont-reply-to-names ".*<uwe_brauer@bla.bla>")
however the first case is then ignored.

I tried

(setq message-dont-reply-to-names ".*<uwe_brauer@bla.bla>\\|
<uwe_brauer@bla.bla>")

But this did not work neither.
So it seems that I have difficulties with the regexp. Can anybody
help me?

Thanks

Uwe Brauer 



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

* Re: problem with message-dont-reply-to-names
  2005-06-17 17:59 ` Adam Sjøgren
@ 2005-06-17 20:14   ` Uwe Brauer
  2005-06-17 18:40     ` Adam Sjøgren
  0 siblings, 1 reply; 8+ messages in thread
From: Uwe Brauer @ 2005-06-17 20:14 UTC (permalink / raw)


>>>>> "Adam" == Adam Sjøgren <asjo@koldfront.dk> writes:

    Adam> On Fri, 17 Jun 2005 19:48:36 +0000, Uwe wrote:
    >> I tried

    >> (setq message-dont-reply-to-names ".*<uwe_brauer@bla.bla>\\|
    >> <uwe_brauer@bla.bla>")

    >> But this did not work neither. So it seems that I have difficulties
    >> with the regexp. Can anybody help me?

    Adam> I'm using this:

    Adam>  (setq message-dont-reply-to-names "\\(asjo\\|spamtrap\\|webcustodian\\|webspamtrap\\|adam\\|webmaster\\)@\\(koldfront.dk\\|asjo.org\\||diku.dk\\)")

    Adam> with success.

    Adam> Maybe you're simply missing the \\( and \\) for your \\| to work?

Thanks, no the problem persists the "empty"
version <uwe_brauer@bla.bla> is ignored. I tried

(setq message-dont-reply-to-names "\\(Uwe \\| uwe \\| uwe brauer\\| Uwe Brauer\\)\\(<uwe_brauer@mat.ucm.es>\\)")
(setq message-dont-reply-to-names "\\(Uwe Brauer <uwe_brauer@mat.ucm.es>\\)\\|\\(uwe brauer <uwe_brauer@mat.ucm.es>\\)\\|\\(<uwe_brauer@mat.ucm.es>\\)")


So it works  for Uwe Brauer <uwe_brauer@bla.bla> and  the like but not
for <uwe_brauer@bla.bla>
strange

Uwe Brauer



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

* Re: problem with message-dont-reply-to-names
  2005-06-17 18:40     ` Adam Sjøgren
@ 2005-06-17 20:51       ` Uwe Brauer
  0 siblings, 0 replies; 8+ messages in thread
From: Uwe Brauer @ 2005-06-17 20:51 UTC (permalink / raw)


>>>>> "Adam" == Adam Sjøgren <asjo@koldfront.dk> writes:

    Adam> On Fri, 17 Jun 2005 20:14:49 +0000, Uwe wrote:
    >> (setq message-dont-reply-to-names "\\(Uwe \\| uwe \\| uwe brauer\\|
    >> Uwe Brauer\\)\\(<uwe_brauer@mat.ucm.es>\\)") (setq
    >> message-dont-reply-to-names "\\(Uwe Brauer
    >> <uwe_brauer@mat.ucm.es>\\)\\|\\(uwe brauer
    >> <uwe_brauer@mat.ucm.es>\\)\\|\\(<uwe_brauer@mat.ucm.es>\\)")

    Adam> I think you're missing the point. The structure should be:

You are completely right. (Regexp Grr)
    Adam>   \((onething\\|anotherthing\\|athirdthing\\|afourth\\)

    Adam> I think. Does that help?

It does thanks

Uwe 



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

* Re: problem with message-dont-reply-to-names
  2005-06-17 19:48 problem with message-dont-reply-to-names Uwe Brauer
  2005-06-17 17:59 ` Adam Sjøgren
@ 2005-06-18 11:52 ` Mark Thomas
  2005-06-22 15:57   ` Uwe Brauer
  1 sibling, 1 reply; 8+ messages in thread
From: Mark Thomas @ 2005-06-18 11:52 UTC (permalink / raw)


On Fri, 17 Jun 2005 19:48:36 +0000, Uwe Brauer wrote:

> I receive message in which my address or part of my address appear in
> the CC field, like
>
> CC: <uwe_brauer@bla.bla>
> or
> CC: Uwe Brauer <uwe_brauer@bla.bla>
>
> So the second case I can deal with 
>
> (setq message-dont-reply-to-names ".*<uwe_brauer@bla.bla>")
> however the first case is then ignored.
>
> I tried
>
> (setq message-dont-reply-to-names ".*<uwe_brauer@bla.bla>\\|
> <uwe_brauer@bla.bla>")

You only need to include your email address(es) in
message-dont-reply-to-names, you don't need to try to match the entire
text.

Using

    (setq message-dont-reply-to-names "uwe_brauer@bla.bla")

should work and match both cases above.

And for creating a regexp that matches a list of strings, try
regexp-opt.  If you had a second address uwe_brauer@foo.foo, you could
use:

    (setq message-dont-reply-to-names
          (regexp-opt '("uwe_brauer@bla.bla"
                        "uwe_brauer@foo.foo")))

The second argument to regexp-opt must be a list of STRINGS, not
regexps.

-Mark




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

* Re: problem with message-dont-reply-to-names
  2005-06-18 11:52 ` Mark Thomas
@ 2005-06-22 15:57   ` Uwe Brauer
  2005-06-24 22:56     ` Miles Bader
  0 siblings, 1 reply; 8+ messages in thread
From: Uwe Brauer @ 2005-06-22 15:57 UTC (permalink / raw)


>>>>> "Mark" == Mark Thomas <mthomas=gmane05@edrc.cmu.edu> writes:



    Mark>     (setq message-dont-reply-to-names "uwe_brauer@bla.bla")
that's what I thought, but it did not.

    Mark> should work and match both cases above.

    Mark>  And for creating a regexp  that matches a  list of strings,
    Mark>   try   regexp-opt.     If   you  had   a    second  address
    Mark> uwe_brauer@foo.foo, you could use:

    Mark>     (setq message-dont-reply-to-names
    Mark>           (regexp-opt '("uwe_brauer@bla.bla"
    Mark>                         "uwe_brauer@foo.foo")))

That is really cool and helpful, thanks a lot.

Uwe 



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

* Re: problem with message-dont-reply-to-names
  2005-06-22 15:57   ` Uwe Brauer
@ 2005-06-24 22:56     ` Miles Bader
  0 siblings, 0 replies; 8+ messages in thread
From: Miles Bader @ 2005-06-24 22:56 UTC (permalink / raw)


Uwe Brauer <oub@mat.ucm.es> writes:
>     Mark>     (setq message-dont-reply-to-names
>     Mark>           (regexp-opt '("uwe_brauer@bla.bla"
>     Mark>                         "uwe_brauer@foo.foo")))
>
> That is really cool and helpful, thanks a lot.

Don't look at the regexp that `regexp-opt' returns though -- you might
go blind.

-Miles
-- 
`...the Soviet Union was sliding in to an economic collapse so comprehensive
 that in the end its factories produced not goods but bads: finished products
 less valuable than the raw materials they were made from.'  [The Economist]




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

end of thread, other threads:[~2005-06-24 22:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-17 19:48 problem with message-dont-reply-to-names Uwe Brauer
2005-06-17 17:59 ` Adam Sjøgren
2005-06-17 20:14   ` Uwe Brauer
2005-06-17 18:40     ` Adam Sjøgren
2005-06-17 20:51       ` Uwe Brauer
2005-06-18 11:52 ` Mark Thomas
2005-06-22 15:57   ` Uwe Brauer
2005-06-24 22:56     ` Miles Bader

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