Re: my_hdr question.

1999-11-27 Thread Mikko Hänninen

Hi,

I'll post a reply to these two similar questions in a single email.

Stewart V. Wright [EMAIL PROTECTED] wrote on Fri, 26 Nov 1999:
 How does one do this?  I tried something along the lines of:
 
 send-hook '~C testing' my_hdr "Bcc: [EMAIL PROTECTED]"
 
 Thus (notionally) anything I send to (or cc to) testing should get
 bcc'ed to [EMAIL PROTECTED]  _But_ this does not seem to occur. 

... and ...

Rejo Zenger [EMAIL PROTECTED] wrote on Fri, 26 Nov 1999:
   send-hook [EMAIL PROTECTED] 'my_hdr From: Rejo Zenger [EMAIL PROTECTED]'
   send-hook [EMAIL PROTECTED] 'my_hdr Reply-To: Rejo Zenger [EMAIL PROTECTED]'
   send-hook [EMAIL PROTECTED] 'my_hdr Cc: Foo Bar [EMAIL PROTECTED]'

 For the From and Reply-To fields and the signature and attribution
 settings it works like a charm. However, the Cc will not change. So,
 what could possibly be wrong. Any idea's?

I think the issue here is that you can't add a recipient from a
send-hook, because the hooks are already matching against the To/Cc/Bcc
headers.  I'm not sure about this, but it certainly would make sense.
I tested adding Cc: or Bcc: with a regular my_hdr command (not from a
send-hook) and that worked just fine.

I don't know why this is, it would certainly be useful in some occassion
to add (for example) Bcc's when sending emails to some particular
addresses.  Maybe there's some complexities in writing the functionality
to support this though, it might not be entirely straighforward.


 Aditionally, how to exclude the body in the reply?

Set include=no.  For more info, refer to the documentation about the
$include variable.


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 /
Half of the people in the world are below average.



Re: my_hdr question.

1999-11-27 Thread Rejo Zenger

++ 27/11/99 09:58 +0200 - Mikko Hänninen:
Rejo Zenger [EMAIL PROTECTED] wrote on Fri, 26 Nov 1999:
   send-hook [EMAIL PROTECTED] 'my_hdr From: Rejo Zenger [EMAIL PROTECTED]'
   send-hook [EMAIL PROTECTED] 'my_hdr Reply-To: Rejo Zenger [EMAIL PROTECTED]'
   send-hook [EMAIL PROTECTED] 'my_hdr Cc: Foo Bar [EMAIL PROTECTED]'

I think the issue here is that you can't add a recipient from a
send-hook, because the hooks are already matching against the To/Cc/Bcc
headers.

Yes, that could be an explanation. The reason i need this is because i'm
the co-moderator for some lists. Everytime i accept or reject a RFS i
have to write to listserv, but also Cc the other co-mods. Normally i did
this by hand (with a macro), but as i'm using mutt i was thinking i
could do this automagically...

-Rejo.

-- 
= Rejo Zenger  [Sister Ray Crisiscentrum]   [EMAIL PROTECTED]
= http://mediaport.org/~sister  PGP: see headers




my_hdr question.

1999-11-25 Thread Stewart V. Wright

Hi all,

In the manual there is the following entry :

  6.3.127.  record

  Type: string
  Default: none

  This specifies the file into which your outgoing messages should be
  appended.  (This is meant as the primary method for saving a copy of
  your messages, but another way to do this is using the ``my_hdr''
  command to create a Bcc: field with your email address in it.)


The bit that I'm interested in is the "using the ``my_hdr'' command to
create a Bcc: field..."

How does one do this?  I tried something along the lines of:

send-hook '~C testing' my_hdr "Bcc: [EMAIL PROTECTED]"

Thus (notionally) anything I send to (or cc to) testing should get
bcc'ed to [EMAIL PROTECTED]  _But_ this does not seem to occur. 

Any suggestions?


Cheers,

S.

 PGP signature