save-hook drama

2000-10-23 Thread Darrin Mison

I can't figure out for the life of me why this doesn't work

save-hook ~s\\fm-news =freshmeat_list

Mutt refuses to save in the mbox 'freshmeat_list' but instead only 'noreply'
Message headers below...

To: [EMAIL PROTECTED]
From: freshmeat daemon [EMAIL PROTECTED]
Date: Fri, 20 Oct 2000 23:59:01 -0400 (EDT)
Subject: [fm-news] newsletter for Friday, October 20th
Reply-To: [EMAIL PROTECTED]

--
Darrin Mison
-- 
Say something you'll be sorry for, I love receiving apologies.

 PGP signature


My Contribution to Anti-Spam

2000-10-23 Thread Corey G.

I saw some recent postings about how people control spam.  I thought I
would pass along my perl script that I use to help with this.  Some
things are needed in order for this to work.

1. freebsd (although certainly easily modified for others)
2. perl
3. procmail
4. sendmail using anti-spam
5. root access

Procmail simply needs to use many of the filters that were presented on
this list, but the most powerful weapon is with sendmail.  I use code
that I found from sendmail.org which rejects domains found in a text
file.  This text file contains the domains that sendmail rejects during
my fetchmail retrievals.  By default, it uses /etc/spamdomains.txt.  I
currently have over 750 domains which have been added.

When you run this script it grabs the senders domain from your spam box
and adds these domains to your sendmail /etc/spamdomains.txt file.  It
restarts sendmail too.  You must restart sendmail in order to have the
new list activated.  It also checks for safe domains which you can add.
Safe domains are domains which should never be added even if they are
found in your spam box.  It will remove duplicates and sort the list as
well.  Please use at your own discretion.  Your spam box will also be
purged each time this is run.  So do not put ANYTHING in this mail box
you want to save.

It's a very fast way to keep updating your system with domains you want
to reject.  Adding users to block is also an option but is not part of this
script.  I try not to add users since spam seems to never come from the
same person twice.

You could also run this script from cron once you feel comfortable
enough.


#!/usr/bin/perl
# By: Corey Gaffney

use Mail::Address;

### Environment Variables ##
$mail="/home/cgaff/mail/spam";
$spam_list="/etc/spamdomains.txt";

@safe_domains= ("amazon.com",
"home.com",
"interaccess.com",
"yahoo.com",
"flashcom.com");

#

my @unique;
my @spamtoadd;
my @newspam;
my $check;
my $from_host;
my $from_hostc;
my %seen;

verify_os();
verify_user();
main();
kill_sendmail();

sub verify_os{

# Verify OS - FreeBSD only
@operating_system=`/usr/bin/uname`;
foreach $os(@operating_system){
chomp($os);
if ($os ne "FreeBSD"){
print "You must run this script on FreeBSD\n";
exit;
}
}
}

# Verify ID - Super user only
sub verify_user{
@user=`/usr/bin/id`;
foreach $id(@user){
chomp($id);
@idsplit=split(/\s+/,$id);
$eid=$idsplit[0];
if ($eid ne "uid=0(root)"){
print "Must be superuser to execute script\n";
exit;
}
}
}

