bug-anubis
[Top][All Lists]
Advanced

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

Re: [bug-anubis] Questions about gpg-encrypt


From: Jim Cheetham
Subject: Re: [bug-anubis] Questions about gpg-encrypt
Date: 21 Aug 2003 10:22:03 +1200

On Tue, 2003-08-19 at 12:48, Dominique Bordereaux wrote:
>     * Is it possible to encrypt and sign a message?
>     * At work, I have 2 pgp private keys: the one for my profesional
>       activities and my personal one that I have imported at my workplace.
>       I suspect that I can't have my outgoing mail to b encrypted
>       because anubis doesn't know which one to use

I think you are able to select a different gpg-encrypt 'keyname' as you
go through the rules, although I cannot test this at the moment. Also
please note that I'm using v3.9.91, which has a slightly different
command syntax, but the same basic functionality.

if [From] "address@hidden"
        gpg-encrypt 'work key'
        gpg-sign 'work key pasphrase'
else
        if [From] "address@hidden"
                gpg-encrypt 'personal key'
                gpg-sign 'personal key phrase'
        fi
fi

You could also pass the logic off onto the external-body-processor.

If you always use the same From: address, you might be able to select
the correct signature with a Trigger, i.e.

Subject: work email @@work
Subject: personal email @@pers

trigger work
        gpg-encrypt 'work key'
        gpg-sign 'work key phrase'
done
trigger pers
        gpg-encrypt 'personal key'
        gpg-sign 'personal key phrase'
done

-jim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]