[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mutt e send-hook (era: X-face: la voglio!)



On Mon, Jan 21, 2002 at 03:15:37PM +0100, Stefano wrote:
> >mutt, usando i send-hook. :)
> 
> uhm, essere piu' precisi ;-)
> magari un bel esempietto potrebbe essere utile a me (noi) profani...



Il manuale (/usr/share/doc/mutt/manual.txt.gz) lo spiega molto bene:

  Usage: send-hook [!]pattern command

  This command can be used to execute arbitrary configuration commands
  based upon recipients of the message.  pattern is a regular expression
  matching the desired address.  command is executed when regexp matches
  recipients of the message.  When multiple matches occur, commands are
  executed in the order they are specified in the muttrc.

  See ``Message Matching in Hooks'' for information on the exact format
  of pattern.

  Example: send-hook mutt "set mime_forward signature=''"

  Another typical use for this command is to change the values of the
  ``$attribution'', ``$signature'' and ``$locale'' variables in order to
  change the language of the attributions and signatures based upon the
  recipients.

  Note: the send-hook's are only executed ONCE after getting the initial
  list of recipients.  Adding a recipient after replying or editing the
  message will NOT cause any send-hook to be executed.  Also note that
  my_hdr commands which modify recipient headers, or the message's
  subject, don't have any effect on the current message when executed
  from a send-hook.


Questo significa che basta aggiungere un send-hook di default ed uno per
ogni caso particolare (liste o quel che e') e modificare i parametri
necessari, come "signature" ad esempio.

-- 
Christian Surchi, csurchi@debian.org, christian@firenze.linux.it |   ICQ     
www.debian.org - www.softwarelibero.it - www.firenze.linux.it    | 38374818
You will be the last person to buy a Chrysler.



Reply to: