Re: multiple POP accounts?

2001-08-06 Thread Lukasz Zamel

On Sun, Aug 05, 2001 at 10:46:36PM +0200, [EMAIL PROTECTED] wrote:
> I am a newbie and probably this is a FAQ. Would you excuse me and 
> my poor english. I know Mutt is able to fetch mail from various POP
> accounts, without "fetchmail" but I don't know how modify my ".muttrc"

As far as I know mutt is able to fetch mail from one account only. This
is an optional feture. From mutt-manual:
'Note: The POP3 support is there only for convenience, and it's rather
limited.  If you need more functionality you should consider using a
specialized program, such as fetchmail'

> file to do this. I added new lines for every accont with "set pop_host
> *** set pop_port 110 set pop_pass  set pop_user *" 
> but Mutt reads mails only from last POP in the file. Can you help me?
> Thanks. Giuseppe. 

If you really don't want to use fetchmail you can use folder-hooks.

folder-hook popmail1 'set pop_host popaccount1.net; set pop_port 110;
set pop_user popuser1; set pop_pass poppass1'

Do this for all pop accounts. To fetch mail from a different account
change folder. Mutt will automatyclly change pop_host and so on.
-- 
Lukasz Zamel <[EMAIL PROTECTED]>
Reg. Linux User: #202048
PGP: http://republika.pl/lzamel/pubkey.asc
I.O.U. one brain - GOD

 PGP signature


Reformatting text using elvis/par

2001-08-06 Thread Ailbhe Leamy

Hi

I've been reformatting text using par, before editing it in vi.
Basically, I've changed my editor to a script that pipes the message
through par and then opens it in vi. The only trouble with this is that
it also reformats my signatures at the bottom of the mail.

I'd rather it didn't do this. Any ideas? Or should I just go back to
emacs -nw?

Ailbhe
Of course, I could always change to vim...

-- 
Homepage: http://ailbhe.ossifrage.net/



Re: Reformatting text using elvis/par

2001-08-06 Thread Suresh Ramasubramanian

Using a large mallet, Ailbhe Leamy whacked out:
> I've been reformatting text using par, before editing it in vi.
> Basically, I've changed my editor to a script that pipes the message
> through par and then opens it in vi. The only trouble with this is that
> it also reformats my signatures at the bottom of the mail.
 
 Try using a vi macro to append your signature on starting vi.

-- 
Suresh Ramasubramanian + Lumber Cartel India - 
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



pgp key expiring

2001-08-06 Thread Dale Morris

When I created my last pgp key, I set it to expire in 3 months. I
didn't want to have any more pgp keys laying around that I could no
longer use. But now, it appears my debian distro has found a home on
my hard drive and I'm not having to reformat :-) ..

question is: can I extend the time before this key expires, or do I
have to create a new key? How do you guys handle this sort of thing?
What's a reasonable time period for a key?

thanks
dale

 PGP signature


Re: Reformatting text using elvis/par

2001-08-06 Thread Ailbhe Leamy

On (06/08/01 18:16), Suresh Ramasubramanian wrote:

> Using a large mallet, Ailbhe Leamy whacked out:
>
> > I've been reformatting text using par, before editing it in vi.
> > Basically, I've changed my editor to a script that pipes the message
> > through par and then opens it in vi. The only trouble with this is
> > that it also reformats my signatures at the bottom of the mail.
>
>  Try using a vi macro to append your signature on starting vi.

But then I couldn't change sigs using folder- and send-hooks...

Ailbhe

-- 
Homepage: http://ailbhe.ossifrage.net/



Re: Lost mails - Help!

2001-08-06 Thread Andy Spiegl

> >  Aug  5 23:23:31 hamster sm-mta[931]: f764NVtI000931: collect: premature EOM:
> >  Error 0
> >  Aug  5 23:23:31 hamster sm-mta[931]: f764NVtI000931: collect: unexpected
> >  close on connection from localhost, sender=<[EMAIL PROTECTED]>: Error
> >  0
> 
> Your MTA settings are screwed in some manner -
Hm, but they work as mailserver for a large company network...

