Day-By-Day work with GnuPG

2001-01-16 Thread Kai Weber

Hi,

maybe it is not a question for Mutt but because I mostly use gpg with
Mutt it fits the on-topic-rules.

How can I automatically clean up my pubring? Let's say, a key has
expired. Mutt/Gpg uses still the key in the pubring. I have to go and
remove the key to fetch a new one.

This is just an example. My question therefor is whether a solution for
keeping the keyring up-to-date already exist?

Kai.
-- 
mail | [EMAIL PROTECTED]  pgp: [EMAIL PROTECTED]  icq: 102024972
 | http://www.glorybox.de/



Re: Day-By-Day work with GnuPG

2001-01-16 Thread Henrique de Moraes Holschuh

On Tue, 16 Jan 2001, Kai Weber wrote:
 This is just an example. My question therefor is whether a solution for
 keeping the keyring up-to-date already exist?

You need to roll your own. Attached, you'll find my script. Fell free to use
and modify it, but be aware of possible pitfalls. It Works For Me, but there
are no warranties it will work for you.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


#!/bin/sh
## GNUPG Maintenance script
##

###
### User-defined parameters
###

## Read-Only keyrings
ROKEYRINGS="/usr/share/keyrings/debian-keyring.gpg /usr/share/keyrings/debian-keyring.pgp"

## Keyserver list
#KEYSERVERS="keyring.debian.org wwwkeys.eu.pgp.net wwwkeys.us.pgp.net"
KEYSERVERS="wwwkeys.eu.pgp.net wwwkeys.us.pgp.net"

PROG=`basename $0`



set +e

if test -x /usr/bin/time; then
	TIMECMD=/usr/bin/time
else
	TIMECMD=
fi

runupdate() {
	# Does an update run
	gpg --batch --list-keys --fast-list | grep ^pub\  | awk '{ print $2 }' | sed s/^.*\\/// | xargs -r ${TIMECMD} gpg -q --batch --lock-multiple --recv-key $@
}

## First, update public ring from any readonly keyrings

echo ${PROG}: Updating RW keyring from RO keyrings...
echo ${PROG}: Keyrings: ${ROKEYRINGS}

${TIMECMD} gpg --batch --quiet --fast-import ${ROKEYRINGS}

echo

## Now, refresh key data from dynamic sources

echo ${PROG}: Requesting fresh key data from public keyservers...

for i in ${KEYSERVERS} ; do 
	echo ${PROG}: Keyserver ${i}...
	runupdate --keyserver ${i}
	echo
done

## Now, rebuild database

echo ${PROG}: Rebuilding trust database...
gpg --batch --quiet --update-trustdb

echo ${PROG}: DONE.

 PGP signature


Re: Day-By-Day work with GnuPG

2001-01-16 Thread Josh Huber

On Tue, Jan 16, 2001 at 01:19:13PM +0100, Kai Weber wrote:
 Hi,
 
 maybe it is not a question for Mutt but because I mostly use gpg with
 Mutt it fits the on-topic-rules.
 
 How can I automatically clean up my pubring? Let's say, a key has
 expired. Mutt/Gpg uses still the key in the pubring. I have to go and
 remove the key to fetch a new one.
 
 This is just an example. My question therefor is whether a solution for
 keeping the keyring up-to-date already exist?

This might not be exactly what you're looking for, but I've written a
short perl script called 'uk' (update-key(s)) which might help you out
a little.

uk user/adress match, like:
[huber@majere:~]-$ uk huber
2000-01-20 Josh Huber [EMAIL PROTECTED]

***
Updating the listed keys from pgp.ai.mit.edu
***

gpg: requesting key 6B21489A from pgp.ai.mit.edu ...
gpg: key 6B21489A: not changed
gpg: Total number processed: 1
gpg:  unchanged: 1

if you don't enter a pattern to match, all the keys in your keyring
will be updated.

Then, I've got fk (find key), which could use some work:

#!/bin/sh

lynx -dump "http://pgp.ai.mit.edu:11371/pks/lookup?op=indexsearch=$1"
| grep ^pub | perl -e 'while() { m/.*\](.*?) \S+ (.*)/; print $1,
", ", $2, "\n"; }'

example:
[huber@majere:~/bin]-$ fk [EMAIL PROTECTED]
6B21489A, Josh Huber 

uk is attached.

