Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* message-alternative-emails
@ 2010-12-22 17:42 Yuri D'Elia
  0 siblings, 0 replies; 10+ messages in thread
From: Yuri D'Elia @ 2010-12-22 17:42 UTC (permalink / raw)
  To: info-gnus-english

In my .gnus file I have the following:

(setq message-alternative-emails
  (concat
    "\\(email\\)\\|" ...
    "\\(email\\)\\|" ... ))

(setq message-dont-reply-to-names
  (concat
    "\\(" (regexp-quote user-mail-address) "\\)\\|"
    message-alternative-emails))

(setq gnus-ignored-from-addresses message-dont-reply-to-names)

It sounds like there should be a way to avoid all that repetition. Why
aren't these variables derived from each-other automatically by default?

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

* Re: message-alternative-emails
       [not found]   ` <mailman.2.1293964919.24794.info-gnus-english@gnu.org>
@ 2011-01-02 19:20     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-01-02 19:20 UTC (permalink / raw)
  To: info-gnus-english

Yuri D'Elia <wavexx@users.sf.net> writes:

>   message-alternative-emails: defaults to nil
>   message-dont-reply-to-names: defaults to nil (which means to strip
>     user-mail-address)

Well, it defaults to `rmail-dont-reply-to-names', but that's more for
hysterical porpoises... 

>   gnus-ignored-from-addresses defaults to user-mail-address
>
> Wouldn't it make more sense to derive message-dont-reply-to-names and
> gnus-ignored-from-addresses from a combination of user-mail-address and
> message-alternative-emails?

It might, but I would imagine that there are people who don't want any
address stripping -- for instance, if they want to Cc a job mail
account, but want to use the home account as the From, and so on.

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

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

* Re: message-alternative-emails
  2011-01-02  7:37 ` message-alternative-emails Lars Magne Ingebrigtsen
@ 2011-01-02 10:41   ` Yuri D'Elia
       [not found]   ` <mailman.2.1293964919.24794.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Yuri D'Elia @ 2011-01-02 10:41 UTC (permalink / raw)
  To: info-gnus-english

On Sun, 02 Jan 2011 08:37:17 +0100, Lars Magne Ingebrigtsen wrote:
>> In my .gnus file I have the following:
>>
>> (setq message-alternative-emails
>>   (concat
>>     "\\(email\\)\\|" ...
>>     "\\(email\\)\\|" ... ))
>>
>> (setq message-dont-reply-to-names
>>   (concat
>>     "\\(" (regexp-quote user-mail-address) "\\)\\|"
>>     message-alternative-emails))
>>
>> (setq gnus-ignored-from-addresses message-dont-reply-to-names)
>>
>> It sounds like there should be a way to avoid all that repetition. Why
>> aren't these variables derived from each-other automatically by default?
>
> The last variable is derived from `user-mail-address'.  The first second
> wouldn't make sense to derive from the first, I think.

Except that user-mail-address can only accept a single address.

Currently:

  message-alternative-emails: defaults to nil
  message-dont-reply-to-names: defaults to nil (which means to strip
    user-mail-address)
  gnus-ignored-from-addresses defaults to user-mail-address

Wouldn't it make more sense to derive message-dont-reply-to-names and
gnus-ignored-from-addresses from a combination of user-mail-address and
message-alternative-emails?

It seems to me that the purpose of such variables is to easily recognize
yourself from your different email aliases (except maybe from
message-dont-reply-to-names which may be a superset), and such the
defaults are a bit unsatisfactory.

To be more precise:

message-dont-reply-to-names defaulting to:

(when message-alternative-emails
  (concat "\\(" (regexp-quote user-mail-address) "\\)\\|\\("
    message-alternative-emails "\\)"))

it makes more sense to avoid replying to one of your many identities.

then default gnus-ignored-from-addresses from
message-dont-reply-to-names? If message-dont-reply-to-names is really
supposed to be a superset, then I would prefer
gnus-ignored-from-addresses to default of the combination of
user-mail-address and message-alternative-emails as above.

I still do believe that message-dont-reply-to-names is mostly used as a
way to filter out yourself though, and using it as a default for
gnus-ignored-from-addresses should be fine.

The opposite should be always true however: message-dont-reply-to-names
is probably always a subset of gnus-ignored-from-addresses, though it's
probably defined too late to be used as a default.

Any comment?

I could supply a patch for this.

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

* Re: message-alternative-emails
       [not found] <mailman.4.1293039909.895.info-gnus-english@gnu.org>
@ 2011-01-02  7:37 ` Lars Magne Ingebrigtsen
  2011-01-02 10:41   ` message-alternative-emails Yuri D'Elia
       [not found]   ` <mailman.2.1293964919.24794.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-01-02  7:37 UTC (permalink / raw)
  To: info-gnus-english

Yuri D'Elia <wavexx@users.sf.net> writes:

> In my .gnus file I have the following:
>
> (setq message-alternative-emails
>   (concat
>     "\\(email\\)\\|" ...
>     "\\(email\\)\\|" ... ))
>
> (setq message-dont-reply-to-names
>   (concat
>     "\\(" (regexp-quote user-mail-address) "\\)\\|"
>     message-alternative-emails))
>
> (setq gnus-ignored-from-addresses message-dont-reply-to-names)
>
> It sounds like there should be a way to avoid all that repetition. Why
> aren't these variables derived from each-other automatically by default?

The last variable is derived from `user-mail-address'.  The first second
wouldn't make sense to derive from the first, I think.

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

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