sub main{

open (MAIL,$mail) || die "Cannot open $mail\n";

# Lets make sure we have mail in the spam mailbox
open (MCOUNT,$mail); 
@spamcount=MCOUNT;
close(MCOUNT);

if (@spamcount  1){
print "No spam to process - exiting\n";
exit;
}

while ( $check = MAIL ){

if ($check =~ m/^From:/){

($line,$from) = split(/^From:\s+/, $check);
$object = (Mail::Address-parse($from))[0];
$from_hostc = $object-host;

$from_host = lc $from_hostc; #convert all to lowercase
push @spamtoadd, "$from_host";
}
}
close(MAIL);

# Remove safe domains from spam list
foreach $safe_domains(@safe_domains){
@spamtoadd = grep {$_ ne $safe_domains} @spamtoadd;
}

# Put unique spam domains into another array
@unique = do {my %h; grep {!$h {$_} ++} @spamtoadd};

open (ILIST,$spam_list) || die "Cannot open $spam_list\n";
@ilist=ILIST;
foreach  $list(@ilist){
chomp($list);
push(@original_list,$list);
}
close(ILIST);

# Find elements in A that aren't in B

@seen{@original_list} = ();

foreach $email(@unique) {
push(@newspam, $email) unless exists $seen{$email}
}

@unique_sorted = sort @newspam;

# Make sure spam we add is unique - do not add
# duplicates
# Remove bland lines before pushing to array

foreach $from_host_unique(@unique_sorted){
unless ($from_host_unique =~ /^\s*$/){
push(@new_sorted_array,$from_host_unique);

print "Added $from_host_unique\n";
}
}

push(@original_list,@new_sorted_array);
@final_sorted_array=sort @original_list;

# Make sure we are not writing an empty array
$count=@final_sorted_array;
if ($count = 1){
print "Something went wrong!! - bailing\n";
print "Array final_sorted_array too small!\n";
exit;
}

# Generate new spam domains file
open(SPAMLIST,"$spam_list") || die "Cannot open 

send-hook drama

2000-10-23 Thread Darrin Mison

Why doesn't this work?
save-hook ~s\\fm-news =freshmeat_list

It insists on saving mesages to =noreply in stead of =freshmeat_list

To: [EMAIL PROTECTED]
From: freshmeat daemon [EMAIL PROTECTED]
Date: Sun, 22 Oct 2000 23:59:01 -0400 (EDT)
Subject: [fm-news] newsletter for Sunday, October 22nd
Reply-To: [EMAIL PROTECTED]

Thanks in advance

--
Darrin Mison
-- 
Any circuit design must contain at least one part which is obsolete, two parts
which are unobtainable, and three parts which are still under development.

 PGP signature


Re: Using mutt and pgp without asking for passphrase ?

2000-10-23 Thread David T-G

Daniel --

...and then Daniel Kollar said...
% I'm setting the passphrase via the PGPPASS environment variable before starting
% mutt.

Why would you do that?  That has to be the second-worst method of storing
the passphrase, and mutt will only ask you once per $pgp_timeout seconds
(or until you hit ctrl-f, if that happens first) so I'd think it wouldn't
be too much troublee...


% Wenn I open a pgp encrypted message mutt still asks me for the
% passphrase. This is not necessary, because pgp looks automatically for
% the PGPPASS environment variable.

That it does, but I again wonder why you'd want to go that route when you
have mutt to help you along.


% 
% So, how do I disable this function in mutt?

AFAIK you'll be hacking away at the source code on your own.


% 
% 
% Daniel.


HTH  HAND

:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.


 PGP signature


Re: GnuPG autosign how

2000-10-23 Thread David T-G

Rino --

...and then Rino Mardo said...
% On Tue, Oct 17, 2000 at 11:10:11AM -0400 or thereabouts, David T-G wrote:
%  
%  Aha -- this sounds like there is a problem with your gpg invocation.
%  Would you care to post your gpg.rc file and/or relevant sections of
%  muttrc for review?
% 
% gpg.rc?

Yeah; that's a supplied file which configures some mutt settings for use
with gpg (vs pgp2 or pgp5 or some other encryption program you wrote last
night).


% 
% i only have ~/.gnupg with my keys in them

If you don't have a setting in mutt for variables like pgp_sign_command,
pgp_encrypt_only_command, and pgp_encrypt_sign_command then you need to
look for gpg.rc in the contrib dir in the tarball and either source it
directly (it will *probably* work as-is, believe it or not) or copy it
and incorporate those settings in your mutt setup.  You don't have to
use it, of course; you might have these vars defined in your muttrc --
in which case perhaps you could let us know how you changed them from
the contrib versions :-)


% 
% -- 
% Who's watching the watchmen?
% 
% Key fingerprint = E619 726E 3815 7A48 EAC7  E49F DF93 4E33 B069 0883


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.


 PGP signature


Two probable RTFMs

2000-10-23 Thread Paul Makepeace

Hi,

I'm almost certain these are but for the life of me I can't see 'em:

1) How I do instruct mutt to recognize me as a
   variety of alternate email addresses so that I don't
   get copied back into Cc: lists on my own 'g' replies.

2) Turn off a limited view. Right now I just pound
   in garbage to 'unlimit' it.

Hope this isn't trying anyone's patience,
Paul



Re: [ot] .exrc control-key mapping

2000-10-23 Thread David T-G

Mike --

...and then Mike E said...
% Hello fellow mutt-users,
% 
% I've been trying to bind ^j to `!}fmt` in vi(m) for a while now with
% no sucess; anyone know how?

I know how to bind to fmt, but not to bind ctrl-j (as TLR indicated).

Here are my bindings:

  map f !} fmt -c
  map F !} fmt -c -w 78

I know that 'f' is otherwise taken, but I don't care :-)


% 
% btw: sorry for the OT, but I figured someone on this list would know 
% and I've just about exhausted my resources.

We all stray at one time or another :-)


% 
% Mike
% 
% -- 
% Mike Erickson mee@quidquam http://www.quidquam.com/
% I don't necessarily agree with everything I say. - Marshall McLuhan


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.


 PGP signature


Re: save-hook drama

2000-10-23 Thread Harold Oga

On Sat, Oct 21, 2000 at 03:00:09PM +1000, Darrin Mison wrote:
I can't figure out for the life of me why this doesn't work

save-hook ~s\\fm-news =freshmeat_list

Mutt refuses to save in the mbox 'freshmeat_list' but instead only 'noreply'
Message headers below...

To: [EMAIL PROTECTED]
From: freshmeat daemon [EMAIL PROTECTED]
Date: Fri, 20 Oct 2000 23:59:01 -0400 (EDT)
Subject: [fm-news] newsletter for Friday, October 20th
Reply-To: [EMAIL PROTECTED]