-- 
Josh Huber | [EMAIL PROTECTED] |
1024D/6B21489A 61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A


#!/usr/bin/perl

my $keyserver = "pgp.ai.mit.edu";
my $name;
$name = $ARGV[0] unless scalar @ARGV == 0;

open(GPG, "gpg --list-keys |");

my $keystr;
my $num = 0;
my @keys;
while(GPG) {
chop;
if (m/^pub.*?\/(.+?)\s(.*$name.*)$/i) {
print $2,"\n";
$num++;
push @keys, $1;
}
}

$keystr = join ' ', @keys;

close(GPG);

if ($num == 0) {
print "No keys to get!\n";
exit 0;
}

print "\n***\n";
print "Updating the listed keys from $keyserver\n";
print "***\n\n";
`gpg --keyserver $keyserver --recv-key $keystr`;

 PGP signature


Re: Day-By-Day work with GnuPG

2001-01-16 Thread Mike E

* Henrique de Moraes Holschuh ([EMAIL PROTECTED]) wrote:
 On Tue, 16 Jan 2001, Kai Weber wrote:
  This is just an example. My question therefor is whether a solution for
  keeping the keyring up-to-date already exist?
 
 You need to roll your own. Attached, you'll find my script. Fell free to use
 and modify it, but be aware of possible pitfalls. It Works For Me, but there
 are no warranties it will work for you.

On a related note. How do you guys get new keys anyhow? I have
encryption/decryption working, but is there a way to have gpg/mutt
automatically fetch public keys from keyservers for you?

Mike

-- 
"The more noise a man or a motor makes the less power there is
available." - W. R. McGeary   http://www.quidquam.com/



Re: Day-By-Day work with GnuPG

2001-01-16 Thread Josh Huber

On Tue, Jan 16, 2001 at 06:57:07AM -0800, Mike E wrote:
 On a related note. How do you guys get new keys anyhow? I have
 encryption/decryption working, but is there a way to have gpg/mutt
 automatically fetch public keys from keyservers for you?

If you set a keyserver in the .gnupg/options file, gpg will
automatically download keys when mutt uses it to verify a signature.

relevant part of the config:
# GnuPG can import a key from a HKP keyerver if one is missing
# for sercain operations. Is you set this option to a keyserver
# you will be asked in such a case whether GnuPG should try to
# import the key from that server (server do syncronize with each
# others and DNS Round-Robin may give you a random server each time).
# Use "host -l pgp.net | grep www" to figure out a keyserver.
keyserver pgp.ai.mit.edu

-- 
Josh Huber | [EMAIL PROTECTED] |
1024D/6B21489A 61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A

 PGP signature


Mutt1.2.5/IMAP/Kerberos 5 on Debian 2.2?

2001-01-16 Thread Petr Hlustik

Hello,

Anybody got the Subject working?  I've been very happily using
Mutt/IMAP/Kerberos 5 w/o passwords on my Linux box at work (RedHat 6.2) -
thanks Brendan. I tried the same on my home box with Debian 2.2 and I ran
into trouble. First, I did not see any Kerberos 5 in Debian, so I compiled
from sources, including the shared libraries. But I still can't make mutt
authenticate. My mutt is configured with +USE_GSS but I have no idea what I
should provide and how.

Thanks,
Petr



New mail notification

2001-01-16 Thread John Indra

Dear all...

I have this entry in my .muttrc:
mailboxes ! =dsniff ="@freebsd.org" ="@mutt.org" ="pau-mikro" \
="@postfix.org" ="@redhat.com" "@securityfocus.com" "libwww" "vpopmail"

Unfortunately not all mailboxes notify me when new mail arrives. Only the
first 7!?!
Is there some limitation of the mailboxes sum? Or is there something I must
tweak?

FYI using Mutt 1.2.5i

Thanks...

/john




Re: New mail notification

2001-01-16 Thread John Indra

On Wed, Jan 17, 2001 at 01:30:34AM +, Dave Pearson wrote:

Could it be pure coincidence that it's only the first seven that are full
paths (well, shortcuts to full paths) while the rest aren't? :-)

I don't quite get your point.

All those mailboxes reside in $HOME/mail. None of them are symlinks. I use
procmail.

/john




Re: New mail notification

2001-01-16 Thread Jeffrey A Schoolcraft

you might want to do something like this then:

mailboxes `for file in ~/mail/*; do echo -n "+$(basename $file) "; done`