> or mutt is not injecting mail
> properly into the mta (set sendmail=[whatever])
I don't use this setting.  Maybe I should?  Like this:
 set sendmail="/usr/lib/sendmail -oi -oem -t"  

Thanks,
 Andy.

-- 
 Dr. Andy Spiegl, Radio Marañón, Jaén, Perú
 E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
 URL: http://spiegl.de, http://radiomaranon.org.pe
 PGP/GPG: see headers
  o  _ _ _
  --- __o   __o  /\_   _ \\o  (_)\__/o  (_)  -o)
  - _`\<,__`\<,__>(_) (_)/<_\_| \   _|/' \/   /\\
   (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o__\_v
 
 New Windows 2000 message:  Smash forehead on keyboard to continue.



Re: Reformatting text using elvis/par

2001-08-06 Thread Philip

> I've been reformatting text using par, before editing it in vi.
> Basically, I've changed my editor to a script that pipes the message
> through par and then opens it in vi. The only trouble with this is that
> it also reformats my signatures at the bottom of the mail.

I use par to reformat paragraph by paragraph.
>From .exrc/.vimrc:
" reformat paragraph with no arguments:
map ** {!}par
" reformat paragraph with arguments:
map *^V  {!}par

And PARINIT:
.login:setenv PARINIT '67rTbgqR B=.?_A_a Q=_s>|'

The keystroke "gqip" (with textwidth set to whatever you like) in
vim has more or less the same effect.


-- Phil

-- 
Philip <[EMAIL PROTECTED]>



Re: Can't use the L to replay to a list

2001-08-06 Thread Dan Christensen

Hi Morten

On man, aug 06, 2001 at 07:11:31 +0200, Morten Liebach wrote:

> > > Can you send mail to others?
> > Yes that's work just fine, but i thing i maybe fundt the problem in my postfix 
>settings so im using L to replay to your post. So hope all end up the right way. 
> 
> Looks good. :-)

Good i have almost mutt setup just missing something about line_wrap to be less than 
72 :-)
-- 
Best regards/Med venlig hilsen
Dan Christensen
icq# 2778293 
Powered by SuSE Linux 7.2 Professional



Re: Reformatting text using elvis/par

2001-08-06 Thread David Champion

On 2001.08.06, in <[EMAIL PROTECTED]>,
"Ailbhe Leamy" <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I've been reformatting text using par, before editing it in vi.
> Basically, I've changed my editor to a script that pipes the message
> through par and then opens it in vi. The only trouble with this is that
> it also reformats my signatures at the bottom of the mail.

I'm not sure exactly how you're running par, but I'd think it's possible
to add in something to set its range.

Two thoughts:

1. Invoke par not as a pipeline, but as an argument to vi.  E.g.,
   set editor="vi '+/^>/;!}par" %s
   My vi doesn't do what I'd expect here, but I hope that's a bug in
   my vi. I don't know; I'll play with this some more just because
   I'm curious.

2. Use something more complex as your editor filter. Perl or awk should
   be able to split up the incoming document nicely. I've attached an
   example. This script filters the draft message, then runs the editor
   on it, leaving no temporary files behind.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago


#!/usr/bin/perl

$new = $ARGV[0] . ".2";
open (IN, $ARGV[0]);
open (OUT, ">$new");
while () {
last if (/^>/);
print OUT $_;
}
close (OUT);
open (OUT, "|par >>$new");
while () {
last if (/^-- /);
print OUT $_;
}
close (OUT);
open (OUT, ">>$new");
print OUT $_;
while () {
print OUT $_;
}
close (OUT);
close (IN);
rename($new, $ARGV[0]);
system("vi \"$ARGV[0]\"");
exit ($?);



Re: Can't use the L to replay to a list

2001-08-06 Thread Udo Müller

Hi Dan,

On Mon, 06 Aug 2001 at  8:57 +0200, Dan Christensen wrote:
> On man, aug 06, 2001 at 07:11:31 +0200, Morten Liebach wrote:
> 
> Good i have almost mutt setup just missing something about line_wrap to be less than 
>72 :-)

