From: depending on To:

2000-12-13 Thread Jakub Klausa

'lo

I want my mutt to use different "From: " field values depending on the "To:
" field. I managed to get it almost to work with the send-hook, but the
problem is that the "From: " field changed with "my_hdr" directive doesn't
get changed back to the default after sending the mail.

For example i want all my mail to be send with a "From: [EMAIL PROTECTED]", but when i
send to "To: [EMAIL PROTECTED]" i want the "From: " to be "From: [EMAIL PROTECTED]". It wokrs fine
untill i send the mail to [EMAIL PROTECTED] Then the "From: " is changed permanently to
[EMAIL PROTECTED] How do i handle this to change "From: " back to [EMAIL PROTECTED] after sending
the mail to [EMAIL PROTECTED]?

-- 
k.

 PGP signature


Re: From: depending on To:

2000-12-13 Thread Mark Luntzel

yeah, thats a common complaint around here with send-hook. not sure if its being 
worked on. 

??

On Wed, Dec 13, 2000 at 06:47:43PM +0100, Jakub Klausa chortled:
 'lo
 
 I want my mutt to use different "From: " field values depending on the "To:
 " field. I managed to get it almost to work with the send-hook, but the
 problem is that the "From: " field changed with "my_hdr" directive doesn't
 get changed back to the default after sending the mail.
 
 For example i want all my mail to be send with a "From: [EMAIL PROTECTED]", but when i
 send to "To: [EMAIL PROTECTED]" i want the "From: " to be "From: [EMAIL PROTECTED]". It wokrs fine
 untill i send the mail to [EMAIL PROTECTED] Then the "From: " is changed permanently to
 [EMAIL PROTECTED] How do i handle this to change "From: " back to [EMAIL PROTECTED] after sending
 the mail to [EMAIL PROTECTED]?
 
 -- 
 k.



-- 
Prepare for the inevitable, and you will be struck by something worse. 
Before you speak, listen to my fist. 
Walk alone before you walk ahead. 



Re: From: depending on To:

2000-12-13 Thread Lars Hecking


 I want my mutt to use different "From: " field values depending on the "To:
 " field. I managed to get it almost to work with the send-hook, but the
 problem is that the "From: " field changed with "my_hdr" directive doesn't
 get changed back to the default after sending the mail.
 
 Add another send-hook *before* the other one that resets this particual
 my_hdr:

send-hook . 'unmy_hdr From:'
send-hook '~t [EMAIL PROTECTED]' my_hdr From: ...

 I think I'll write up something for the manual ...




Re: From: depending on To:

2000-12-13 Thread Luke Ravitch

On Wed, Dec 13, 2000 at 06:47:43PM +0100, Jakub Klausa wrote:
 I want my mutt to use different "From: " field values depending on the "To:
 " field. I managed to get it almost to work with the send-hook, but the
 problem is that the "From: " field changed with "my_hdr" directive doesn't
 get changed back to the default after sending the mail.
 
 For example i want all my mail to be send with a "From: [EMAIL PROTECTED]", but when i
 send to "To: [EMAIL PROTECTED]" i want the "From: " to be "From: [EMAIL PROTECTED]". It wokrs fine
 untill i send the mail to [EMAIL PROTECTED] Then the "From: " is changed permanently to
 [EMAIL PROTECTED] How do i handle this to change "From: " back to [EMAIL PROTECTED] after sending
 the mail to [EMAIL PROTECTED]?
 

Use a default sendhook.  E.g.:

sendhook . my_hdr "From: [EMAIL PROTECTED]";

I think it also needs to go before your other sendhooks that my_hdr
From.  And you might want to check the syntax in the manual.  I'm
running on _very_ little sleep.  You also might consider setting from
instead of using my_hdr.  See the manual.

-- 
Luke



Re: From: depending on To:

2000-12-13 Thread Josh Huber

