Re: mutt + procmail + qmail

2002-09-11 Thread Sven Guckes

* Michael P. Soulier [EMAIL PROTECTED] [020911 01:58]:
 Can I see a filtering example from your .procmailrc?
 Say, to filter this mailing list?

* Johan Almqvist [EMAIL PROTECTED] [2002-09-11 05:46]:
 No, because the address subscribed to this list is johan-mutt and I have

 #cat .qmail-mutt
 ~/Maildir/.mutt/

 That's a lot better that filtering based on some header...

huh?  since when does this list get distributed via johan-mutt?

Sven



Re: mutt + procmail + qmail

2002-09-11 Thread Johan Almqvist

* Sven Guckes [EMAIL PROTECTED] [020911 13:32]:
 * Michael P. Soulier [EMAIL PROTECTED] [020911 01:58]:
  Can I see a filtering example from your .procmailrc?
  Say, to filter this mailing list?
 * Johan Almqvist [EMAIL PROTECTED] [2002-09-11 05:46]:
  No, because the address subscribed to this list is johan-mutt and I have
  #cat .qmail-mutt
  ~/Maildir/.mutt/
  That's a lot better that filtering based on some header...
 huh?  since when does this list get distributed via johan-mutt?

It doesn't. That's not what I'm saying either. What I'm saying is that the
address I have subscribed to the list is [EMAIL PROTECTED], so
list mail to me gets handled by my .qmail-mutt file. Thus, no need for
filtering.

HTC,

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/



Re: mutt + procmail + qmail

2002-09-11 Thread Peter T. Abplanalp

On Wed, Sep 11, 2002 at 10:11:22AM +1000, Iain Truskett wrote:
 :0:
 * ^Sender: owner-mutt-(dev|users)mutt.org
 apps-mutt/

the first line can actually be written as follows:

:0

the second colon tells procmail to lock an mbox file which
isn't necessary for maildir.

-- 
Peter Abplanalp
PGP: pgp.mit.edu



msg30867/pgp0.pgp
Description: PGP signature


Re: mutt + procmail + qmail

2002-09-11 Thread Peter T. Abplanalp

On Wed, Sep 11, 2002 at 01:32:19PM +0200, Sven Guckes wrote:
 * Johan Almqvist [EMAIL PROTECTED] [2002-09-11 05:46]:
  No, because the address subscribed to this list is johan-mutt and I have
 
  #cat .qmail-mutt
  ~/Maildir/.mutt/
 
  That's a lot better that filtering based on some header...
 
 huh?  since when does this list get distributed via johan-mutt?

he is talking about the qmail extension addresses.  if you
use qmail as your mta, you can create infinite extension
addresses of the form system-id-extension@domain which
correspond to delivery instruction files of the form
~/.qmail-extension.  for example, i might have an extension
address for the foobar list which is [EMAIL PROTECTED]
which corresponds to a ~/.qmail-foobar delivery instruction
file much like the one above that tells qmail to drop the
mail in my foobar maildir.

it is a handy feature of qmail.

-- 
Peter Abplanalp
PGP: pgp.mit.edu



msg30868/pgp0.pgp
Description: PGP signature


Re: mutt + procmail + qmail

2002-09-11 Thread Sven Guckes

* Peter T. Abplanalp [EMAIL PROTECTED] [2002-09-11 13:45]:
 On Wed, Sep 11, 2002 at 01:32:19PM +0200, Sven Guckes wrote:
  * Johan Almqvist [EMAIL PROTECTED] [2002-09-11 05:46]:
   No, because the address subscribed to this list is johan-mutt and I have
  
   #cat .qmail-mutt
   ~/Maildir/.mutt/
  
   That's a lot better that filtering based on some header...
 
  huh?  since when does this list get distributed via johan-mutt?

 he is talking about the qmail extension addresses.  if you use qmail
 as your mta, you can create infinite extension addresses of the form
 system-id-extension@domain which correspond to
 delivery instruction files of the form ~/.qmail-extension.

i know - but obviously i was under the impression that
qmail would only use this when the address appears in
the address lines (Cc:/To:) - but i was wrong there.

i'd have looked it up - but those qmail man pages are
not available on this system (or they moved.. whatever).

 it is a handy feature of qmail.

been using it for *years*.
(check my webpages! :-)

Sven



Re: mutt + procmail + qmail

2002-09-11 Thread Gary

On Wed, Sep 11, 2002 at 07:44:44AM -0600 or thereabouts, Peter T. Abplanalp wrote:
 On Wed, Sep 11, 2002 at 01:32:19PM +0200, Sven Guckes wrote:

qmail has totally eliminated the need for procmail on my mailserver by
using .qmail files.  Still use it after poping mail to my box, where
Mutt reads it, althought I probably will be switching to maildir on that
box too.  Mutt is getting a little slow on opening the existing mboxs..

-- 
Best regards,
Gary   

  * Johan Almqvist [EMAIL PROTECTED] [2002-09-11 05:46]:

   #cat .qmail-mutt
   ~/Maildir/.mutt/

   That's a lot better that filtering based on some header...
  
  huh?  since when does this list get distributed via johan-mutt?
 
 he is talking about the qmail extension addresses.  if you
 use qmail as your mta, you can create infinite extension
 addresses of the form system-id-extension@domain which

 which corresponds to a ~/.qmail-foobar delivery instruction
 file much like the one above that tells qmail to drop the
 mail in my foobar maildir.
 it is a handy feature of qmail.



mutt + procmail + qmail

2002-09-10 Thread Michael P. Soulier

Hey people,

