<<< Date Index >>>     <<< Thread Index >>>

Re: GPG Signing based on recipient



Hi Kyle,

Am 2007-08-13 09:58:37, schrieb Kyle Wheeler:
> What you need to do is separate them into different send-hooks, like 
> so:
> 
> send-hook '~C marktest@xxxxxxxxxxxx' 'my_hdr From: Test Account 
> <test.account@xxxxxxxxxxxx>'
> send-hook '~C marktest@xxxxxxxxxxxx' 'set pgp_sign_as=98765432198765432'
> 
> Unfortunately, you can't have a single send-hook execute multiple 
> commands.

Excuise me if I sit on my line but I have:

----[ '~/.mutt/hook-send' ]---------------------------------------------

send-hook . ''

send-hook '~t (delorie.com\|watt-32\|alleg-main)' \
          'source ~/.mutt/headers; \
           my_hdr From: Michelle Konzack <dos4michelle@xxxxxxxxxx>; \
           my_hdr X-Uptime: `uptime`; \
           my_hdr X-Homepage-4: http://freenet-homepage.de/dos4michelle/; \
           my_hdr Fcc: =.ML_devel/; \
           set pgp_autosign=yes; \
           set pgp_sign_as="0xE8C09D5A"; \
           set edit_headers=yes; \
           set signature=~/.signatures/rotate.txt'

send-hook '~t (lists.debian.org)' \
          'source ~/.mutt/headers; \
           my_hdr From: Michelle Konzack <linux4michelle@xxxxxxxxxx>; \
           my_hdr X-Uptime: `uptime`; \
           my_hdr X-Homepage-2: http://freenet-homepage.de/linux4michelle/; \
           my_hdr Fcc: =.ML_debian/; \
           set pgp_autosign=yes; \
           set pgp_sign_as="0xC492F812"; \
           set edit_headers=yes; \
           set signature=~/.signatures/debian_lists.txt'
------------------------------------------------------------------------

...and the multiple commands are working fine.

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature