Re: send hooks again .. not working

2002-10-15 Thread Rafael C. Gawenda

* Toby Coleridge [EMAIL PROTECTED] [2002-10-11 10:54 (CEST)]

 nope still doesnt work I noticed that I have set from at the
 top of my muttrc is this causing problems for send hooks?

Lookup use_from in the manual. Perhaps you're mixing things up,
where you have to choose only one way (my_hdr)

-- 
Rafael C. Gawenda
 2:346/7.549@fidonet
Registered LiNUX user #93375


Computers are useless. They can only give you answers (Pablo
Picasso)



msg31841/pgp0.pgp
Description: PGP signature


Re: send hooks again .. not working

2002-10-14 Thread Toby Coleridge

On Sat, Oct 12, 2002 at 09:26:19AM -0500, Aaron Schrab wrote:
 At 15:18 +0200 12 Oct 2002, Sven Guckes [EMAIL PROTECTED] wrote:
  * David Champion [EMAIL PROTECTED] [2002-10-12 00:06]:
   I thought that you need to use set from= in send-hooks
   instead of using my_hdr, but I might misremember.
 
 No, it's the other way around.  By the time send-hooks are applied to a
 message $from has already been fetched and it won't be looked at again
 for that message.  my_hdr on the other hand can still override the From:
 header that mutt generates.
 
  yep - the From: as set by reverse_name feature will
  be overridden by all From: lines as set with my_hdr.
  9yet another entry for the faq...)
 
 This is correct, except for the first word.
 
so what would this mean with respect to this sendhook:

I have the following so far:
send-hook . unmy_hdr From: [EMAIL PROTECTED]
send-hook '~C @lboro.ac.uk' 'my_hdr From: me@myuniaddress'

Thanks
Toby.



Re: send hooks again .. not working

2002-10-14 Thread Michael Tatge

Toby Coleridge ([EMAIL PROTECTED]) muttered:
 send-hook . unmy_hdr From: [EMAIL PROTECTED]
 ^^^

Leave that out.

 send-hook '~C @lboro.ac.uk' 'my_hdr From: me@myuniaddress'

That should work.

Michael
-- 
Avoid the Gates of Hell.  Use Linux
(Unknown source)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: send hooks again .. not working

2002-10-14 Thread Toby Coleridge

On Mon, Oct 14, 2002 at 01:11:17PM +0200, Michael Tatge wrote:
 Toby Coleridge ([EMAIL PROTECTED]) muttered:
  send-hook . unmy_hdr From: [EMAIL PROTECTED]
  ^^^
 
 Leave that out.
 
  send-hook '~C @lboro.ac.uk' 'my_hdr From: me@myuniaddress'
 
 That should work.
 
 Michael
 -- 
 Avoid the Gates of Hell.  Use Linux
 (Unknown source)
 
 PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key

Hi Guys,

I have an update the send-hook works when replying to an email sent to me at any 
address, however when I create a new email if the address contains an @lboro then it 
doesnt rewrite the from: field any ideas or is this intended if so how can I work 
round it?

Thanks
Toby.



Re: send hooks again .. not working

2002-10-12 Thread Sven Guckes

* David Champion [EMAIL PROTECTED] [2002-10-12 00:06]:
 * On 2002.10.11, in [EMAIL PROTECTED],
 * Toby Coleridge [EMAIL PROTECTED] wrote:
  send-hook . my_hdr From: [EMAIL PROTECTED]
  send-hook @student\.lboro\.ac\.uk my_hdr From: me@myuniemailadrress
 
  however when I send mail to [EMAIL PROTECTED] I get it from
  [EMAIL PROTECTED] not the send-hook as I believe I should ..
  any ideas?

 I thought that you need to use set from= in send-hooks
 instead of using my_hdr, but I might misremember.

yep - the From: as set by reverse_name feature will
be overridden by all From: lines as set with my_hdr.
9yet another entry for the faq...)

Sven



Re: send hooks again .. not working

2002-10-12 Thread Aaron Schrab

At 15:18 +0200 12 Oct 2002, Sven Guckes [EMAIL PROTECTED] wrote:
 * David Champion [EMAIL PROTECTED] [2002-10-12 00:06]:
  I thought that you need to use set from= in send-hooks
  instead of using my_hdr, but I might misremember.

No, it's the other way around.  By the time send-hooks are applied to a
message $from has already been fetched and it won't be looked at again
for that message.  my_hdr on the other hand can still override the From:
header that mutt generates.

 yep - the From: as set by reverse_name feature will
 be overridden by all From: lines as set with my_hdr.
 9yet another entry for the faq...)

This is correct, except for the first word.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.schrab.com/aaron/
 [It is] best to confuse only one issue at a time.  -- KR



Re: send hooks again .. not working

2002-10-12 Thread David Champion

* On 2002.10.11, in [EMAIL PROTECTED],
*   Toby Coleridge [EMAIL PROTECTED] wrote:
 i have the following:
 
 send-hook . my_hdr From: [EMAIL PROTECTED]
 send-hook @student\.lboro\.ac\.uk my_hdr From: me@myuniemailadrress
 
 however when I send mail to [EMAIL PROTECTED] I get it from 
[EMAIL PROTECTED] not the send-hook as I believe I should .. any ideas?

I thought that you need to use set from= in send-hooks instead of
using my_hdr, but I might misremember.

-- 
 -D.We establised a fine coffee. What everybody can say
 Sun Project, APC/UCCO  TASTY! It's fresh, so-mild, with some special coffee's
 University of Chicago  bitter and sourtaste. LET'S HAVE SUCH A COFFEE! NOW!
 [EMAIL PROTECTED]   Please love CAFE MIAMI. Many thanks.



Re: send hooks again .. not working

2002-10-11 Thread Michael Tatge

Toby Coleridge ([EMAIL PROTECTED]) muttered:
 i have the following:
 
 send-hook . my_hdr From: [EMAIL PROTECTED]
 send-hook @student\.lboro\.ac\.uk my_hdr From: me@myuniemailadrress

send-hook '~C student.lboro.ac.uk' 'my_hdr From: me@myuniemailadrress'

HTH,

Michael
-- 
...Deep Hack Mode--that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
(By Matt Welsh)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: send hooks again .. not working

2002-10-11 Thread Toby Coleridge

Hi Michael,

nope still doesnt work I noticed that I have set from at the top of my muttrc is this 
causing problems for send hooks?