On Wed, Dec 13, 2000 at 09:57:49AM -0800, Mark Luntzel wrote:
 yeah, thats a common complaint around here with send-hook. not sure
 if its being worked on.

huh?

If you want a default value to be used with send-hook, just do
something like:

send-hook . my_hdr From: [EMAIL PROTECTED]
send-hook some@address my_hdr From: [EMAIL PROTECTED]

Each time you send an email, mutt will go through the list of hooks,
and if one matches, it will execute it.  '.' is used to specify the
default.  (it's a regex)

This is clearly documented in the manual, isn't it?

 On Wed, Dec 13, 2000 at 06:47:43PM +0100, Jakub Klausa chortled:
  'lo
  
  I want my mutt to use different "From: " field values depending on the "To:
  " field. I managed to get it almost to work with the send-hook, but the
  problem is that the "From: " field changed with "my_hdr" directive doesn't
  get changed back to the default after sending the mail.
  
  For example i want all my mail to be send with a "From: [EMAIL PROTECTED]", but when i
  send to "To: [EMAIL PROTECTED]" i want the "From: " to be "From: [EMAIL PROTECTED]". It wokrs fine
  untill i send the mail to [EMAIL PROTECTED] Then the "From: " is changed permanently to
  [EMAIL PROTECTED] How do i handle this to change "From: " back to [EMAIL PROTECTED] after sending
  the mail to [EMAIL PROTECTED]?
  
  -- 
  k.
 
 
 
 -- 
 Prepare for the inevitable, and you will be struck by something worse. 
 Before you speak, listen to my fist. 
 Walk alone before you walk ahead. 

-- 
Josh Huber | [EMAIL PROTECTED] |
1024D/6B21489A 61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A

 PGP signature


Re: From: depending on To:

2000-12-13 Thread Mark Luntzel

ok I am guilty of not digging deeply enough into the manual on this. 

thanks - 

On Wed, Dec 13, 2000 at 01:18:43PM -0500, Josh Huber chortled:
 On Wed, Dec 13, 2000 at 09:57:49AM -0800, Mark Luntzel wrote:
  yeah, thats a common complaint around here with send-hook. not sure
  if its being worked on.
 
 huh?
 
 If you want a default value to be used with send-hook, just do
 something like:
 
 send-hook . my_hdr From: [EMAIL PROTECTED]
 send-hook some@address my_hdr From: [EMAIL PROTECTED]
 
 Each time you send an email, mutt will go through the list of hooks,
 and if one matches, it will execute it.  '.' is used to specify the
 default.  (it's a regex)
 
 This is clearly documented in the manual, isn't it?
 
  On Wed, Dec 13, 2000 at 06:47:43PM +0100, Jakub Klausa chortled:
   'lo
   
   I want my mutt to use different "From: " field values depending on the "To:
   " field. I managed to get it almost to work with the send-hook, but the
   problem is that the "From: " field changed with "my_hdr" directive doesn't
   get changed back to the default after sending the mail.
   
   For example i want all my mail to be send with a "From: [EMAIL PROTECTED]", but when i
   send to "To: [EMAIL PROTECTED]" i want the "From: " to be "From: [EMAIL PROTECTED]". It wokrs fine
   untill i send the mail to [EMAIL PROTECTED] Then the "From: " is changed permanently to
   [EMAIL PROTECTED] How do i handle this to change "From: " back to [EMAIL PROTECTED] after sending
   the mail to [EMAIL PROTECTED]?
   
   -- 
   k.
  
  
  
  -- 
  Prepare for the inevitable, and you will be struck by something worse. 
  Before you speak, listen to my fist. 
  Walk alone before you walk ahead. 
 
 -- 
 Josh Huber | [EMAIL PROTECTED] |
 1024D/6B21489A 61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A



-- 
Prepare for the inevitable, and you will be struck by something worse. 
Before you speak, listen to my fist. 
Walk alone before you walk ahead.