Re: group and alias

2021-03-01 Thread Cameron Simpson
On 01Mar2021 09:45, Kevin J. McCarthy  wrote:
>On Mon, Mar 01, 2021 at 01:32:47AM -0500, Jon LaBadie wrote:
>>And where/how do you use the group rather than the alias?
>
>Groups are used in patterns.  See the modifiers starting with '%' in 
>.

For example, the "%f htmlers" in the last line below:


# alternative-order criteria
message-hook . 'unalternative_order *; alternative_order text/plain 
text/html'
# Apple Mail embeds attachments in the HTML part instead of outside 
# the multipart/mixed
message-hook '~h "X-Mailer: Apple Mail" ~X 1-' 'unalternative_order *; 
alternative_order text/html multipart/mixed text/plain'
# senders who can't seem to master multipart/mixed, and send empty
# or useless text/plain sections
# or just badly badly formatted plain text, such as live.com etc
message-hook '%f htmlers | ~f @no-re...@cc.yahoo-inc.com | ~f @outlook.com 
| ~f live.com | ~f @facebookmail.com' 'unalternative_order *; alternative_order 
text/html text/plain'

Cheers,
Cameron Simpson 


Re: group and alias

2021-03-01 Thread Kevin J. McCarthy

On Mon, Mar 01, 2021 at 01:32:47AM -0500, Jon LaBadie wrote:

And where/how do you use the group rather than the alias?


Groups are used in patterns.  See the modifiers starting with '%' in 
.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: group and alias

2021-02-28 Thread Jon LaBadie

On Mon, Mar 01, 2021 at 01:19:10PM +1100, Cameron Simpson wrote:

On 28Feb2021 19:00, Jon LaBadie  wrote:

Trying to use the "group" facility.  Expected I could
do something like:
 group -group ABC -addr  -addr  -addr 

And then email 3 people with

 $ mutt ABC

I am able to accomplish this with an alias:

 alias ABC , , 

Is this not an application for which "group" was intended?


Aliases probably predate groups, I'd expect. They can contain only
addresses (including other aliases).

Groups can include regexps for matching, so they're arguably more a
PATTERN thing than an alias is.

And I presume that recognising that often aliases and groups server the
same purpose, alias has a -group options which also adds the addresses
to a named group. I maintain my alias using a small otuside db, and
autogenerate them. They all have the form:

   alias -group group_name alias_name \
   address, \
   ... etc ...

where in fact group_name and alias_name are the same name.



And where/how do you use the group rather than the alias?

Jon
--
Jon H. LaBadie j...@labadie.us
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: group and alias

2021-02-28 Thread Cameron Simpson
On 28Feb2021 19:00, Jon LaBadie  wrote:
>Trying to use the "group" facility.  Expected I could
>do something like:
>  group -group ABC -addr  -addr  -addr 
>
>And then email 3 people with
>
>  $ mutt ABC
>
>I am able to accomplish this with an alias:
>
>  alias ABC , , 
>
>Is this not an application for which "group" was intended?

Aliases probably predate groups, I'd expect. They can contain only 
addresses (including other aliases).

Groups can include regexps for matching, so they're arguably more a 
PATTERN thing than an alias is.

And I presume that recognising that often aliases and groups server the 
same purpose, alias has a -group options which also adds the addresses 
to a named group. I maintain my alias using a small otuside db, and 
autogenerate them. They all have the form:

alias -group group_name alias_name \
address, \
... etc ...

where in fact group_name and alias_name are the same name.

Cheers,
Cameron Simpson 


group and alias

2021-02-28 Thread Jon LaBadie

Trying to use the "group" facility.  Expected I could
do something like:

  group -group ABC -addr  -addr  -addr 

And then email 3 people with

  $ mutt ABC

I am able to accomplish this with an alias:

  alias ABC , , 

Is this not an application for which "group" was intended?

Jon
--
Jon H. LaBadie j...@labadie.us
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)