Thanks
Toby.

On Fri, Oct 11, 2002 at 11:42:44AM +0200, Michael Tatge wrote:
 Toby Coleridge ([EMAIL PROTECTED]) muttered:
  i have the following:
  
  send-hook . my_hdr From: [EMAIL PROTECTED]
  send-hook @student\.lboro\.ac\.uk my_hdr From: me@myuniemailadrress
 
 send-hook '~C student.lboro.ac.uk' 'my_hdr From: me@myuniemailadrress'
 
 HTH,
 
 Michael
 -- 
 ...Deep Hack Mode--that mysterious and frightening state of
 consciousness where Mortal Users fear to tread.
 (By Matt Welsh)
 
 PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: send hooks again .. not working

2002-10-11 Thread Toby Coleridge

No the email address in the compose window is still wrong ... ?

Toby

On Fri, Oct 11, 2002 at 01:10:05PM +0200, René Clerc wrote:
 * Toby Coleridge [EMAIL PROTECTED] [11-10-2002 12:50]:
 
  I do however have this in my sendmail.mc / cf :
  
  define(`confDOMAIN_NAME', `4mationnet.com')dnl
  
  because I am behind a private network and I get lots of 550 returned mail.
  
  would this make a difference?
 
 I don't know, I know nothing of sendmail. However, you should be able
 to verify if your send-hook works by checking the From: entry in the
 compose menu (just before you press 'y' to send the mail). Does that
 show the correct from?
 
 -- 
 René Clerc  - ([EMAIL PROTECTED])
 
 Retteb sif lahd, noces ehttub, but the second half is better.
 -A palindrome





Re: Send Hooks ..

2002-10-11 Thread Sven Guckes

* Toby Coleridge [EMAIL PROTECTED] [2002-10-10 20:25]:
 If I setup two send hooks as follows:
 send-hook .my_hdr From: [EMAIL PROTECTED] ;
 send-hook blah my_hdr From: [EMAIL PROTECTED] ;

what are the semicola for?  delete them.

 am i right in thinking that the second send
 hook will be activated on any To: or Cc:
 (or Bcc?) that contains blah in the address

yes

 does this behave in a reg exp manner?

the first parameter to the
send-hook command is a pattern, eg

  ~t foo
  ~c foo
  ~C foo

rtfm to understand.

 will it match all of the following :
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

 or does it only match after the @ ?

it's a sub-match which matches anywhere.

ps: set tw=70

Sven



Re: send hooks again .. not working

2002-10-11 Thread Sven Guckes

* Toby Coleridge [EMAIL PROTECTED] [2002-10-11 10:10]:
send-hook '~C student.lboro.ac.uk' 'my_hdr From: me@myuniemailadrress'
   nope still doesnt work I noticed that I have set from at the
   top of my muttrc is this causing problems for send hooks?
  Do you have other send-hooks, defined
  _after_ this one that override this setting?
 Nope no other send hooks defined ..

set envelope_from and do *not* let
the MTA rewrite your from lines, ok?

and if you keep top-posting then
we will simply ignore you...

rewriting the messages so that other users can be
reading them as hints from the archive costs time.
so put your answers *after* the question.  got that?

Sven

-- 
Sven Guckes  [EMAIL PROTECTED]
LEARN TO Please do not quote in full - I keep a mail log.
EDIT YOURInstead, edit your reply to make it easy to read.
MESSAGES Please http://learn.to/edit_messages - thanks!  :-)



Re: send hooks again .. not working

2002-10-11 Thread Toby Coleridge

I do however have this in my sendmail.mc / cf :

define(`confDOMAIN_NAME', `4mationnet.com')dnl

because I am behind a private network and I get lots of 550 returned mail.

would this make a difference?

Thanks
Toby.
On Fri, Oct 11, 2002 at 11:10:11AM +0100, Toby Coleridge wrote:
 Nope no other send hooks defined ..
 
 On Fri, Oct 11, 2002 at 11:59:37AM +0200, René Clerc wrote:
  * Toby Coleridge [EMAIL PROTECTED] [11-10-2002 11:55]:
  
  [Michael]
send-hook '~C student.lboro.ac.uk' 'my_hdr From: me@myuniemailadrress'
  
   nope still doesnt work I noticed that I have set from at the top of
   my muttrc is this causing problems for send hooks?
  
  Do you have other send-hooks, defined _after_ this one that override
  this setting?
  
  -- 
  René Clerc  - ([EMAIL PROTECTED])
  
  Ik ben niet droknen.
  -Rachel Pieterse
 



Re: send hooks again .. not working

2002-10-11 Thread Michael Tatge

Toby Coleridge ([EMAIL PROTECTED]) muttered:
 On Fri, Oct 11, 2002 at 11:42:44AM +0200, Michael Tatge wrote:
  send-hook '~C student.lboro.ac.uk' 'my_hdr From:
  me@myuniemailadrress'

 nope still doesnt work I noticed that I have set from at the top of my
 muttrc is this causing problems for send hooks?

Hm, change the default send-hook to unmy_hdr From?

HTH,

Michael
-- 
Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs.
(By Dennis Ritchie)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: send hooks again .. not working

2002-10-11 Thread René Clerc

* Toby Coleridge [EMAIL PROTECTED] [11-10-2002 12:50]:

 I do however have this in my sendmail.mc / cf :
 
 define(`confDOMAIN_NAME', `4mationnet.com')dnl
 
 because I am behind a private network and I get lots of 550 returned mail.
 
 would this make a difference?

I don't know, I know nothing of sendmail. However, you should be able
to verify if your send-hook works by checking the From: entry in the
compose menu (just before you press 'y' to send the mail). Does that
show the correct from?

-- 
René Clerc  - ([EMAIL PROTECTED])

Retteb sif lahd, noces ehttub, but the second half is better.
-A palindrome



msg31734/pgp0.pgp
Description: PGP signature


Re: send hooks again .. not working

2002-10-11 Thread René Clerc

* Toby Coleridge [EMAIL PROTECTED] [11-10-2002 11:55]:

[Michael]
  send-hook '~C student.lboro.ac.uk' 'my_hdr From: me@myuniemailadrress'

 nope still doesnt work I noticed that I have set from at the top of
 my muttrc is this causing problems for send hooks?

Do you have other send-hooks, defined _after_ this one that override
this setting?

-- 
René Clerc  - ([EMAIL PROTECTED])

Ik ben niet droknen.
-Rachel Pieterse



msg31736/pgp0.pgp
Description: PGP signature


Re: send hooks again .. not working

2002-10-11 Thread Toby Coleridge

Nope no other send hooks defined ..

On Fri, Oct 11, 2002 at 11:59:37AM +0200, René Clerc wrote:
 * Toby Coleridge [EMAIL PROTECTED] [11-10-2002 11:55]:
 
 [Michael]
   send-hook '~C student.lboro.ac.uk' 'my_hdr From: me@myuniemailadrress'
 
  nope still doesnt work I noticed that I have set from at the top of
  my muttrc is this causing problems for send hooks?
 
 Do you have other send-hooks, defined _after_ this one that override
 this setting?
 
 -- 
 René Clerc  - ([EMAIL PROTECTED])
 
 Ik ben niet droknen.
 -Rachel Pieterse





send-hooks (was: Re: Send Hooks ..)

2002-10-10 Thread Jussi Ekholm

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Toby Coleridge [EMAIL PROTECTED] wrote:
 If I setup two send hooks as follows:
 send-hook . my_hdr From: [EMAIL PROTECTED] ;
 send-hook blah my_hdr From: [EMAIL PROTECTED] ; 
 
 am i right in thinking that the second send hook will be activated
 on any To: or Cc: (or Bcc?) that contains  blah in the address, does
 this behave in a reg exp manner?

Yes, you are correct. This is a snippet from sample mutt.rc:

#   send-hook [!]pattern command
# command is executed when sending mail to an address matching
# pattern

So, if the mail you are sending contains blah in it's address,
your From-header is changed to [EMAIL PROTECTED]. By the way, why there's
'spacesemi-colonspace' ( ; ) after the my_hdr command?

 will it match all of the following :
 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

AFAIK, this is how it goes.

HTH!

- -- 
Jussi Ekholm [EMAIL PROTECTED] | http://erppimaa.ihku.org/ | 0x1410081E


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9pebaAtEARxQQCB4RAp7cAJ94az3fHy3JffRXp++3dPzznKyllwCgufM3
NlI1ezOpqx1Fj4WYMPra2R4=
=Je4F
-END PGP SIGNATURE-



Re: Send Hooks ..

2002-10-10 Thread René Clerc

* Toby Coleridge [EMAIL PROTECTED] [10-10-2002 22:27]:

 If I setup two send hooks as follows:
 
 send-hook . my_hdr From: [EMAIL PROTECTED] ;
 send-hook blah my_hdr From: [EMAIL PROTECTED] ; 

What's with the semicolons?

 am i right in thinking that the second send hook will be activated
 on any To: or Cc: (or Bcc?) that contains  blah in the address,
 does this behave in a reg exp manner?

Watch your line length!! (modified this)

 will it match all of the following :
 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 or does it only match after the @ ?

Is this laziness? If I wanted to, it took me less time to verify this
than it must have taken you to post this question. Answer: yes, it
will match all of those addresses, and RTFM 3.17:

pattern is a regular expression matching the desired address

 Thanks
 Toby

You're pretty welcome...

-- 
René Clerc  - ([EMAIL PROTECTED])

Everyone needs belief in something. I believe I'll have another beer.



msg31714/pgp0.pgp
Description: PGP signature


Re: send-hooks don't work

2001-10-26 Thread Manuel Hendel

On Thu, Oct 25, 2001 at 05:30:08PM -0600, Rob 'Feztaa' Park wrote:
 On Thu, Oct 25, 2001 at 11:42:56PM +0200, Manuel Hendel (dis)graced my inbox with:
  Hallo,
  
  I'm using mutt 1.3.x. I use send-hooks to define the my_hdr From:,
  my_hdr Organisation: and the signature. If write the muttrc file and
  start mutt, everything works fine, but after a while, mutt gets
  confused and brings wrong Organisation or wron signatures. Where's the
  problem.
  
  muttrc:
  
  set default_hook=~t %s
  
  send-hook . my_hdr From: Manuel Hendel [EMAIL PROTECTED] ;\
  set signature=peq|
  
  send-hook .*@domain\.de$ my_hdr From: x ;\
  my_hdr Organisation: x ;\
  set signature=~/.mutt/world.sig
  
  send-hook .*@domain\.de$ my_hdr From: x ;\
  my_hdr Organisation: x ;\
  set signature=~/.mutt/xxx.sig
  
  Is there anything wrong? I don't think so!
 
 Well, I can see you're not unsetting the Organization header with your
 default send-hook.
 
 This means that if you send something to an address that sets
 Organization, you'll keep that header until something else changes it.
 
 Just add unmy_hdr Organisation (might need a : at the end, not sure)
 to that first send hook, and that should fix that problem.
 
 As for your sig being screwed up, I don't know - it looks fine here.
 Unless peq does nothing...
 
This seems to work. Thank you very much.

Manuel

-- 
On the other hand the early worm gets eaten. 



Re: send-hooks and save_name

2001-03-08 Thread Gary Johnson

On Thu, Mar 08, 2001 at 11:02:03AM -0500, Rich Lafferty wrote:

 I tried playing with changing the value of "folder" with a send-hook,
 but since it doesn't reset immediately after, it mungs up normal
 operations (since I still want "folder" to just be "~/mail/").
 
 Is there a straightforward way to do such a thing?

If your send-hooks work except for the resetting problem, the solution
is easy.  Just add the following lint to your muttrc _above_ the other
send-hooks so that it will be executed before the others.

send-hook . 'set folder=~/Mail'

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA



Re: send-hooks and save_name

2001-03-08 Thread Rich Lafferty

On Thu, Mar 08, 2001 at 08:14:49AM -0800, Gary Johnson ([EMAIL PROTECTED]) 
wrote:
 On Thu, Mar 08, 2001 at 11:02:03AM -0500, Rich Lafferty wrote:
 
  I tried playing with changing the value of "folder" with a send-hook,
  but since it doesn't reset immediately after, it mungs up normal
  operations (since I still want "folder" to just be "~/mail/").
  
  Is there a straightforward way to do such a thing?
 
 If your send-hooks work except for the resetting problem, the solution
 is easy.  Just add the following lint to your muttrc _above_ the other
 send-hooks so that it will be executed before the others.
 
 send-hook . 'set folder=~/Mail'

Well, with that I end up with
 
  send-hook . 'set folder=~/Mail'
  send-hook concordia.ca 'set folder=~/Mail/conu'
  send-hook !concordia.ca 'set folder=~/Mail/personal'

and, as you can see, that first condition never happens. :-) But this
helped me realize what the problem is -- with your default send-hook,
it resets "folder" as soon as I go to *send* again. What I need is for
"folder" to be set as I go to send, and to be reset to "~/Mail/" as
soon as the message I'm sending is on its way.

Hrm. This gets me very close:

  folder-hook . 'set folder=~/mail'
  send-hook concordia.ca 'set folder=~/mail/conu'
  send-hook !concordia.ca 'set folder=~/mail/personal'

except that going from the send screen to the index doesn't trigger a
folder-hook. (That'd be handy if it did, though, wishlist folks.)

I'm beginning to think that there *is* no hook that takes place after
a message is sent, so I can't think of any way to improve on the
above.

   -Rich

-- 
-- Rich Lafferty ---
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC (514) 848-7625
- [EMAIL PROTECTED] --



Re: send-hooks and save_name

2001-03-08 Thread Peter Kovacs

On Thu, Mar 08, 2001 at 11:29:23AM -0500, Rich Lafferty wrote:
   folder-hook . 'set folder=~/mail'
   send-hook concordia.ca 'set folder=~/mail/conu'
   send-hook !concordia.ca 'set folder=~/mail/personal'
 
how about:
send-hook . 'set folder=~/mail/personal'
send-hook concordia.ca 'set folder=~/mail/conu'


Peter

-- 
Peter D. Kovacs [EMAIL PROTECTED]
Software Developer
Webmachines, Inc. http://webmachines.com



Re: send-hooks and save_name

2001-03-08 Thread Rich Lafferty

On Thu, Mar 08, 2001 at 11:47:00AM -0500, Peter Kovacs ([EMAIL PROTECTED]) wrote:
 On Thu, Mar 08, 2001 at 11:29:23AM -0500, Rich Lafferty wrote:
folder-hook . 'set folder=~/mail'
send-hook concordia.ca 'set folder=~/mail/conu'
send-hook !concordia.ca 'set folder=~/mail/personal'
  
 how about:
   send-hook . 'set folder=~/mail/personal'
   send-hook concordia.ca 'set folder=~/mail/conu'

I think I'm actually going to have to just actively set Fcc as I
go. The problem with your suggestion is that with that the folder is
*never* reset to ~/mail, and I've a lot more subdirectories than just
conu/ and personal/ (it's just that those two are the only ones I'd
want mail *automagically* saved into).

  -Rich

-- 
-- Rich Lafferty ---
 Sysadmin/Programmer, Instructional and Information Technology Services
   Concordia University, Montreal, QC (514) 848-7625
- [EMAIL PROTECTED] --



Re: send-hooks and save_name

2001-03-08 Thread Ben Rosenberg

How about using Procmail rules to put your mail where you like?

* Rich Lafferty ([EMAIL PROTECTED]) [010308 08:56]:
=On Thu, Mar 08, 2001 at 11:47:00AM -0500, Peter Kovacs ([EMAIL PROTECTED]) wrote:
= On Thu, Mar 08, 2001 at 11:29:23AM -0500, Rich Lafferty wrote:
=folder-hook . 'set folder=~/mail'
=send-hook concordia.ca 'set folder=~/mail/conu'
=send-hook !concordia.ca 'set folder=~/mail/personal'
=  
= how about:
= send-hook . 'set folder=~/mail/personal'
= send-hook concordia.ca 'set folder=~/mail/conu'
=
=I think I'm actually going to have to just actively set Fcc as I
=go. The problem with your suggestion is that with that the folder is
=*never* reset to ~/mail, and I've a lot more subdirectories than just
=conu/ and personal/ (it's just that those two are the only ones I'd
=want mail *automagically* saved into).
=

-- 
Ben Rosenberg
mailto:[EMAIL PROTECTED]
-
If two men agree on everything, you can
be sure that only one of them is doing
the thinking.



Re: send-hooks and save_name

2001-03-08 Thread Gary Johnson

On Thu, Mar 08, 2001 at 11:29:23AM -0500, Rich Lafferty wrote:

 Well, with that I end up with
  
   send-hook . 'set folder=~/Mail'
   send-hook concordia.ca 'set folder=~/Mail/conu'
   send-hook !concordia.ca 'set folder=~/Mail/personal'
 
 and, as you can see, that first condition never happens. :-) But this
 helped me realize what the problem is -- with your default send-hook,
 it resets "folder" as soon as I go to *send* again. What I need is for
 "folder" to be set as I go to send, and to be reset to "~/Mail/" as

 I'm beginning to think that there *is* no hook that takes place after
 a message is sent, so I can't think of any way to improve on the
 above.

OK, now I think I understand the problem.  I can't think of any hooks
that work the way you want, either.  I did think of something else that
might work, though.

macro compose y "send-message:push :set folder=~/Mail"

I have not tried that to see if it actually works.  One problem with
this approach is that you really need to create such macros for every
command that leaves the compose menu, such as 'q' and 'P', and such a
macro for 'q' would not work if 'postpone' was set to 'ask-yes' or
'ask-no'.

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA



Re: send-hooks

2000-11-08 Thread Goblin

I've found my stupidity. I know regex, so I should have seen this
right away.

^@domain.com will always be a no-grok.

Thanks anyway.

On 11/08, Me rearranged the electrons to read:
 Can someone help me? I've got the following lines in my .muttrc:
 send-hook '~f ^@domain\.com$' 'my_hdr From: User Name [EMAIL PROTECTED]'
 send-hook '~t ^@domain\.com$' 'my_hdr From: User Name [EMAIL PROTECTED]'
 
 with which I am trying to accomplish the following: I'd like that
 when I reply to messages coming from domain.com, that my From:
 header be modified like stated above.
 
 It isn't working, and I'd like some help please.
 
 Here's my version info:
 
 Mutt 1.3.9i (2000-09-21)
 Copyright (C) 1996-2000 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.
 
 System: Linux 2.4.0-test10p6-reis3.6.18 [using slang 10400]
 Compile options:
 DOMAIN="yahoo.com"
 +DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
 +USE_FCNTL  -USE_FLOCK
 +USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL  
 +HAVE_REGCOMP  -USE_GNU_REGEX  
 +HAVE_COLOR  -HAVE_START_COLOR  -HAVE_TYPEAHEAD  -HAVE_BKGDSET  
 -HAVE_CURS_SET  -HAVE_META  -HAVE_RESIZETERM  
 +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  +SUN_ATTACHMENT  
 +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
 +HAVE_LANGINFO_YESEXPR  
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID
 ISPELL="/usr/bin/ispell"
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/spool/mail"
 SHAREDIR="/usr/share/mutt"
 SYSCONFDIR="/usr/etc"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to [EMAIL PROTECTED].
 To report a bug, please use the flea(1) utility.
 
  Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
  restful it is to watch the cursor blink.  Close your eyes.  The opinions
  stated above are yours.  You cannot imagine why you ever felt otherwise.
 
 Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
 restful it is to watch the cursor blink.  Close your eyes.  The opinions
 stated above are yours.  You cannot imagine why you ever felt otherwise.




Re: send-hooks a la Pine Roles.

2000-10-24 Thread Suresh Ramasubramanian

Adrian Chung proclaimed on mutt-users that: 

 The suggestions I've heard say to do something like:
 
   send-hook \
   '~t [EMAIL PROTECTED]' \
   'my_hdr From: [EMAIL PROTECTED]'
 
 set alternates, and set reverse_name
 
 I'm assuming that this is a feature that is hardly ever used, since it's
 not been implemented.  Would it be handy to anyone?
 
 It is already there.

 Or you could procmail mail to different folders based on the envelope and use
 folder hook foo `my_hdr From: [EMAIL PROTECTED] (Foo Bar)' (and set envelope_from in
 new mutts / set sendmail = /path/to/sendmail -t -oi -oem -f [EMAIL PROTECTED]' in
 old mutts)
 
 Adrian Chung  Software Engineer e-smith, Inc.
 [EMAIL PROTECTED]   +1 613 564 8000x4379  888 ESMITH 1

[way ot]

e-smith rocks - 'cept that it uses qmail ;)

-s (exim and sendmail preferred - if y'all could come out with a version
supporting this?)

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
Life is too short to be taken seriously.
-- Oscar Wilde



Re: send-hooks a la Pine Roles.

2000-10-24 Thread Adrian Chung

On Tue, Oct 24, 2000 at 11:13:30PM +0530, Suresh Ramasubramanian 
[EMAIL PROTECTED] wrote:
 Adrian Chung proclaimed on mutt-users that: 
 
  The suggestions I've heard say to do something like:
  
  send-hook \
  '~t [EMAIL PROTECTED]' \
  'my_hdr From: [EMAIL PROTECTED]'
  
  set alternates, and set reverse_name

   I've got alternates set, and I tried both set reverse_name and set
reverse_realname.  I'm not having any luck with either.  With mail
addresses to a different address (actually different user, same domain),
when I hit reply, I get my username @ my.local.machine.name.  

   So I'm checking through my .muttrc to see if I've got anything else
that's conflicting.  Strange...

  Or you could procmail mail to different folders based on the envelope and use
  folder hook foo `my_hdr From: [EMAIL PROTECTED] (Foo Bar)' (and set envelope_from in
  new mutts / set sendmail = /path/to/sendmail -t -oi -oem -f [EMAIL PROTECTED]' in
  old mutts)

   Could do that...  But seems like more trouble than it's worth. :)

  Adrian Chung  Software Engineer e-smith, Inc.
  [EMAIL PROTECTED]   +1 613 564 8000x4379  888 ESMITH 1
 
 [way ot]
 
 e-smith rocks - 'cept that it uses qmail ;)
 
 -s (exim and sendmail preferred - if y'all could come out with a version
 supporting this?)

   Why don't you like qmail?

   I doubt we'll ever support sendmail again, although there's always room
for sendmail contrib stuff. :)

--
Adrian Chung  Software Engineer e-smith, Inc.
[EMAIL PROTECTED]   +1 613 564 8000x4379  888 ESMITH 1
Suite 1500, 150 Metcalfe St, Ottawa, ON, K2P 1P1, Canada
www.e-smith.com (corporate) | www.e-smith.org (development)



Re: send-hooks a la Pine Roles.

2000-10-24 Thread Suresh Ramasubramanian

Using a large mallet, Adrian Chung whacked out:

 when I hit reply, I get my username @ my.local.machine.name.  
 
 likely you have to set the envelope sender too - post the relevant parts of
 your muttrc plz
 
Why don't you like qmail?
 
 it's an allergy of some kind :P  I prefer exim (or if forced to, sendmail)
 
-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
GREAT MOMENTS IN HISTORY (#7):  November 23, 1915
Pancake make-up is invented; most people continue to prefer syrup.



Re: send-hooks not reset

2000-10-24 Thread Dan Boger

On Tue, Oct 24, 2000 at 04:53:25PM -0400, Adrian Chung wrote:
 set from="Adrian Chung [EMAIL PROTECTED]"
 alternates="(support|achung)@mycompany\.(com|net|org)"
 
 send-hook '~f support@mycompany' 'my_hdr From: company support 
[EMAIL PROTECTED]'
 send-hook '~f support@mycompany' 'set signature=~/.signature-support'
 
 Is this normal behaviour?  Do I have to set a default send-hook to reset
 every parameter that I change?

exactly.  when you set the sig, or a header, it's not only for that message.
so you need to do something like:

send-hook . 'unmy_hdr From:'
send-hook . 'unset signature'

-- 
Dan Boger
System Administrator
[EMAIL PROTECTED]

 PGP signature


Re: send-hooks not reset

2000-10-24 Thread Adrian Chung

On Tue, Oct 24, 2000 at 05:22:30PM -0400, Dan Boger [EMAIL PROTECTED] wrote:
 On Tue, Oct 24, 2000 at 04:53:25PM -0400, Adrian Chung wrote:
  set from="Adrian Chung [EMAIL PROTECTED]"
  alternates="(support|achung)@mycompany\.(com|net|org)"
  
  send-hook '~f support@mycompany' 'my_hdr From: company support 
[EMAIL PROTECTED]'
  send-hook '~f support@mycompany' 'set signature=~/.signature-support'
  
  Is this normal behaviour?  Do I have to set a default send-hook to reset
  every parameter that I change?
 
 exactly.  when you set the sig, or a header, it's not only for that message.
 so you need to do something like:
 
 send-hook . 'unmy_hdr From:'
 send-hook . 'unset signature'

   Cool, so it's not just me...

   Is this classified as a bug, or a feature? :)