works for me.

Jeff



Re: New mail notification

2001-01-16 Thread Jeffrey A Schoolcraft


sorry, forgot the !

 mailboxes ! `for file in ~/mail/*; do echo -n "+$(basename $file) "; done`
 Jeffrey A Schoolcraft ([EMAIL PROTECTED]) wrote:
 you might want to do something like this then:
 
 mailboxes `for file in ~/mail/*; do echo -n "+$(basename $file) "; done`
 
 works for me.
 
 Jeff



Name Problem.

2001-01-16 Thread Nelson Guerrero

Hi, I've been wanting to ask, why would "Nelson D. Guerrero" turn to
"Nelson D . Guerrero" on my mutt? I set it up in the .muttrc file to be
"Nelson D. Guerrero" and every time I try to email someone it would just
go back to "D ."



---
Nelson D. Guerrero| E-Mail: [EMAIL PROTECTED]
Platinom.NET Dominicana   |  Phone: (809) 567-4600
Dialup / Web Hosting / E-Commerce |WWW: http://www.platinom.net/




Re: New mail notification

2001-01-16 Thread Suresh Ramasubramanian

Jeffrey A Schoolcraft proclaimed on mutt-users that: 

 sorry, forgot the !
  mailboxes ! `for file in ~/mail/*; do echo -n "+$(basename $file) "; done`

instead - try 
mailboxes `echo $HOME/Mail/*`
it works just fine :)

--suresh

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Something complex that I'm not sure mutt can handle.

2001-01-16 Thread Lloyd Zusman

There's something I'd like to do within mutt, but it's complex and I'm
not sure if mutt can handle it.  I'm currently using gnus to
accomplish this complex task, and although it works, I'd like to
switch to mutt if at all possible.

In order to explain what I want to do, I have to first give some
background:

I manage a server machine that is connected to the backbone by a very
fast link.  On this machine I receive a large number of items that I
archive, and which I want to be able to review from my machine at
home, which is behind a much slower PPP data link.

The items I receive consist of data in many different formats: text,
word-processor documents, images, executables, etc.  And many of these
items are rather large.  I've written some software which runs on my
server and automatically organizes all these received items, and every
time something new comes in, this software running on my server
generates a short email message describing the item, and it sends this
email to me at my machine at home.  Each email also contains the file
name on the server where the item resides.

What I am able to do at home (within gnus) is ...

-- Mark each email message with a tag specifying whether I want to
   delete the associated remote file or download it to my local
   machine (no tag means that I just keep it on the server).

-- Invoke a command that causes the list of files associated with the
   tagged messages to be processed via an FTP session (controlled by a
   Perl ftp-client object) where all these files are either downloaded
   to my local machine or deleted off the server, depending on the way
   they've been marked.

-- This FTP process runs in the background so that I can continue
   to read other messages in that folder or other folders.

-- This background process also invokes a Perl IMAP module to mark
   each email message as Deleted for each associated file that has
   been deleted on the server.

-- When the background process finishes processing all its files,
   it issues an IMAP Purge command to remove the emails for
   the files that were deleted.

Given that I already have written and have been using the Perl script
that runs in the background and performs the FTP actions and manages
the Delete and Purge IMAP commands, is it possible to configure mutt
to do the email-client portion of this process?  ... i.e.,

-- Mark a group of messages as deleteable or downloadable.

-- Invoke an external command that runs in a separate process,
   passing it the list of IMAP message ID's or UID's of the
   tagged messages, and an indicator as to whether the remote
   file associated with each message should be downloaded or
   deleted.

-- Allow me to interact with mutt while all this is running.

-- Re-draw the mutt screen periodically as the external process runs
   and performs the Delete and Purge IMAP statements, so I can see the
   messages disappearing as their remote files get deleted.


Is this just too much complexity for mutt, or do you folks think
that this is possible?

Thanks in advance.


-- 
 Lloyd Zusman
 [EMAIL PROTECTED]

 PGP signature


Re: Name Problem.

2001-01-16 Thread Scott A. McIntyre


 Hi, I've been wanting to ask, why would "Nelson D. Guerrero" turn to
 "Nelson D . Guerrero" on my mutt? I set it up in the .muttrc file to be
 "Nelson D. Guerrero" and every time I try to email someone it would just
 go back to "D ."

This one bothered the heck out of me for a while.  Try:

set realname="Nelson D. Guerrero"