but that's no problem of mutt. It's one of your editor :-)

cu Udo



Re: Automatic Generation of Sender-Adress?

2001-08-06 Thread Stefan Frank

At Sun, Aug 05 2001 [22:33 -0400], Kyle Knack aroused my curiosity with:
> Actually, to be very specific, I had my "From:" set in a my_hdr line,
> but yes, that's been commented out.  The only other thing in my configs
> containing the word "from" is 'set envelop_from', which doesn't seem to
> affect it since I turned that off and tried again =(  If anyone out
> there wants to take a look at my configs, I'd be glad to pass them
> along.

Hello Kyle,
send me your configs and I will have a look at them.

> On a side note, is it possible procmail is affecting this in
> anyway ?  I'm not doing any header rewriting, just the normail mailbox
> filtering and the such.  Thanks!

I don't think so. I use procmail only for mail filtering, too.

Tschoe,
Steff




Re: Lost mails - Help!

2001-08-06 Thread Suresh Ramasubramanian

Andy Spiegl wrote:
> > Your MTA settings are screwed in some manner -
> Hm, but they work as mailserver for a large company network...
 
 In which case mutt is not calling sendmail properly

> > or mutt is not injecting mail
> > properly into the mta (set sendmail=[whatever])
> I don't use this setting.  Maybe I should?  Like this:
>  set sendmail="/usr/lib/sendmail -oi -oem -t"  
 
 Does /usr/lib/sendmail exist _and_ point to the right sendmail binary?

-- 
Suresh Ramasubramanian + Lumber Cartel India - 
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: Can't use the L to replay to a list

2001-08-06 Thread Dan Christensen

On man, aug 06, 2001 at 07:38:28 +0200, Udo Müller wrote:
> Hi Dan,
> 
> On Mon, 06 Aug 2001 at  8:57 +0200, Dan Christensen wrote:
> > On man, aug 06, 2001 at 07:11:31 +0200, Morten Liebach wrote:
> > 
> > Good i have almost mutt setup just missing something about line_wrap to be less 
>than 72 :-)
> 
> but that's no problem of mutt. It's one of your editor :-)
> 
> cu Udo
Well thanks for stering my in the way,
what is the right number to use in
Line_wrap i have foundt the way to set
the textwidth in .vimrc 

-- 
Best regards/Med venlig hilsen
Dan Christensen
icq# 2778293 
Powered by SuSE Linux 7.2 Professional



Converting from mbox -> Maildir/

2001-08-06 Thread Jean-Sebastien Morisset

I've been using mutt v1.2.5 in mbox mode for a while now (500MB for
~/Mail), but for compatibility reasons, I have to start using Maildir.
Does anyone know how I can convert all my mbox directories and files to
the Maildir format? I have quite a few directories, sub-directories, etc.

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
Personal Homepage ; UNIX, Internet, 
Homebrewing, Cigars, PCS, PalmOS, CP2020 and other Fun Stuff...
This is Linux Country. On a quiet night you can hear Windows NT reboot!



Re: Converting from mbox -> Maildir/

2001-08-06 Thread Nelson D. Guerrero

* On Mon Aug 06, Jean-Sebastien Morisset wrote in [mutt-users]: 
-> I've been using mutt v1.2.5 in mbox mode for a while now (500MB for
-> ~/Mail), but for compatibility reasons, I have to start using Maildir.
-> Does anyone know how I can convert all my mbox directories and files to
-> the Maildir format? I have quite a few directories, sub-directories, etc.
-> 
-> Thanks,
-> js.
-> -- 
-> Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
-> Personal Homepage ; UNIX, Internet, 
-> Homebrewing, Cigars, PCS, PalmOS, CP2020 and other Fun Stuff...
-> This is Linux Country. On a quiet night you can hear Windows NT reboot!
->

I made this change a couple of weeks ago using: 

http://www.qmail.org/mbox2maildir