I just starting using qmail with Maildir format. I'm a long-time Mutt,
Procmail and mbox user. Does anyone have an example .procmailrc file, and
.muttrc file, for working with Maildir format?

Thanks,
Mike

-- 
Michael P. Soulier [EMAIL PROTECTED], GnuPG pub key: 5BC8BE08
...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort.  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html



msg30852/pgp0.pgp
Description: PGP signature


Re: mutt + procmail + qmail

2002-09-10 Thread Johan Almqvist

* Michael P. Soulier [EMAIL PROTECTED] [020911 01:13]:
 I just starting using qmail with Maildir format. I'm a long-time Mutt,
 Procmail and mbox user. Does anyone have an example .procmailrc file, and
 .muttrc file, for working with Maildir format?


# cat ~/.qmail
|preline procmail -t ~/.procmailrc

# cat ~/.procmailrc
DEFAULT=~/Maildir/

#cat ~/.muttrc
mailboxes ~/Maildir/


This requires a version of procmail that understands Maildir and an
existing Maildir (use maildirmake). Note that procmail has a slightly
non-standard way of handling Maildirs (at least the version I'm using...)

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/



Re: mutt + procmail + qmail

2002-09-10 Thread Michael P. Soulier

On 11/09/02 Johan Almqvist did speaketh:

 # cat ~/.qmail
 |preline procmail -t ~/.procmailrc
 
 # cat ~/.procmailrc
 DEFAULT=~/Maildir/
 
 #cat ~/.muttrc
 mailboxes ~/Maildir/

I take it that your other mail folders then would be sub-folders of
~/Maildir? My sysadmin recently told me that was a bad idea. 

Can I see a filtering example from your .procmailrc? Say, to filter this
mailing list?

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED], GnuPG pub key: 5BC8BE08
...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort.  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html



msg30854/pgp0.pgp
Description: PGP signature


Re: mutt + procmail + qmail

2002-09-10 Thread Iain Truskett

* Michael P. Soulier ([EMAIL PROTECTED]) [11 Sep 2002 09:58]:
 On 11/09/02 Johan Almqvist did speaketh:

[...]
 Can I see a filtering example from your .procmailrc? Say, to filter
 this mailing list?

:0:
* ^Sender: owner-mutt-(dev|users)@mutt.org
apps-mutt/


Basically, it's just like an mbox line, only you have the slash at the
end. It's also important that you create any maildirs rather than just
assume procmail will create them.


cheers,
-- 
Iain.



Re: mutt + procmail + qmail

2002-09-10 Thread Keith R. John Warno

  - On Tue, 10.Sep.2002, 22:00EDT, Keith R. John Warno uttered:
 
 (Every dir below ~/Mail is assumed to be in maildir format; this picks
 up things like sent-mail and postponed and other fcc locations, so mutt
 winds up claiming things like 'new mail in =sent-mail' after sending a
 mail out, but this is OK for me.)
 

Hrmm well actually not for =sent-mail, which is a good thing.  But it
does alert about 'new mail' in =postponed which is not a bad thing
either. :)

Ciao,
Keith.


-- 
Isn't it time we care and lose the hate
 Understand our fears
 -- Dream Theater, Blind Faith



Re: mutt + procmail + qmail

2002-09-10 Thread Keith R. John Warno

  - On Tue, 10.Sep.2002, 19:58EDT, Michael P. Soulier uttered:
 On 11/09/02 Johan Almqvist did speaketh:
 
  # cat ~/.qmail
  |preline procmail -t ~/.procmailrc
  
  # cat ~/.procmailrc
  DEFAULT=~/Maildir/
  
  #cat ~/.muttrc
  mailboxes ~/Maildir/
 
 I take it that your other mail folders then would be sub-folders of
 ~/Maildir? My sysadmin recently told me that was a bad idea. 
 
[snip]

Smack your sysadmin.  Maildir format, that is 'extended maildir' format,
happily allows for nested maildirs.  You wind up with structure that looks
like:

foo/
foo/cur/
foo/new/
foo/tmp/
foo/.bar/
foo/.bar/cur/
foo/.bar/new/
foo/.bar/tmp/

.bar is obviously a 'sub-folder' of foo; extended-maildir-aware mail
clients should strip the dot and just show it to you as 'bar'.  mutt,
from what I've seen, doesn't do this.  It shows you verbatim: foo/.bar/,
which is fine for me.  :)

I don't use procmail but rather maildrop which knows about maildirs
(extended), along with qmail.  My ~/.qmail:

$ cat .qmail
# simple one-liner
|maildrop

I've got maildrop delivering to ~/Mail/INBOX/ by default (ie, when no
other rule is satisfied).  List mail winds up in a structure like:

~/Mail/lists/.mutt/
~/Mail/lists/.kernel/
...etc
Note that ~/Mail/lists/ is itself a maildir (although I don't use it for
receiving mail currently).

The ~/.mutt/muttrc contains:

set folder=~/Mail
set mbox_type=Maildir
set spoolfile=~/Mail/INBOX
mailboxes `mdirs`

`mdirs` is a simple shell script to find all the maildirs:
#!/bin/bash
#
exec find ~/Mail -type d -mindepth 1 \
\( -name tmp -o -name cur -o -name new \
   -prune \) \
-o \
\( -type d -mindepth 1 -printf '%p ' \)


(Every dir below ~/Mail is assumed to be in maildir format; this picks
up things like sent-mail and postponed and other fcc locations, so mutt
winds up claiming things like 'new mail in =sent-mail' after sending a
mail out, but this is OK for me.)


Anyway, good luck!  Sorry I don't have any procmail recipes. :/

Regards,
Keith.