Send-Hooks, and the Subject, revisited.
 _______________________________________

  I have asked a similar question before, with no clear answer.
  I will try to rephrase it. I hope that perhaps some developer
  is reading, and can say 'this is not possible' or 'it should
  be possible'. Now, the question:

  Is it possible to use a send hook to set the subject?

  My common sense tells me it is possible. However, I have
  tried several combinations of send-hooks without success.

  Examples:
  send-hook '~t ^[EMAIL PROTECTED]$' 'my_hdr Subject: [test] '
  send-hook [EMAIL PROTECTED] 'my_hdr Subject: [test] '
  ...

  This does not result in the subject line set to start with
  [test] as expected. However, and strangely enough, every one
  in a hundred messages or so (i.e. very infrequently) the subject
  line will start with [test], even though I'm not sending the 
  message to the magic incantation of [EMAIL PROTECTED] ....
 
  Using 'unmy_hdr Subject' or not doesn't appear to affect
  this behaviour.
 
  Perhaps my_hdr can be used with other headers, but not with 
  the subject. I'm not a developer myself, so I cannot read 
  mutt's sources and figure this out, but I guess it should be
  possible ... right?

  I've tried several options to make mutt avoid asking for the 
  subject upon hitting 'm' to start a new message. No change.

  Upon searching google with 'unmy_hdr Subject:' I see that most
  of the hits are to documents with the words 'unmy_hdr' and 'Subject'
  not connected (not near). One document, however contains the following
  send-hook (it's from a mailing list archive):

  send-hook '[EMAIL PROTECTED]' \
  'set mime_forward ; set pgp_autosign=no ; set editor=/bin/true ; \
  my_hdr Fcc: /dev/null ; my_hdr From: [EMAIL PROTECTED] ; my_hdr Subject: spam ; \
  push y'

  However, a comment on top of the send-hook says:
  # mystery:  The subject isn't being set.   Why?!?

  We're two now.

  Any idea why the Subject header doesn't like being set this way?

  Thanks in advance,

  Fernan.

 
-- 

F e r n a n   A g u e r o
http://genoma.unsam.edu.ar/~fernan

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GS d- s:+ a C++ BU++ P+++ L- E- W+++ N o? K? w- !O M+ !V PS+ PE Y+ PGP
t- 5? X- R- tv+ b++ DI+ !D G e++++ h---- r+++ y+++ 
------END GEEK CODE BLOCK------

Reply via email to