--
Nelson D. Guerrero



Re: Reformatting text using elvis/par

2001-08-06 Thread Ailbhe Leamy

On (06/08/01 12:05), David Champion wrote:

> On 2001.08.06, in <[EMAIL PROTECTED]>, "Ailbhe
> Leamy" <[EMAIL PROTECTED]> wrote:

> > I've been reformatting text using par, before editing it in vi.
> > Basically, I've changed my editor to a script that pipes the message
> > through par and then opens it in vi. The only trouble with this is
> > that it also reformats my signatures at the bottom of the mail.
>
> I'm not sure exactly how you're running par, but I'd think it's
> possible to add in something to set its range.

All I could find was "protected characters", which one can set in the 
environment. But I've obviously done it wrong, as it's not working.

> editor="vi '+/^>/;!}par" %s My vi doesn't do what I'd expect here, but

This seems to open and close the file without altering it; "Abort
unmodified message?". I tried it as editor="vi '+/^>/;!}par'" but it
didn't quite work then either... At least, it didn't seem to reformat
anything, though it was quite good at leaving the sig where it was.

> 2. Use something more complex as your editor filter. Perl or awk
> should be able to split up the incoming document nicely. I've attached
> an example. This script filters the draft message, then runs the
> editor on it, leaving no temporary files behind.

Again, this seemed to close the file without altering it, giving me
"Abort unmodified message?" as before.

Hum.

Ailbhe

-- 
Homepage: http://ailbhe.ossifrage.net/



Threading question -- index "*" char

2001-08-06 Thread Jonathan Irving

Heya

I can't find any information in the mutt manual about the meaning
of the "*" character, when it appears in the child message
subject lines in the index.  Can anyone tell me what it
signifies?

I have threading enabled and ascii_chars set (although this
character appears as a "*" in either case).

TIA

cheers
j

-- 
| ECHELON Fodder | recovered mailbomb EuroFed DNR 2.3 Oz.|
|| Leitrim   |
++---+



Re: Threading question -- index "*" char

2001-08-06 Thread Ethan Blanton

Jonathan Irving spake unto us the following wisdom:
> I can't find any information in the mutt manual about the meaning
> of the "*" character, when it appears in the child message
> subject lines in the index.  Can anyone tell me what it
> signifies?

It indicates that the denoted message is "subject" threaded, and not
*really* threaded (i.e. it either has no In-Reply-To: etc. headers or
they reference a message not in this box).  Mutt made an educated
guess about what thread it belonged in and stuck it there.

Note that this is *all* the threading many (lame) mailreaders do.  ;-)
Ethan

-- 
If I've told you once, I've told you once
And once is all that you needed.
-- The Refreshments, "Carefree"

 PGP signature


Re: Threading question -- index "*" char

2001-08-06 Thread Justin R. Miller

Thus spake Jonathan Irving ([EMAIL PROTECTED]):

> I can't find any information in the mutt manual about the meaning of
> the "*" character, when it appears in the child message subject lines
> in the index.  Can anyone tell me what it signifies?

I believe it means that the thread was implied, mainly because it was
done by subject and not by reference headers.  I also believe that you
can turn that off (for those lists that have a lot of people posting
incorrectly).  

Which brings me to a question... what does the '&' represent in the same
position?  

-Justin
-- 
[ ] -- Justin R. Miller - [EMAIL PROTECTED] -- [ ]
[ ] -- see full headers for PGP key information -- [ ]
[ ] -- http://solidlinux.com/~justin/pubkey.asc -- [ ]

 PGP signature


Re: Threading question -- index "*" char

2001-08-06 Thread Ethan Blanton

Justin R. Miller spake unto us the following wisdom:
> > I can't find any information in the mutt manual about the meaning of
> > the "*" character, when it appears in the child message subject lines
> > in the index.  Can anyone tell me what it signifies?
> 
> I believe it means that the thread was implied, mainly because it was
> done by subject and not by reference headers.  I also believe that you
> can turn that off (for those lists that have a lot of people posting
> incorrectly).  
> 
> Which brings me to a question... what does the '&' represent in the same
> position?  