--
Adrian Chung  Software Engineer e-smith, Inc.
[EMAIL PROTECTED]   +1 613 564 8000x4379  888 ESMITH 1
Suite 1500, 150 Metcalfe St, Ottawa, ON, K2P 1P1, Canada
www.e-smith.com (corporate) | www.e-smith.org (development)



Re: send-hooks a la Pine Roles.

2000-10-24 Thread Mikko Hänninen

Adrian Chung [EMAIL PROTECTED] wrote on Tue, 24 Oct 2000:
I've got alternates set, and I tried both set reverse_name and set
 reverse_realname.  I'm not having any luck with either.  With mail
 addresses to a different address (actually different user, same domain),
 when I hit reply, I get my username @ my.local.machine.name.  

Make sure you don't use $reverse_name with "my_hdr From".  The two are
incompatible.


This is actually not strictly so, but if you ever use my_hdr From in a
send-hook, you *must* also have "send-hook . unmy_hdr From" too...  It's
easier to just not mix the two, unless you really need to for some
reason.  If you want to change your default From address, it can be done
with setting $from (in Mutt 1.2 and later).


I hope this helps,
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 /
"Macs are actually decent machines once you put an OS on them."



Re: send-hooks not reset

2000-10-24 Thread Mikko Hänninen

Adrian Chung [EMAIL PROTECTED] wrote on Tue, 24 Oct 2000:
  send-hook . 'unmy_hdr From:'
 
