Organizing GPA public key list into favourites groups????

Bo Berglund bo.berglund at
Thu Jan 13 00:42:22 CET 2011

On Wed, 12 Jan 2011 23:58:04 +0100, Bo Berglund
<bo.berglund at> wrote:

>On Tue, 11 Jan 2011 23:12:48 +0100, Bo Berglund
><bo.berglund at> wrote:
>What I want to do is to encrypt a specific file before sending it as
>an attachment in an email. I need to encrypt it several times a week
>after it has been revised because it is a live specification document
>and it is very tedious to always sift through the long list of keys to
>select the keys for the development team members...
>A group would have made life so much easier.
>Is there any other way to encrypt a file than using GPA?

Well, I created a batch file with the command:

gpg -r <groupname> --encrypt <filename>

When I execute this batch file it actually does what I need provided
that the file is not open in MS Word. If it is then there is a very
strange error message about an illegal argument...

Funnily, if I use PGA to encrypt the doc file while MSWord has it
open, then encryption works just fine.
Is there a gpg option to open the file in read-only mode such that I
don't get this error?

Bo Berglund
Developer in Sweden

More information about the Gnupg-users mailing list