It generally seems to me that it means you have limited your message
list, and there are hidden messages represented by that &.
Ethan

-- 
If I've told you once, I've told you once
And once is all that you needed.
-- The Refreshments, "Carefree"

 PGP signature


mailing list improvement

2001-08-06 Thread Mike Erickson

Hello,

One of the (very) few things that has bugged me about mutt is the way it
handles mailing lists. I join/leave too many mailing lists to maintain
my .muttrc as well as I should. A couple days ago, the thought occured
to me that mailing lists (subscribe, list) should be in a seperate file.

All that would be necessary is a maillist_file setting in my .muttrc
just like alias_file, and add a command to add addresses to it. Although
it'd be a nice bonus, it's not even necessary to autoparse the addresses
out of an email. Just being able to maintain that list from within mutt
would be good enough.

Has anyone implemented this around mutt, or are there any plans to
incorporate a similar feature anytime soon?

Thanks,

me (1.2.5i)

ps: I've sucessfully convinced 2 of my friends to drop PINE and switch
to mutt. Now all 3 of us are mutt evangelists. :)



Re: Converting from mbox -> Maildir/

2001-08-06 Thread Kyle Knack

If you're using multiple Maildirs, such as with procmail, you also may
want to do 'cat mbox|formail -i|procmail' after you have updated your
.procmailrc to filter to the new Maildirs.  This is how I did mine, and
it worked fine.  It also retains your mbox completely intact just in
case something goes wrong ;)

Kyle

* Nelson D. Guerrero <[EMAIL PROTECTED]> [010806 16:19]:
>Date: Mon, 6 Aug 2001 16:15:01 -0400
>From: "Nelson D. Guerrero" <[EMAIL PROTECTED]>
>To: Mutt Users <[EMAIL PROTECTED]>
>Subject: Re: Converting from mbox -> Maildir/
>User-Agent: Mutt/1.3.20i
>
>* On Mon Aug 06, Jean-Sebastien Morisset wrote in [mutt-users]: 
>-> I've been using mutt v1.2.5 in mbox mode for a while now (500MB for
>-> ~/Mail), but for compatibility reasons, I have to start using Maildir.
>-> Does anyone know how I can convert all my mbox directories and files to
>-> the Maildir format? I have quite a few directories, sub-directories, etc.
>-> 
>-> Thanks,
>-> js.
>-> -- 
>-> Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
>-> Personal Homepage ; UNIX, Internet, 
>-> Homebrewing, Cigars, PCS, PalmOS, CP2020 and other Fun Stuff...
>-> This is Linux Country. On a quiet night you can hear Windows NT reboot!
>->
>
>I made this change a couple of weeks ago using: 
>
>http://www.qmail.org/mbox2maildir
>
>
>
>--
>Nelson D. Guerrero
>

-- 
Kyle Knack
([EMAIL PROTECTED])



Re: pgp key expiring

2001-08-06 Thread Kyle Knack

Dale,
 From the GNU Privacy Handbook:
http://www.gnupg.org/gph/en/manual.html#AEN329
Since a lot of this is fresh in my head from recently setting up PGP,
most of the texts I consulted tended to suggest your PGP key for your
primary e-mail address should be non-expiring.  Unless you know this
e-mail is going away shortly, I don't see a need to have a limited key
life.  One of the examples given of a good use of expiration is to sign
items distributed at a conference that has a limited run time - ie: a
week long event.  You can always issue a revocation if need be as well.
Feel free to correct me if I'm way off tho ;)


Kyle

* Dale Morris <[EMAIL PROTECTED]> [010806 10:13]:
>Date: Mon, 6 Aug 2001 07:10:35 -0700
>From: Dale Morris <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: pgp key expiring
>User-Agent: Mutt/1.3.18i
>
>When I created my last pgp key, I set it to expire in 3 months. I
>didn't want to have any more pgp keys laying around that I could no
>longer use. But now, it appears my debian distro has found a home on
>my hard drive and I'm not having to reformat :-) ..
>
>question is: can I extend the time before this key expires, or do I
>have to create a new key? How do you guys handle this sort of thing?
>What's a reasonable time period for a key?
>
>thanks
>dale



