Re: Customizing one send-hook for all mailing lists

2000-06-20 Thread David T-G

Dirk --

Please don't just reply to some message and start a new thread; because
mutt threads so well, we get an unrelated message in the middle of
another thread.  I may be assuming a lot, but the new Subject: and the
apparently completely unrelated text in the note really make it seem
like this thread should be elsewhere -- so I pruned out the threading
headers in my copy of your message to make it a new thread.

...and then Dirk Ruediger said...
% Hi all!
% 
% I want to define an implicite send-hook for all mailing lists I am
% subscribed to and define a special attribution, use special signatures
% and something like that.

Don't know that I can help you with this one; sorry :-)


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Customizing one send-hook for all mailing lists

2000-06-20 Thread Aaron Schrab

At 16:02 +0200 19 Jun 2000, Dirk Ruediger [EMAIL PROTECTED] wrote:
 Is it possible to process the entries of "subscribe" or "lists" to use
 it for send-hook, e.g.:

Read section 4.2 of the manual.  Especially the part about the ~l
pattern.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
 The "data" for most coffee URIs contain no caffeine.  -- RFC 2324




Re: Customizing one send-hook for all mailing lists

2000-06-20 Thread Mikko Hänninen

Dirk Ruediger [EMAIL PROTECTED] wrote on Mon, 19 Jun 2000:
 I want to define an implicite send-hook for all mailing lists I am
 subscribed to and define a special attribution, use special signatures
 and something like that.
 
 Is it possible to process the entries of "subscribe" or "lists" to use
 it for send-hook, e.g.:
 
   send-hook ($subsribe) 'set attribution="Hi all!,\n"'


   Simple Patterns
   Mutt understands the following simple patterns:

...snip...

   ~l   message is addressed to a known mailing list


So what you want can be done with:

  send-hook ~l 'set attribution="Hi all!,\n"'


(It's a bit unfortunate that nobody's fixed ~l yet after the distinction
between subscribed and unsubscribed lists was added, I think ~l
matches either all lists or subscribed lists, I forget which, and there's
no way to get the other kind of matching...)

Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
1200 bps used to seem so fast




Customizing one send-hook for all mailing lists

2000-06-19 Thread Dirk Ruediger

Hi all!

I want to define an implicite send-hook for all mailing lists I am
subscribed to and define a special attribution, use special signatures
and something like that.

Is it possible to process the entries of "subscribe" or "lists" to use
it for send-hook, e.g.:

  send-hook ($subsribe) 'set attribution="Hi all!,\n"'

TIA, Dirk
-- 
Dirk Ruediger, Rostock, Germany




Re: Customizing one send-hook for all mailing lists

2000-06-19 Thread Wilhelm Wienemann

Hello Dirk!

On Mon, 19 Jun 2000, Dirk Ruediger wrote:

 I want to define an implicite send-hook for all mailing lists I am
 subscribed to and define a special attribution, use special signatures
 and something like that.
 
 Is it possible to process the entries of "subscribe" or "lists" to use
 it for send-hook, e.g.:
 
   send-hook ($subsribe) 'set attribution="Hi all!,\n"'

Maybe you will try this on your box:

--- cut here  -
#
# only match "To" address for send-hooks:
#
set default_hook="~t %s"

# First we define some defaults (english):
send-hook . \
"set signature=~/.Sig \
 locale=C \
 attribution='Hello %v!\n\nOn %{%a, %d %b %Y}, %n wrote:\n'"
 # On Mon, 16 Jun 2000, Dirk Ruediger wrote:

# German specials:
send-hook 
[.@](de|ch|at|(de\\.oracle|ndh|gtn|westend|kens|debis|suse)\\.com|(ndh|gmx|rpv|ivm|wor|socha|meta-list)\\.net)$
 
\
"set signature=~/.signature \
 locale=de_DE \
 attribution='Hallo %v!\n\n%n schrieb am %{%A, %d. %B %Y}:\n'"
 # Dirk Ruediger schrieb am Montag, 16. Juni 2000: 

# Special signature/attribution/locale for robots:
send-hook ^(majordomo|pgp|gup|mail2news)|request@
\
'set signature="" attribution="" locale="C"'

[...] 

--- cut here  -

bye - Wilhelm

-- 
 _____   ___   _ ___ 
| |  (_)_ _ _  ___ __ |_  ) |_  ) / | __|  ...solutions  for smart penguins
| |__| | ' \ || \ \ /  / / _ / / _| |__ \  
||_|_||_\_,_/_\_\ /___(_)___(_)_|___/Wilhelm Wienemann