Hi,
   To me, that looks to be a malformed pattern for save-hook.  Does this
work better for you:

save-hook '~s fm-news' =freshmeat_list

The way you have it specified, I think it is going to look for a mail
address containing "~s\fn-news", but I'm not sure about that.

-Harold
-- 
"Life sucks, deal with it!"



Re: FEATURE-REQUEST: mutt looks for PGPPASS environment variable

2000-10-23 Thread Daniel Kollar

On Fri, Oct 20, 2000 at 02:14:09PM +0200, Thomas Roessler wrote:
 
 Did you try to change the content-type of these octet-streams to
 application/pgp?  With the more recent mutt versions, you can
 comfortably do this from within mutt.

Really? I'm using mutt 1.2i .
What version do I need to do this and where do I find information on
this?

Regards,
Daniel.



Re: save-hook drama

2000-10-23 Thread Brendan Cully

On Saturday, 21 October 2000 at 15:00, Darrin Mison wrote:
 I can't figure out for the life of me why this doesn't work
 
 save-hook ~s\\fm-news =freshmeat_list
 
 Mutt refuses to save in the mbox 'freshmeat_list' but instead only 'noreply'
 Message headers below...

what are your other save-hooks?

 To: [EMAIL PROTECTED]
 From: freshmeat daemon [EMAIL PROTECTED]
 Date: Fri, 20 Oct 2000 23:59:01 -0400 (EDT)
 Subject: [fm-news] newsletter for Friday, October 20th
 Reply-To: [EMAIL PROTECTED]
 
 --
 Darrin Mison
 -- 
 Say something you'll be sorry for, I love receiving apologies.



 PGP signature


Re: save-hook drama

2000-10-23 Thread Tommi Komulainen

On Sat, Oct 21, 2000 at 03:00:09PM +1000, Darrin Mison wrote:
 I can't figure out for the life of me why this doesn't work
 
 save-hook ~s\\fm-news =freshmeat_list

 Subject: [fm-news] newsletter for Friday, October 20th

Maybe because there is no '\fm-news' in the subject. Be careful with
backslashing. Try: 
save-hook '~s fm-news' =freshmeat_list


-- 
Tommi Komulainen   [EMAIL PROTECTED]

 PGP signature


Re: Is there a Pine-to-Mutt FAQ?

2000-10-23 Thread Suresh Ramasubramanian

Mikko Hänninen proclaimed on mutt-users that: 

 Pekka Savola [EMAIL PROTECTED] wrote on Fri, 20 Oct 2000:

  Anyway, I was wondering if there is a Pine-to-Mutt conversion HOWTO or FAQ.
 
 I've not heard of one, but I never did use Pine much so I haven't even
 looked, or paid much attention.
 
 Mutt-Newbie list?  hint, hint  I'll write a bit of this if possible but
 there's already a page at http://www.socha.net with pine (and another with
 gnus) tips, so if Sven and Robin Socha don't mind, a little cut-n-paste seems
 called for ;)
 
 Anyone else on mutt-newbie wants to pitch in?

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
A statesman is a politician who's been dead 10 or 15 years.
-- Harry S. Truman



Re: My Contribution to Anti-Spam

2000-10-23 Thread Suresh Ramasubramanian

Corey G. proclaimed on mutt-users that: 

 Procmail simply needs to use many of the filters that were presented on
 this list, but the most powerful weapon is with sendmail.  I use code
 that I found from sendmail.org which rejects domains found in a text
 file.  This text file contains the domains that sendmail rejects during
 my fetchmail retrievals.  By default, it uses /etc/spamdomains.txt.  I
 currently have over 750 domains which have been added.

No need of that ... enable FEATURE(`blacklist_recipients`) in sendmail.mc and
regenerate sendmail.cf ...  add entries of the form

spammer1.comREJECT
spammer2.comREJECT
[EMAIL PROTECTED]REJECT

etc

to /etc/mail/access and makemap it to become access.db

 script.  I try not to add users since spam seems to never come from the
 same person twice.
 
 Forged headers make this redundant - except when you have a bozo you dont want
 to mail you / your users.
 
-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
If pro is the opposite of con, what is the opposite of progress?



flag as important when sending

2000-10-23 Thread Wouter Verheijen

hi,

Is it possible to mark a message as Important or Urgent, so that the
receiver notices this.
I know this is common for other clients (Importance: or X-Priority:).
It is of course possible to add this manually, but shouldn't this be an
standard mail client feature? Or this not depreciated?


-- 
Wouter Verheijen
[EMAIL PROTECTED]



Re: save-hook drama

2000-10-23 Thread David T-G

Darrin --

...and then Darrin Mison said...
% I can't figure out for the life of me why this doesn't work
% 
% save-hook ~s\\fm-news =freshmeat_list

What's with the \\ in your expression?  It seems to me that that will
match the literal expression

  \fm-news