* Re: message-alternative-emails
  2009-08-13  7:03   ` message-alternative-emails Olivier Sirven
@ 2009-08-13 13:29     ` Mark T.B. Carroll
  0 siblings, 0 replies; 10+ messages in thread
From: Mark T.B. Carroll @ 2009-08-13 13:29 UTC (permalink / raw)
  To: info-gnus-english

Olivier Sirven <the.slaa@gmail.com> writes:

> And the variable you're talking about, user-mail-addresses, is not known?

Argh, sorry about that, looks like I only use it in a locally-defined
function. ):

Mark

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

* Re: message-alternative-emails
       [not found] ` <mailman.4505.1250148230.2239.info-gnus-english@gnu.org>
@ 2009-08-13  8:09   ` Olivier Sirven
  0 siblings, 0 replies; 10+ messages in thread
From: Olivier Sirven @ 2009-08-13  8:09 UTC (permalink / raw)
  To: info-gnus-english

Nicolas KOWALSKI <niko@petole.demisel.net> writes:

> I have the two following lines about this in my ~/.gnus:
>
> (setq
>  message-dont-reply-to-names message-alternative-emails
>  gnus-ignored-from-addresses message-alternative-emails
>  )

Thanks it works!

-- 
Olivier

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

* Re: message-alternative-emails
  2009-08-12 22:09 message-alternative-emails Olivier Sirven
  2009-08-12 22:42 ` message-alternative-emails Mark T.B. Carroll
@ 2009-08-13  7:23 ` Nicolas KOWALSKI
       [not found] ` <mailman.4505.1250148230.2239.info-gnus-english@gnu.org>
  2 siblings, 0 replies; 10+ messages in thread
From: Nicolas KOWALSKI @ 2009-08-13  7:23 UTC (permalink / raw)
  To: info-gnus-english

Olivier Sirven <the.slaa@gmail.com> writes:

> Hello,

Hello,

> I use message-alternative-emails to declare all my email aliases but
> when I create a wide reply to a message sent to one of my aliases Gnus
> keeps adding this alias to the CC recipients list. How can I avoid
> this?

I have the two following lines about this in my ~/.gnus:

(setq
 message-dont-reply-to-names message-alternative-emails
 gnus-ignored-from-addresses message-alternative-emails
 )

-- 
Nicolas

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

* Re: message-alternative-emails
  2009-08-12 22:42 ` message-alternative-emails Mark T.B. Carroll
@ 2009-08-13  7:03   ` Olivier Sirven
  2009-08-13 13:29     ` message-alternative-emails Mark T.B. Carroll
  0 siblings, 1 reply; 10+ messages in thread
From: Olivier Sirven @ 2009-08-13  7:03 UTC (permalink / raw)
  To: info-gnus-english

"Mark T.B. Carroll" <mtbc@ixod.org> writes:

> Does setting user-mail-addresses help?
I defined user-mail-address variable to one of my email addresses
And the variable you're talking about, user-mail-addresses, is not known?

-- 
Olivier

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

* Re: message-alternative-emails
  2009-08-12 22:09 message-alternative-emails Olivier Sirven
@ 2009-08-12 22:42 ` Mark T.B. Carroll
  2009-08-13  7:03   ` message-alternative-emails Olivier Sirven
  2009-08-13  7:23 ` message-alternative-emails Nicolas KOWALSKI
       [not found] ` <mailman.4505.1250148230.2239.info-gnus-english@gnu.org>
  2 siblings, 1 reply; 10+ messages in thread
From: Mark T.B. Carroll @ 2009-08-12 22:42 UTC (permalink / raw)
  To: info-gnus-english

Olivier Sirven <the.slaa@gmail.com> writes:

> I use message-alternative-emails to declare all my email aliases but
> when I create a wide reply to a message sent to one of my aliases Gnus
> keeps adding this alias to the CC recipients list. How can I avoid this?

Does setting user-mail-addresses help?

Mark

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

* message-alternative-emails
@ 2009-08-12 22:09 Olivier Sirven
  2009-08-12 22:42 ` message-alternative-emails Mark T.B. Carroll
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Olivier Sirven @ 2009-08-12 22:09 UTC (permalink / raw)
  To: info-gnus-english

Hello,

I use message-alternative-emails to declare all my email aliases but
when I create a wide reply to a message sent to one of my aliases Gnus
keeps adding this alias to the CC recipients list. How can I avoid this?

Thanks for your help.

-- 
Olivier

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

end of thread, other threads:[~2011-01-02 19:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-22 17:42 message-alternative-emails Yuri D'Elia
     [not found] <mailman.4.1293039909.895.info-gnus-english@gnu.org>
2011-01-02  7:37 ` message-alternative-emails Lars Magne Ingebrigtsen
2011-01-02 10:41   ` message-alternative-emails Yuri D'Elia
     [not found]   ` <mailman.2.1293964919.24794.info-gnus-english@gnu.org>
2011-01-02 19:20     ` message-alternative-emails Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2009-08-12 22:09 message-alternative-emails Olivier Sirven
2009-08-12 22:42 ` message-alternative-emails Mark T.B. Carroll
2009-08-13  7:03   ` message-alternative-emails Olivier Sirven
2009-08-13 13:29     ` message-alternative-emails Mark T.B. Carroll
2009-08-13  7:23 ` message-alternative-emails Nicolas KOWALSKI
     [not found] ` <mailman.4505.1250148230.2239.info-gnus-english@gnu.org>
2009-08-13  8:09   ` message-alternative-emails Olivier Sirven

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