Is this classified as a bug, or a feature? :)

It's a feature, a design desicision.  Since you can use any muttrc
command in send-hooks, it would be unworkably complex to try to limit
the scope to that message only.  It's something you just have to be
aware of when working send-hooks, that for every hook that you use, if
you want to have a default value, you must set it yourself with a
"send-hook . whatever".


Regards,
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 /
Always remember you're unique - just like everyone else.



Re: send-hooks

2000-10-07 Thread Jason Helfman

I have this at work too. However, I incorporated folder-hook for this
function, and it works very nicely. Folder-hook and send-hooks, used
with each other seemed to do the trick for me.

If you use $edit_headers that should do the trick though, i would think.

On Tue, Sep 19, 2000 at 04:41:33PM -0500, Darren West muttered:
| send-hook is a really cool feature, since it allows me to have a "work profile" and 
|a "non-work" each with custom signatures and header info, based on who I am sending 
|mail to.  
| If I invoke mail(compose) from within mutt via keybind 'm' in a folder though, it 
|always pops into the default profile..since the send-hook is dependant on the "To" 
|info.  
| It would be great if it first prompted for "To" info, then created the header 
|appropriately.  Perhaps this feature can be included in a future version.
| -- 
| Darren
| 219-765-1149 cell
| [EMAIL PROTECTED]
| 