-- 
Kyle Knack
([EMAIL PROTECTED])

 PGP signature


Re: mailing list improvement

2001-08-06 Thread David Champion

On 2001.08.06, in <[EMAIL PROTECTED]>,
"Mike Erickson" <[EMAIL PROTECTED]> wrote:
> 
> All that would be necessary is a maillist_file setting in my .muttrc
> just like alias_file, and add a command to add addresses to it. Although
> it'd be a nice bonus, it's not even necessary to autoparse the addresses
> out of an email. Just being able to maintain that list from within mutt
> would be good enough.

You can have the first part of this, of course, by adding
source ~/.mutt/lists
or somesuch to your .muttrc file.  I have .muttrc functionalities split
out into several such files, all sourced from .muttrc.

The rest can be tricky; there's no sure-shot way to determine which
address from the header (if any) is a mailing list address. For every
rule you can make up, some list (or list manager) does it differently.

Here's a possibility, though. I'm in a perl-thwacking mood today, I
guess. Save this attachment in your path as "addlist", and try executing
it via macro something like this:

macro index \Co "addlist ~/.mutt/lists" "Scan a message for 
mailing lists to add"
macro pager \Co "addlist ~/.mutt/lists" "Scan a message for 
mailing lists to add"

The argument to addlist should be the file you store mutt's "lists" and
"subscribe" lines in.

This program will use formail to look for likely list names in the
message you're viewing or that's highlighted in the index. It will check
for what list patterns already are defined in your lists file, and if
any addresses it discovers in the message are not matched by a lists or
subscribe command, it will ask you whether it should add such a line to
the lists file, and then do it.

No particular reason for ^O except that it was available in my
configuration.  No warranty, use at your own risk, &c.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago


#!/usr/bin/perl

require "ctime.pl";

if ($#ARGV != 0) {
print STDERR "usage: $0 /path/to/lists/file\n";
exit (1);
}

# Remember how to clean up the terminal
$sane = `stty -g ) {
chomp;
s/^ *//;
s/ *$//;
s/.*<([^>]*)>.*/$1/;
s/-(admin|owner|request)\@/\@/;
s/^owner-//;
s/\./\@/ unless (/\@/);
$uniq{$_} = $_;
}
close (FORMAIL);

# Check extant lists file, and discover addresses already in it.
open (LISTS, $ARGV[0]);
while () {
chomp;
s/^\s+//;
next unless /^(lists|subscribe)/;
s/#.*//;
s/\s+$//;
s/.*(lists|subscribe)\s*//;
map { $already{$_} = $_ } split(' ', $_);
}
close (LISTS);

# Exclude matching addresses from new list.
for $addr (keys %uniq) {
for $exist (keys %already) {
delete $uniq{$addr} if ($addr =~ /$exist/);
}
}

# Go into raw mode for the prompts.
`stty raw  0) {
open (LISTS, ">> $ARGV[0]");
$date = &ctime(time);
chomp $date;
$s = "s" if ($n > 1);
print LISTS "# $n list$s added by $0 at $date\n";
map {
print LISTS "subscribe $_\n";
} sort keys %uniq;
print LISTS "\n";
close (LISTS);
}

print "\n";
print "$n lists added to $ARGV[0].\n";
print "\n";
exit (0);



Re: Can't use the L to replay to a list

2001-08-06 Thread Suresh Ramasubramanian

Dan Christensen [mutt-users] <06/08/01 20:39 +0200>: 
> Well thanks for stering my in the way,
> what is the right number to use in
> Line_wrap i have foundt the way to set
> the textwidth in .vimrc 
 
 Keep it to 72 or so.

-- 
Suresh Ramasubramanian + Lumber Cartel India - 
mallet @ cluestick.org + Wallopus Malletus Indigenensis