which doesn't seem to be in the headers you sent...  What about something
like

  save-hook ~s fm-news =freshmeat_list

or (if you insist)

  save-hook ~s \[fm-news\] =freshmeat_list

instead?


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.


 PGP signature


Re: save-hook drama

2000-10-23 Thread Michael Tatge

Darrin Mison muttered:
 I can't figure out for the life of me why this doesn't work
 
 save-hook ~s\\fm-news =freshmeat_list
  ^^
This would refer to a litaral '\' which is not in the header you
quoted.

 Subject: [fm-news] newsletter for Friday, October 20th

Try save-hook '~s fm-news' =freshmeat_list

HTH,

Michael
-- 
This file will self-destruct in five minutes.

PGP-fingerprint: DECA E9D2 EBDD 0FE0 0A65  40FA 5967 ACA1 0B57 7C13



Searching in multiple mailboxes

2000-10-23 Thread Wouter Verheijen

There is something that would be nice to have in Mutt:
Searching in multiple (or all) mailboxes.
Imagine this scenario: You are looking for a specified text
in every message you have. It is only possible to search one
mailbox, so this might be handy.


-- 
Wouter Verheijen
[EMAIL PROTECTED]



Re: Two probable RTFMs

2000-10-23 Thread Bruce J.A. Nourish

On Fri, Oct 20, 2000 at 07:59:58PM -0500, Paul Makepeace wrote:
 Hi,
 
 I'm almost certain these are but for the life of me I can't see 'em:
 
   1) How I do instruct mutt to recognize me as a
  variety of alternate email addresses so that I don't
  get copied back into Cc: lists on my own 'g' replies.
Look up the $alternates regex in the manual

For an example, this is what mine looks like
set alternates='(kode187\@(cyberspace.org|(tulsa|nwphx)?\.quik\.com))'

   2) Turn off a limited view. Right now I just pound
  in garbage to 'unlimit' it.
ESC-l

 Hope this isn't trying anyone's patience,
 Paul
No problem :-)
-- 
Bruce J.A. Nourish (keys - see header) [EMAIL PROTECTED]



macros and attachments

2000-10-23 Thread Mark Weinem

Is it possible to attach a file via macro?

This doesn't work:

 macro compose f2 "attach-file=/home/mark/templates/mime"

Perhaps it would be more elegant if the macro just offers the
templates directory and the user chooses the attachment he wants.


Regards,
Mark Weinem




macros and templates (was: why is mutt better?)

2000-10-23 Thread Mark Weinem

On Fri, 10 Mar 2000, Jeremy Blosser wrote:

 1) create the templates you want, using your editor of choice
 2) create macros that change the value of 'editor' to call a script/etc.
 that processes the reply+template and calls your editor, then set 'editor'
 back to the default, eg:
 
 macro index r :set editor=replyscriptenterreply:set editor=defaultenter
 
 With forms of this method the "template" isn't even limited to a text-based
 construct, it can really be anything at all.

Could you please give an example of such a replyscript? I want to
reply with a preformulated standard mail (standard.txt). 

The editor I use is gnuclient.


Regards
Mark Weinem



 PGP signature


search through lot of folders

2000-10-23 Thread Peter Pilsl



All my mails sit on a an imapserver, stored in many different folders, 
like: OLD.Inbox.week20, OLD.Inbox.week21 ... and OLD.bugtraq.week20, 
OLD.bugtraq.week22 and so on ...

Now I want to search through all subfolders in OLD.Inbox for all mails I 
got from user x or contains kezord y. Prefereable would like to get the result listed 
like a standard folder.
Is this possible ?

thanx,
peter



-- 
mag. peter pilsl

phone: +43 676 3574035
fax  : +43 676 3546512
email: [EMAIL PROTECTED]
sms  : [EMAIL PROTECTED]

pgp-key available



compile error

2000-10-23 Thread Eric Smith

Hi

On one of my machines, mutt is annoyingly fixed in height to 24 LINES.
I have now installed the latest slang library (thinking this may have
something to do with it) and configured
thus: --enable-nfs-fix --with-slang

but it fell over with this:

colour.o: In function `mutt_alloc_color':
/usr/s/mutt-1.2/colour.c:215: undefined reference to
`SLcurses_Num_Colors'
colour.o: In function `parse_color_name':
/usr/s/mutt-1.2/colour.c:319: undefined reference to
`SLcurses_Num_Colors'
make[2]: *** [mutt] Error 1
make[2]: Leaving directory `/usr/s/mutt-1.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/s/mutt-1.2'
make: *** [all-recursive-am] Error 2

there appeared to be no errors in the slang install.

Any suggestions?

thanx

-- 
Eric Smith
Fruitcom.com Amsterdam
Wire phone : +31 20 528 7340
Mobile: +31 6 241 259 16
www.fruitcom.com



Re: Is there a Pine-to-Mutt FAQ?

2000-10-23 Thread Eugene Lee

On Sat, Oct 21, 2000 at 11:27:17AM +0530, Suresh Ramasubramanian wrote:

[Pine-to-Mutt HOWTO or FAQ]

:  Mutt-Newbie list?  hint, hint  I'll write a bit of this if possible but
:  there's already a page at http://www.socha.net with pine (and another with
:  gnus) tips, so if Sven and Robin Socha don't mind, a little cut-n-paste seems
:  called for ;)

One of my friends who loves his Pine tried out Mutt and hates it,
because Mutt doesn't have a GUI method of configuring its settings the
way Pine does.  I can understand people that would prefer a low-powered
editor like Pico versus something more sophisticated like Vi or Emacs
because the former is just easier to use and configure, while the latter
requires semi-programmers to be useful.


-- 
Eugene Lee
[EMAIL PROTECTED]



Re: Two probable RTFMs

2000-10-23 Thread Jeremy Blosser

Paul Makepeace [[EMAIL PROTECTED]] wrote:
   1) How I do instruct mutt to recognize me as a
  variety of alternate email addresses so that I don't
  get copied back into Cc: lists on my own 'g' replies.

see $alternates and $reverse_name

   2) Turn off a limited view. Right now I just pound
  in garbage to 'unlimit' it.

use ~A (all messages) as the limit pattern

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
the crises posed a question / just beneath the skin
the virtue in my veins replied / that quitters never win

 PGP signature


Re: FEATURE-REQUEST: mutt looks for PGPPASS environment variable

2000-10-23 Thread Mikko Hänninen

Daniel Kollar [EMAIL PROTECTED] wrote on Mon, 23 Oct 2000:
  Did you try to change the content-type of these octet-streams to
  application/pgp?  With the more recent mutt versions, you can
  comfortably do this from within mutt.
 
 Really? I'm using mutt 1.2i .
 What version do I need to do this and where do I find information on
 this?

I think 1.2 is sufficient.  Try ^E (edit-type) from either the index,
pager or the attachements display view.  The change will only last while
you're in that folder, it won't get saved into the message (I think).


Ooops, I just noticed that this function isn't listed in the manual,
time to create a documentation patch again...  It is listed in the
help screens, though.


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Did you know that the word "gullible" is not in the dictionary?



attachment macro

2000-10-23 Thread Mark Weinem

Is it possible to attach a file via macro?

This doesn't work:

 macro compose f2 "attach-file=/home/mark/templates/mime"

Perhaps it would be more elegant if the macro just offers the
templates directory and the user chooses the attachment he wants.


Regards,
Mark Weinem




macros and templates (was: why is mutt better?)

2000-10-23 Thread Mark Weinem

On Fri, 10 Mar 2000, Jeremy Blosser wrote:

 1) create the templates you want, using your editor of choice
 2) create macros that change the value of 'editor' to call a script/etc.
 that processes the reply+template and calls your editor, then set 'editor'
 back to the default, eg:
 
 macro index r :set editor=replyscriptenterreply:set editor=defaultenter
 
 With forms of this method the "template" isn't even limited to a text-based
 construct, it can really be anything at all.

Could you please give an example of such a replyscript? I want to
reply with a preformulated standard mail (standard.txt). 

The editor I use is gnuclient.


Regards
Mark Weinem


 PGP signature


pgp-hook with GnuPG 1.0.4?

2000-10-23 Thread Jack McKinney

I have GnuPG 1.0.4 installed and have  the standard gpgrc in the contrib
samples for mutt in my .muttrc.
Almost everything works fine.  I have these two lines in my .muttrc:

.mutt-gpgrc:set pgp_autosign=yes
.mutt-gpgrc:set pgp_sign_as=D68F2C07

When I send the message, mutt automatically knows which key to sign
with, and asks me for my passphrase.
The problem is when sending messages.  I use pgp-hook and send-hook
to have mutt automatically encrypt for certain email addresses:

pgp-hook [EMAIL PROTECTED] 12345678
send-hook [EMAIL PROTECTED] set pgp_autoencrypt=yes

Without these lines, mutt presents me with my entire keyring
to select from for encryption.  When I add the two lines above
to my muttrc file and try again, it presents _two_ keys instead
of just one: the DSA signing and ElG encryption key for that user.
I am providing the keyid in the pgp-hook command, which should
identify only the encryption key for that user.  Instead, it is
acting like I had provided the email address, and selection all
keys that match that address.

--
"Restore your inalienable human rights.   Jack McKinney
 Vote Libertarian.  http://www.lp.org http://www.lorentz.com
 http://www.harrybrowne2000.org   [EMAIL PROTECTED]
  1024D/D68F2C07 4096g/38AEF076

 PGP signature


Re: GPG 1.0.3 and mutt

2000-10-23 Thread Peter J . Holzer

On 2000-10-20 17:02:57 +0930, Brian Salter-Duke wrote:
 I recently decided to try GnuPG after using only pgp2 off and on for
 some years. It was only after I downloaded it and played with it for a
 while, that I realised that version 1.0.3 was very recent. I had got in
 right at the beginning of a new version. This new version incorporates
 RSA which I understand came out of copyright only in September.

PGP 2.x also uses the IDEA algorithm which is patented in some countries
(and therefore not included in GPG), so you will still need one plugin
for GPG to handle 2.x-compatible PGP-messages.

hp

-- 
   _  | Peter J. Holzer  | Any setuid root program that does an
|_|_) | Sysadmin WSR / LUGA  | exec() somewhere is just a less
| |   | [EMAIL PROTECTED]| user friendly version of su.
__/   | http://www.hjp.at/   |-- Olaf Kirch on bugtraq 2000-08-07

 PGP signature


Re: Searching in multiple mailboxes

2000-10-23 Thread Jack McKinney

Big Brother tells me that Wouter Verheijen wrote:
 There is something that would be nice to have in Mutt:
 Searching in multiple (or all) mailboxes.
 Imagine this scenario: You are looking for a specified text
 in every message you have. It is only possible to search one
 mailbox, so this might be handy.

   Not as easy as one would hope.  This could be VERY slow, depending on
how much mail you have (I currently have 192MB, AFTER compression).

   A better solution is to index your mail.  I wrote a perl/MySQL package
to handle this a while back.  It has a couple of bugs that still need to
be worked out when I get a chance:

 http://www.lorentz.com/mailindex.tar.gz

--
"Restore your inalienable human rights.   Jack McKinney
 Vote Libertarian.  http://www.lp.org http://www.lorentz.com
 http://www.harrybrowne2000.org   [EMAIL PROTECTED]
  1024D/D68F2C07 4096g/38AEF076

 PGP signature


Re: Searching in multiple mailboxes

2000-10-23 Thread Benjamin Korvemaker

On Mon, Oct 23, 2000 at 08:58:06PM +0200, Wouter Verheijen wrote:
 There is something that would be nice to have in Mutt:
 Searching in multiple (or all) mailboxes.
 Imagine this scenario: You are looking for a specified text
 in every message you have. It is only possible to search one
 mailbox, so this might be handy.

See "grepm" and "grepmail"

http://privat.schlund.de/b/barsnick/sw/grepm.html
http://grepmail.sourceforge.net/
-- 
Benjamin KorvemakerDonkeys kill more people
[EMAIL PROTECTED]  annually than plane crashes.

 PGP signature


Re: Two probable RTFMs

2000-10-23 Thread Mikko Hänninen

Paul Makepeace [EMAIL PROTECTED] wrote on Fri, 20 Oct 2000:
 I'm almost certain these are but for the life of me I can't see 'em:

No problem.  The first one is a FAQ, but it might not be in the FAQ
document anyway...

   1) How I do instruct mutt to recognize me as a
  variety of alternate email addresses so that I don't
  get copied back into Cc: lists on my own 'g' replies.

Set your $alternates.  For example:

  set alternates="[EMAIL PROTECTED]|[EMAIL PROTECTED]"

For more info, see the manual on $alternates.

   2) Turn off a limited view. Right now I just pound
  in garbage to 'unlimit' it.

"Limit all", eg.

  l .

(or "l ~A", if you prefer that)

 Hope this isn't trying anyone's patience,

Not mine, at least. :-)


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Me transmitte sursum, Caledoni.  (Latin for "Beam me up, Scotty")



Re: save-hook drama

2000-10-23 Thread Mikko Hänninen

Darrin Mison [EMAIL PROTECTED] wrote on Sat, 21 Oct 2000:
 I can't figure out for the life of me why this doesn't work
 
 save-hook ~s\\fm-news =freshmeat_list

It's supposed to be:

  save-hook '~s fm-news' =freshmeat_list

Or at least, that's how I'd write it. :-)


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Conscience is what hurts when everything else feels good.



Re: Two probable RTFMs

2000-10-23 Thread Brendan Cully

On Friday, 20 October 2000 at 19:59, Paul Makepeace wrote:
 Hi,
 
 I'm almost certain these are but for the life of me I can't see 'em:
 
   1) How I do instruct mutt to recognize me as a
  variety of alternate email addresses so that I don't
  get copied back into Cc: lists on my own 'g' replies.

try setting $alternates to a regexp of all your addresses. I think that
works...

   2) Turn off a limited view. Right now I just pound
  in garbage to 'unlimit' it.

or you can use '.', which matches everything without complaining...

 PGP signature


Re: FEATURE-REQUEST: mutt looks for PGPPASS environment variable

2000-10-23 Thread Petr Hlustik

On Mon, Oct 23, 2000 at 10:25:02AM +0200, Daniel Kollar wrote:
 On Fri, Oct 20, 2000 at 02:14:09PM +0200, Thomas Roessler wrote:
  
  Did you try to change the content-type of these octet-streams to
  application/pgp?  With the more recent mutt versions, you can
  comfortably do this from within mutt.
 
 Really? I'm using mutt 1.2i .
 What version do I need to do this and where do I find information on
 this?

I'm using 1.2i - from the attachments help page:

^E  edit-type  edit attachment content type

Best,
Petr



Re: flag as important when sending

2000-10-23 Thread Bruce J.A. Nourish

On Mon, Oct 23, 2000 at 08:57:04PM +0200, Wouter Verheijen wrote:
 hi,
 
 Is it possible to mark a message as Important or Urgent, so that the
 receiver notices this.
 I know this is common for other clients (Importance: or X-Priority:).
 It is of course possible to add this manually, but shouldn't this be an
 standard mail client feature? Or this not depreciated?

I've been wanting to ask this for a while... I guess its nothing that can't
be done with my_hdr, E on the compose menu (or $edit_headers) and a few
scoring rules. But it would be nice to press (say) I on the compose menu
which would bring up a choice of (1) High (2) Normal (3) Low in the status
bar. Would anyone be willing to hack this in?

-- 
Bruce J.A. Nourish (keys - see header) [EMAIL PROTECTED]



Re: GPG 1.0.3 and mutt

2000-10-23 Thread Brian Salter-Duke

On Mon, Oct 23, 2000 at 04:21:19PM +0200, Peter J . Holzer wrote:
 On 2000-10-20 17:02:57 +0930, Brian Salter-Duke wrote:
  I recently decided to try GnuPG after using only pgp2 off and on for
  some years. It was only after I downloaded it and played with it for a
  while, that I realised that version 1.0.3 was very recent. I had got in
  right at the beginning of a new version. This new version incorporates
  RSA which I understand came out of copyright only in September.
 
 PGP 2.x also uses the IDEA algorithm which is patented in some countries
 (and therefore not included in GPG), so you will still need one plugin
 for GPG to handle 2.x-compatible PGP-messages.
 
Thanks, Peter and all the others who have replied to my original
message. However I remain confused. I realise that IDEA is missing from
1.0.4 and I would need it for pgp2 compatability. However, I am not sure
I want pgp2 compatability. I may stick with GnuPG as is. However that
raises my original question. gpg.rc uses gpg_2comp (I may have the name
wrong) and this SEEMS to presume you are using the IDEA pluggin etc. So,
does gpg.rc work for GnuPG out of the box or do you need another rc
file? Or indeed does mutt only work with GnuPG if it is made compatable
with pgp2. PGP and its mates still confuses me. There seems to be so
much incompatability these days.

Cheers, Brian.



-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: save-hook drama

2000-10-23 Thread Darrin Mison

Interestingly enough all of these work.
I don't remember where I got the syntax from.

save-hook ~t\\SECURITYPORTAL =security_portal
save-hook ~t\\science-text =tips
save-hook ~t\\science-html =tips
save-hook ~s\\H-GEN =humbug
save-hook ~s\\H-CHAT =humbug
save-hook ~s\\H-ANNOUNCE =humbug
save-hook ~t\\mutt-users =mutt-users
save-hook ~t\\lsb-discuss =lsb
save-hook ~t\\proofreaders =gnu_proofreaders
save-hook ~f\\latvian_goat_thrower =friends/andrew


As Harold Oga[EMAIL PROTECTED] once said:
 Hi,
To me, that looks to be a malformed pattern for save-hook.  Does this
 work better for you:
 
 save-hook '~s fm-news' =freshmeat_list
 
 The way you have it specified, I think it is going to look for a mail
 address containing "~s\fn-news", but I'm not sure about that.
 

--
Darrin Mison
-- 
%DCL-MEM-BAD, bad memory
VMS-F-PDGERS, pudding between the ears

 PGP signature


Re: Odd problem..??

2000-10-23 Thread Timothy Legant

On Fri, Oct 20, 2000 at 06:12:38PM -0700, Jason Helfman wrote:
 If I open up a terminal screen and type mutt, i go to $HOME/Maildir.
 If I open up a Eterm and type mutt, i go to $HOME/Maildir.
 If I open up a Xterm and tupe mutt, I go to $HOME/Maildir.
 If I use this in my Enlightenment menu:
 
 "Mutt" NULL exec "Eterm -T mutt -c red -g 77x62+105+65 -F 9x15 --cmod 0
 -v -e mutt"
 
 It takes me to /var/spool/mail/$USER.

It looks as if mutt can't find your home directory and therefore doesn't
read .muttrc (which means your spoolfile never gets set to
$HOME/Maildir). This could happen because Eterm is executing as a user
other than you. Is the setuid flag set for Eterm? It could also happen
if Eterm runs mutt as a different user.

That's just a wild guess... I don't run E or Eterm I so can't test this.

-- 
Tim Legant
[EMAIL PROTECTED]



Re: Is there a Pine-to-Mutt FAQ?

2000-10-23 Thread Luke Ravitch

On Mon, Oct 23, 2000 at 01:47:56PM -0700, Eugene Lee wrote:
 One of my friends who loves his Pine tried out Mutt and hates it,
 because Mutt doesn't have a GUI method of configuring its settings the
 way Pine does.  I can understand people that would prefer a low-powered

Unless things have really changed lately, Pine's "GUI" config method
isn't too different than editing .muttrc while section 6 of the manual
is open in another window.  Having a field next to the configuration
option isn't _really_ any easier than typing the option/command
followed by arguments (the stuff that goes in the field) on a line in
a dotfile.  Maybe the fields look/feel comforting.

I'm not trying to pick on your friend.  It's just that I don't see any
_real_ difference beyond look and feel.  Pine's config really boils
down to a list of options with space to enter values and access to
some help/descriptions.  Mutt's manual has a list of options with
descriptions.  The only difference is where the space to enter values
is located (text fields vs. dotfile).  Granted, Mutt's manual is
pretty intimidating with the sheer volume of options, but Pine isn't
exactly short on options either.

 editor like Pico versus something more sophisticated like Vi or Emacs
 because the former is just easier to use and configure, while the latter
 requires semi-programmers to be useful.

Right.  The kinds of people that are happy with Pico won't really
appreciate Mutt's advantages over other clients anyway.

-- 
Luke



mailbox list order?

2000-10-23 Thread Larry Rosenman

Is there a way (1.3.10i if it matters) to set the mailbox list order?

I.E. I want it to be reverse date sent always (I do O d when I get
into it).

I can't seem to find the right command for my .muttrc stuff.

Thanks!
-- 
Larry Rosenman  http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

 PGP signature


Re: mailbox list order?

2000-10-23 Thread Bruce DeVisser

On Sat, Oct 21, 2000 at 05:02:21PM -0500, Larry Rosenman wrote:
 Is there a way (1.3.10i if it matters) to set the mailbox list order?
 I.E. I want it to be reverse date sent always (I do O d when I get
 into it).
 
 I can't seem to find the right command for my .muttrc stuff.

I think this is it:
set sort_browser=reverse-date

-- 
- Bruce



Re: Is there a Pine-to-Mutt FAQ?

2000-10-23 Thread Suresh Ramasubramanian

Eugene Lee proclaimed on mutt-users that: 

 One of my friends who loves his Pine tried out Mutt and hates it,
 because Mutt doesn't have a GUI method of configuring its settings the
 way Pine does.  I can understand people that would prefer a low-powered

There's a web-based .muttrc generator linked from the mutt.org site.

 editor like Pico versus something more sophisticated like Vi or Emacs
 because the former is just easier to use and configure, while the latter
 requires semi-programmers to be useful.

Erm... you can use anything you want - even gnotepad (say) if you use mutt in
an xterm.  I was using pico for mutt for quite a long time till I saw the light
(Glory! Hallelujah!) and started using vim ;)  That's one thing we _have_ to
stress in the FAQ - just because vi[m] is the default editor doesn't mean that
you are stuck with it.

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
He hadn't a single redeeming vice.
-- Oscar Wilde



Re: flag as important when sending

2000-10-23 Thread Suresh Ramasubramanian

Bruce J.A. Nourish proclaimed on mutt-users that: 

 I've been wanting to ask this for a while... I guess its nothing that can't
 be done with my_hdr, E on the compose menu (or $edit_headers) and a few
 scoring rules. But it would be nice to press (say) I on the compose menu
 which would bring up a choice of (1) High (2) Normal (3) Low in the status
 bar. Would anyone be willing to hack this in?

This might be better off as an editor macro, IMHO.

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
He hadn't a single redeeming vice.
-- Oscar Wilde



Re: Odd problem..??

2000-10-23 Thread Jason Helfman

For some reason, it worked itself out...

Dunno.

On Mon, Oct 23, 2000 at 10:04:42PM -0500, Timothy Legant muttered:
| On Fri, Oct 20, 2000 at 06:12:38PM -0700, Jason Helfman wrote:
|  If I open up a terminal screen and type mutt, i go to $HOME/Maildir.
|  If I open up a Eterm and type mutt, i go to $HOME/Maildir.
|  If I open up a Xterm and tupe mutt, I go to $HOME/Maildir.
|  If I use this in my Enlightenment menu:
|  
|  "Mutt" NULL exec "Eterm -T mutt -c red -g 77x62+105+65 -F 9x15 --cmod 0
|  -v -e mutt"
|  
|  It takes me to /var/spool/mail/$USER.
| 
| It looks as if mutt can't find your home directory and therefore doesn't
| read .muttrc (which means your spoolfile never gets set to
| $HOME/Maildir). This could happen because Eterm is executing as a user
| other than you. Is the setuid flag set for Eterm? It could also happen
| if Eterm runs mutt as a different user.
| 
| That's just a wild guess... I don't run E or Eterm I so can't test this.
| 
| -- 
| Tim Legant
| [EMAIL PROTECTED]
| 

-- 
/Jason G Helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."

Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149