-- 
/Jason G Helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."

Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149



Re: send-hooks

2000-09-19 Thread Mikko Hänninen

Darren West [EMAIL PROTECTED] wrote on Tue, 19 Sep 2000:
 If I invoke mail(compose) from within mutt via keybind 'm' in a folder
 though, it always pops into the default profile..since the send-hook is
 dependant on the "To" info.
 It would be great if it first prompted for "To" info, then created the
 header appropriately.  Perhaps this feature can be included in a future
 version.

That's how it works for me, even for new messages.

Maybe you have $autoedit set?  Refer to the manual for more info.


Regards,
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 /
Bumper sticker: No radio - Already stolen.



Re: send-hooks matching all users - how?

2000-08-14 Thread Mikko Hänninen

Randall Hopper [EMAIL PROTECTED] wrote on Sun, 13 Aug 2000:
  manual.txt suggests a leading '^', but this doesn't work.  Maybe 
 it only works where you can specify a pattern flag, as in:  ^~C \.de$

Well, you *can* do this with send-hooks.  If you only specify a pattern,
but no pattern operator, Mutt will use the value from $default_hook as
the operators.  (Check the manual for $default_hook)  You do need to use
the pattern operator so you can add the ^ prefix.

So, if you use this kind of send-hook instead, it should work:

  send-hook "^~C (jim|john|joe)@home.com" "set pgp_autoencrypt"


Hope this helps,
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 /
"I took an IQ test and the results were negative."



Re: send-hooks matching all users - how?

2000-08-14 Thread Randall Hopper

Mikko Hänninen:
 |Randall Hopper [EMAIL PROTECTED] wrote on Sun, 13 Aug 2000:
 |  manual.txt suggests a leading '^', but this doesn't work.  Maybe 
 | it only works where you can specify a pattern flag, as in:  ^~C \.de$
 |
 |Well, you *can* do this with send-hooks.  If you only specify a pattern,
 |but no pattern operator, Mutt will use the value from $default_hook as
 |the operators.  (Check the manual for $default_hook)  You do need to use
 |the pattern operator so you can add the ^ prefix.
 |
 |So, if you use this kind of send-hook instead, it should work:
 |
 |  send-hook "^~C (jim|john|joe)@home.com" "set pgp_autoencrypt"

Well, I tried that before my original post.  Here is the error Mutt
generates on start-up:

  Error in /home/rhh/.mutt/lists.mutt, line 29: parentheses not balanced
  Error in /home/rhh/.muttrc-1.2i, line 205: source: errors in 
/home/rhh/.mutt/lists.mutt
  source: errors in /home/rhh/.muttrc-1.2i

Line 29 of lists.mutt is where this send-hook is.

-- 
Randall Hopper
[EMAIL PROTECTED]



Re: send-hooks matching all users - how?

2000-08-14 Thread Mikko Hänninen

Randall Hopper [EMAIL PROTECTED] wrote on Mon, 14 Aug 2000:
 Well, I tried that before my original post.  Here is the error Mutt
 generates on start-up:
 
   Error in /home/rhh/.mutt/lists.mutt, line 29: parentheses not balanced
   Error in /home/rhh/.muttrc-1.2i, line 205: source: errors in 
/home/rhh/.mutt/lists.mutt
   source: errors in /home/rhh/.muttrc-1.2i
 
 Line 29 of lists.mutt is where this send-hook is.

Oh, right.  That's the usual "|'s in patterns must be quoted" issue.

Try this:

  send-hook "^~C '(jim|john|joe)@home.com'" "set pgp_autoencrypt"

Or if that doesn't work, try escaping (\) the |'s, or double escaping...
It's a known issue, sort of a bug, in the way the pattern matcher works.


Regards,
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 /
No computers were harmed during the creation of this email.



Re: Send-Hooks

1999-12-19 Thread Mikko Hänninen

Sean Rima [EMAIL PROTECTED] wrote on Tue, 14 Dec 1999:
 On Tue, 14 Dec 1999, David T-G wrote:
  Ah.  Well, then, you probably want to set "use_from" and "alternates"
  in your .muttrc
 
 Both set and still no joy. I tried unsetting (commenting out) my defaults
 send-hook my_hdr but to no avail. I think I will just for the moment have to
 have several commented out my_hdr From lines to suit.

I think the variable you're looking for is $reverse_name, not $use_from
(though having that defined is probably a good idea too).  However,
$reverse_name doesn't work well with mh_hdr From (which always takes
precedence).  So instead you probably should switch to setting the $from
variable, available in Mutt 1.1.1i which you seem to use, rather than
having my_hdr From in your send-hooks.  The $from variable was
introduced just to get around the problem of $reverse_name and my_hdr
From not working together.


Hope this helps,
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 /
Free the mallocs!



Re: Send-Hooks

1999-12-19 Thread Sean Rima

Hi Mikko!

On Mon, 20 Dec 1999, Mikko Hänninen wrote:

   Ah.  Well, then, you probably want to set "use_from" and "alternates"
   in your .muttrc
  
  Both set and still no joy. I tried unsetting (commenting out) my defaults
  send-hook my_hdr but to no avail. I think I will just for the moment have to
  have several commented out my_hdr From lines to suit.
 
 I think the variable you're looking for is $reverse_name, not $use_from
 (though having that defined is probably a good idea too).  However,
 $reverse_name doesn't work well with mh_hdr From (which always takes
 precedence).  So instead you probably should switch to setting the $from
 variable, available in Mutt 1.1.1i which you seem to use, rather than
 having my_hdr From in your send-hooks.  The $from variable was
 introduced just to get around the problem of $reverse_name and my_hdr
 From not working together.
 
 

Many thanks, that has done the job. I am learning more and more just how
powerfull mutt is :)

Sean

-- 
GPG ID (DSA) 92B9D0CF PGP2 ID 19592A0D Linux User: #124682  ICQ: 679813
To get my PGP Keys send me an empty email with retrieve as the subject
My Current Uptime is 0d, 15h and 4m on Linux 2.2.13
...Generated by Uptimer - http://tcob1.dhs.org


 PGP signature


Re: Send-Hooks

1999-12-14 Thread David T-G

Sean --

If I understand you correctly, you want replies to email sent to your
yifan account to come from your softhome account, but mutt currently sets
your from address as yifan when it sees that the email was sent there.

If that's correct, then I believe you want to unset "use_from", and you
might also want to specify a "my_hdr From" command to force a particular
address.


HTH  Happy Holidays

:-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!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Send-Hooks

1999-12-14 Thread Sean Rima

Hi David!

On Tue, 14 Dec 1999, David T-G wrote:

 Sean --
 
 If I understand you correctly, you want replies to email sent to your
 yifan account to come from your softhome account, but mutt currently sets
 your from address as yifan when it sees that the email was sent there.
 
 If that's correct, then I believe you want to unset "use_from", and you
 might also want to specify a "my_hdr From" command to force a particular
 address.
 
 

No the other way around. If a mail comes in addressed to
[EMAIL PROTECTED], I want Mutt to set the reply as coming from
[EMAIL PROTECTED] Currently it sets all mail to From:
[EMAIL PROTECTED]

Sean

-- 
GPG ID (DSA) 92B9D0CF PGP2 ID 19592A0D Linux User: #124682  ICQ: 679813
To get my PGP Keys send me an empty email with retrieve as the subject
It said "Needs Windows 95 or better". So I installed Linux...

 PGP signature


Re: Send-Hooks

1999-12-14 Thread John P . Looney

On Tue, Dec 14, 1999 at 02:39:23PM +, Sean Rima mentioned:
 Hi David!
 
 On Tue, 14 Dec 1999, David T-G wrote:
 
  Sean --
  
  If I understand you correctly, you want replies to email sent to your
  yifan account to come from your softhome account, but mutt currently sets
  your from address as yifan when it sees that the email was sent there.
  
  If that's correct, then I believe you want to unset "use_from", and you
  might also want to specify a "my_hdr From" command to force a particular
  address.
  
  
 
 No the other way around. If a mail comes in addressed to
 [EMAIL PROTECTED], I want Mutt to set the reply as coming from
 [EMAIL PROTECTED] Currently it sets all mail to From:
 [EMAIL PROTECTED]

 I've in my .muttrc:

send-hook . my_hdr reply-to: [EMAIL PROTECTED]
send-hook . my_hdr From: John P. Looney [EMAIL PROTECTED]
send-hook ilug my_hdr From: [EMAIL PROTECTED]
send-hook ilug my_hdr Reply-to: [EMAIL PROTECTED]
send-hook [EMAIL PROTECTED] my_hdr From: [EMAIL PROTECTED]
send-hook compapp.dcu.ie my_hdr reply-to: [EMAIL PROTECTED]
send-hook compapp.dcu.ie my_hdr From: John P. Looney [EMAIL PROTECTED]
send-hook online.ie my_hdr From: John P. Looney [EMAIL PROTECTED]
send-hook online.ie my_hdr Reply-to: [EMAIL PROTECTED]

 I've loads more, but you get the idea...

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen

 PGP signature


Re: Send-Hooks

1999-12-14 Thread David T-G

Sean --

...and then Sean Rima said...
% Hi David!

Hi there!


% 
% On Tue, 14 Dec 1999, David T-G wrote:
% 
%  yifan account to come from your softhome account, but mutt currently sets
%  
%  If that's correct, then I believe you want to unset "use_from", and you
%  might also want to specify a "my_hdr From" command to force a particular
%  address.
% 
% No the other way around. If a mail comes in addressed to
% [EMAIL PROTECTED], I want Mutt to set the reply as coming from
% [EMAIL PROTECTED] Currently it sets all mail to From:
% [EMAIL PROTECTED]

Ah.  Well, then, you probably want to set "use_from" and "alternates"
in your .muttrc so that mutt will send the reply out as the person to
whom it was addressed.  Give it a shot.


% 
% Sean
% 
% -- 
% GPG ID (DSA) 92B9D0CF PGP2 ID 19592A0D Linux User: #124682  ICQ: 679813
% To get my PGP Keys send me an empty email with retrieve as the subject
% It said "Needs Windows 95 or better". So I installed Linux...


:-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!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Send-Hooks

1999-12-14 Thread Sean Rima

Hi David!

On Tue, 14 Dec 1999, David T-G wrote:

 Sean --
 
 ...and then Sean Rima said...
 % Hi David!
 
 Hi there!
 
 
 % 
 % On Tue, 14 Dec 1999, David T-G wrote:
 % 
 %  yifan account to come from your softhome account, but mutt currently sets
 %  
 %  If that's correct, then I believe you want to unset "use_from", and you
 %  might also want to specify a "my_hdr From" command to force a particular
 %  address.
 % 
 % No the other way around. If a mail comes in addressed to
 % [EMAIL PROTECTED], I want Mutt to set the reply as coming from
 % [EMAIL PROTECTED] Currently it sets all mail to From:
 % [EMAIL PROTECTED]
 
 Ah.  Well, then, you probably want to set "use_from" and "alternates"
 in your .muttrc so that mutt will send the reply out as the person to
 whom it was addressed.  Give it a shot.
 
 


Both set and still no joy. I tried unsetting (commenting out) my defaults
send-hook my_hdr but to no avail. I think I will just for the moment have to
have several commented out my_hdr From lines to suit.

Sean

-- 
GPG ID (DSA) 92B9D0CF PGP2 ID 19592A0D Linux User: #124682  ICQ: 679813
To get my PGP Keys send me an empty email with retrieve as the subject
It said "Needs Windows 95 or better". So I installed Linux...

 PGP signature


Re: Send-Hooks

1999-12-14 Thread Sean Rima

Hi John!

On Tue, 14 Dec 1999, John P . Looney wrote:

 On Tue, Dec 14, 1999 at 02:39:23PM +, Sean Rima mentioned:
  Hi David!
  
  On Tue, 14 Dec 1999, David T-G wrote:
  
   Sean --
   
   If I understand you correctly, you want replies to email sent to your
   yifan account to come from your softhome account, but mutt currently sets
   your from address as yifan when it sees that the email was sent there.
   
   If that's correct, then I believe you want to unset "use_from", and you
   might also want to specify a "my_hdr From" command to force a particular
   address.
   
   
  
  No the other way around. If a mail comes in addressed to
  [EMAIL PROTECTED], I want Mutt to set the reply as coming from
  [EMAIL PROTECTED] Currently it sets all mail to From:
  [EMAIL PROTECTED]
 
  I've in my .muttrc:
 
 send-hook . my_hdr reply-to: [EMAIL PROTECTED]
 send-hook . my_hdr From: John P. Looney [EMAIL PROTECTED]
 send-hook ilug my_hdr From: [EMAIL PROTECTED]
 send-hook ilug my_hdr Reply-to: [EMAIL PROTECTED]
 send-hook [EMAIL PROTECTED] my_hdr From: [EMAIL PROTECTED]
 send-hook compapp.dcu.ie my_hdr reply-to: [EMAIL PROTECTED]
 send-hook compapp.dcu.ie my_hdr From: John P. Looney [EMAIL PROTECTED]
 send-hook online.ie my_hdr From: John P. Looney [EMAIL PROTECTED]
 send-hook online.ie my_hdr Reply-to: [EMAIL PROTECTED]
 
  I've loads more, but you get the idea...
 

I have these set for mailing lists etc, but if someone writes me direct, my
default email address may not be the one he/she wrote to and I don't want to
confuse anyone :)

Sean

-- 
GPG ID (DSA) 92B9D0CF PGP2 ID 19592A0D Linux User: #124682  ICQ: 679813
To get my PGP Keys send me an empty email with retrieve as the subject
It said "Needs Windows 95 or better". So I installed Linux...

 PGP signature


Re: send-hooks

1999-09-19 Thread Stefan Troeger

Hi,

On Sun, Sep 19, 1999 at 17:16 +0200, Moritz Schulte wrote:

 ok, i´ve a question about send-hooks:
 is there a possibilitie to let send-hooks affect only this one mail?
 an exmaple:
 pgp_autoencrypt is unset and i want mails to one andress get
 encrypted.
 if i set "pgp_autoencrypt" via a send-hook to this adress, this mail
 gets autoencrypted fine. but, and thats the problem, this "set
 autoencrypt" doesnt affect only this mail. all following mails to
 other adresses are getting encrypted to.

Use something like

send-hook .   unset pgp_autoencrypt
send-hook that one address here set   pgp_autoencrypt

to unset pgp_autoencrypt for every mail except mail to that one
address.

Ciao,
Stefan



Re: send-hooks - cruel

1999-06-25 Thread Anonymous

Eric Smith [EMAIL PROTECTED] wrote:

  In what way do they fail to work?
 
 Well, they do not set the headers or whatever, they just do not have
 any effect.

The only un-commented send-hook in the huge muttrc file you sent was one
that tries to set the subject header.  I believe there is a limitation
that the subject cannot be set by send-hooks.  But any other header
should be settable.

 I need to change the "From:" in a scripted mail out that I do with
 perl.

Why use Mutt?  Why not simply format your headers the way you want them
to be, in your script, and then send the result directly to "sendmail -t"?

open(MAIL, "|/usr/lib/sendmail -t");

print MAIL "From: Bogus User bogus\@example.com\n";
print MAIL "To: Another User another\@example.com\n";
print MAIL "Subject: This is very important\n";
print MAIL "\n";
print MAIL "This is my message to you.\n";

close(MAIL);

If you don't want the recipients to show in the headers, don't use
sendmail's -t flag; instead put the users on the command line:

@recipients = ( "bogus\@example.com", "another\@example.com" );

open(MAIL, "|/usr/lib/sendmail @recipients");

print MAIL "From: Bogus User bogus\@example.com\n";
print MAIL "To: undisclosed-recipients:;\n";
print MAIL "Subject: This is very important\n";
print MAIL "\n";
print MAIL "This is my message to you.\n";

close(MAIL);

 It would be nice to get the hooks to work though.

Try "send-hook ~A 'my_hdr X-My-Header: blah'" and I think you will see
that send-hooks do work.

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
Convex Division  |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44