qmail + Maildir + procmail

1999-06-15 Thread Anonymous

I have qmail running fine on my machine, delivering mail to
~/Maildir/new the way it should. Now I want to forward mail from my hub
to my local machine but I want the incoming mail to be filtered into
Maildir style subdirectories of ~/Maildir.

I just finished DLing and installing procmail with the necessary patches
and tested it out. Part way there ... The incoming message _was_ picked
out by procmail but a) it was dumped into a file called ~/Maildir/trash
instead of a directory ~/Maildir/trash/ and b) it was _also_ delivered
to ~/Maildir/new/.

I assume that I was supposed to take the ./Maildir/ reference out of my
.qmail when I added the |preline procmail (which would solve b) no?) but
how do I get the Maildir extensions to procmail to work?

-- 
___
Mark E DrummondRoyal Military College of Canada
[EMAIL PROTECTED]Computing Services
Linux Uber Allesperl || die

   ...there are two types of command interfaces in the world of
computing: good interfaces and user interfaces.
   - Dan Bernstein, Author of qmail

PGP Fingerprint = 503D A72D AF41 2AD1 D433 C514 98D9 9A39 B25A 2405



qmail/maildir/procmail ?

1999-11-16 Thread John P . Looney

 Has anyone setup procmail to work with qmail and maildir ? If so, are
there any resources I should look to for ideas on how to do this ?

 I'll be working from a .procmailrc that I had from my sendmail system.

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen



Re: qmail + Maildir + procmail

1999-06-16 Thread Anonymous

"Mark E. Drummond" <[EMAIL PROTECTED]> writes:

> I just finished DLing and installing procmail with the necessary
> patches and tested it out. Part way there ... The incoming message
> _was_ picked out by procmail but a) it was dumped into a file called
> ~/Maildir/trash instead of a directory ~/Maildir/trash/...

It's not clear what you want, here. Maildir delivery doesn't involve
any directory called "trash", unless you created a directory
confusingly "Maildir" which isn't one, but which contains a maildir
called "trash", having subdirectories "cur", "new", and "tmp".

What recipe did you try in your procmailrc? What is ~/Maildir/trash?
What did you desire to accomplish?

> and b) it was _also_ delivered to ~/Maildir/new/.

As you deduced, that was probably because of the "./Maildir/" line in
your .qmail file.

By the way, you can also get the job done using normal procmail, and
my "safecat" utility. The recipe in your procmailrc should look like:

:0w

| safecat $HOME/Maildir/trash/tmp $HOME/Maildir/trash/new

That assumes, of course, that ~/Maildir/trash is a maildir into which
you want your messages delivered. Otherwise, delete the text "/trash"
globally from the above example.

You can find safecat at
.

Len.

-- 
The king's heart is in the hand of the LORD, as the rivers of water:
he turneth it whithersoever he will. --Proverbs 21:1



Re: qmail + Maildir + procmail

1999-06-16 Thread Anonymous

> It's not clear what you want, here. Maildir delivery doesn't involve

I'll explain my goal in detail. We run a NIS+ environment here but my
machine (Linux box) is standalone. I make it as autonomous as possible
like running a secondary DNS server etc. No I want to move my mail off
of our hub and onto my machine.

I am running qmail 1.03 and want to use Maildir. The idea is this: My
mail gets forwarded from the hub to my local machine. procmail filters
my mail into various mail boxes (two words so I don't lead anyone to
believe I am referring to a particular format) like inbox (mail that
doesn't fit any other category), linux, mutt, qmail, security etc
(various mailing lists). When I start up mutt I want it to go straight
to the "inbox". I also want to use Maildir which means (to me) that
_each_ of the above mentioned mail boxes will be a Maildir with a cur
new and tmp subdir, like so:

~/Mail
/inbox
/cur
/new
/tmp
/linux
/cur
/new
/tmp
/security
/cur
/new
/tmp

Finally, if possible, I want deleted messages moved to a trash mail box.

Here are some of my configs:

/var/qmail/rc:
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox sh -c 'accustamp | \
cyclog -s 50 -n 10 /var/log/qmail'

~/.qmail:
|preline /usr/local/bin/procmail

~/.procmailrc:
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Mail
LOGFILE=$MAILDIR/log/log.`date +%y-%m-%d`
SHELL=/bin/sh

:0:
* ^(From|Cc|To).*mutt.*@mutt.org
mutt/

:0:
* ^(Subject).*test
test/

~/.muttrc:
set folder=~/Mail
set mbox=+inbox/
set mbox_type=Maildir
set spoolfile=~/Maildir

I have been screwing around so much now that my configs are probably all
screwed up. Right now, if I send mail to myself, it gets delivered to
~/Mail/mark/ (a Maildir) _and_ /var/spool/mail/mark. If I attempt to use
a procmail recipe like the one for a Subject of "test", it does not
work. The message still gets delivered to ~/Mail/mark/.

-- 
___
Mark E DrummondRoyal Military College of Canada
[EMAIL PROTECTED]Computing Services
Linux Uber Allesperl || die

   ...there are two types of command interfaces in the world of
computing: good interfaces and user interfaces.
   - Dan Bernstein, Author of qmail

PGP Fingerprint = 503D A72D AF41 2AD1 D433 C514 98D9 9A39 B25A 2405



Re: qmail + Maildir + procmail

1999-06-16 Thread Anonymous

More strangeness

I now have mail being forwarded to my machine from our hub. However it
is being spooled on /var/spool/mail/mark. Here is my /var/qmail/rc:

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox sh -c 'accustamp | cyclog -s 50 -n 10
/var/log/qmail'

Which would normally deliver to ~/Mailbox only my ~/.qmail:

|preline /usr/local/bin/procmail

runs it through procmail. My procmail is the Maildir capable version and
my ~/.procmailrc is (shorted for clarity):

PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/log/log.`date +%y-%m-%d`
SHELL=/bin/sh

:0:
* ^(From|Cc|To).*mutt.*@mutt.org
mutt/

So mail from the mutt list(s) should get dumped into ~/Maildir/mutt/, a
Maildir format mail box which should be created by procmail as needed
no? No joy so I created the mailbox myself and what now? here is a
listing of ~/Maildir/mutt/:

signals:~/Maildir$ ls -l mutt
total 11
drwx--   2 mark users1024 Jun 16 15:00 cur/
-rw---   1 mark users3633 Jun 16 15:03 msg.ZA4B
-rw---   1 mark users3989 Jun 16 15:10 msg.aA4B
drwx--   2 mark users1024 Jun 16 15:00 new/
drwx--   2 mark users1024 Jun 16 15:00 tmp/
signals:~/Maildir$ ls -l mutt/new/
total 0

Those 2 funny looking files are messages from the mutt mailing list,
presumably dumped there by procmail.

I am all $&@^ed up.

Mail still being spooled on /var/spool/mail/mark. Wasn't there something
about procmail delivering to there regardless of the .procmailrc? Would
I be better off just going to maildrop?

-- 
___
Mark E DrummondRoyal Military College of Canada
[EMAIL PROTECTED]Computing Services
Linux Uber Allesperl || die

   ...there are two types of command interfaces in the world of
computing: good interfaces and user interfaces.
   - Dan Bernstein, Author of qmail

PGP Fingerprint = 503D A72D AF41 2AD1 D433 C514 98D9 9A39 B25A 2405



Re: qmail + Maildir + procmail

1999-06-22 Thread Anonymous

"Mark E. Drummond" <[EMAIL PROTECTED]> wrote:
>
>I now have mail being forwarded to my machine from our hub. However it
>is being spooled on /var/spool/mail/mark. Here is my /var/qmail/rc:
>
>exec env - PATH="/var/qmail/bin:$PATH" \
>qmail-start ./Mailbox sh -c 'accustamp | cyclog -s 50 -n 10
>/var/log/qmail'
>
>Which would normally deliver to ~/Mailbox only my ~/.qmail:
>
>|preline /usr/local/bin/procmail
>
>runs it through procmail. My procmail is the Maildir capable version and
>my ~/.procmailrc is (shorted for clarity):
>
>PATH=/bin:/usr/bin:/usr/local/bin
>MAILDIR=$HOME/Maildir
>LOGFILE=$MAILDIR/log/log.`date +%y-%m-%d`
>SHELL=/bin/sh
>
>:0:
>* ^(From|Cc|To).*mutt.*@mutt.org
>mutt/

Try adding:

LOGFILE =   $MAILDIR/from
LOGABSTRACT=all
VERBOSE=on

then examine $MAILDIR/from after a delivery.

>So mail from the mutt list(s) should get dumped into ~/Maildir/mutt/, a
>Maildir format mail box which should be created by procmail as needed
>no?

I doubt it, but I don't know "the Maildir capable version" of
procmail.

>Mail still being spooled on /var/spool/mail/mark. Wasn't there something
>about procmail delivering to there regardless of the .procmailrc?

You need a catch-all recipe like:

:0:
$HOME/Mailbox

at the bottom of your .procmailrc to prevent /var/spool/mail
deliveries.

>Would I be better off just going to maildrop?

No doubt.

Also, see:

http://Web.InfoAve.Net/~dsill/lwq.html#procmail

for more qmail/procmail tips, although it's still not 100% complete.

-Dave



Re: qmail + Maildir + procmail

1999-06-22 Thread Anonymous

Dave Sill <[EMAIL PROTECTED]> wrote on Tue, 22 Jun 1999:
> You need a catch-all recipe like:
> 
> :0:
> $HOME/Mailbox
> 
> at the bottom of your .procmailrc to prevent /var/spool/mail
> deliveries.

Actually, setting

DEFAULT=$HOME/Mailbox

... should work just as well, even if there's nothing wrong with setting
a catch-all recipe.  And procmail might also be smart enough to use the
contents of the MAIL environment variable if that's been properly when
procmail is run defined, though I'm not sure about this.


-- 
// 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 /
Support bacteria -- it's the only culture some people have.



Re: qmail/maildir/procmail ?

1999-11-16 Thread Dave Sill

[EMAIL PROTECTED] wrote:

> Has anyone setup procmail to work with qmail and maildir ? If so, are
>there any resources I should look to for ideas on how to do this ?

Check out:

http://Web.InfoAve.Net/~dsill/lwq.html#safecat

-Dave



Re: qmail/maildir/procmail ?

1999-11-16 Thread John P . Looney

On Tue, Nov 16, 1999 at 09:13:42AM -0500, Dave Sill mentioned:
> > Has anyone setup procmail to work with qmail and maildir ? If so, are
> >there any resources I should look to for ideas on how to do this ?
> Check out:
> 
> http://Web.InfoAve.Net/~dsill/lwq.html#safecat

 Nice one. I also had a look at:
http://Web.InfoAve.Net/~dsill/lwq.html#procmail
 Smeg, but this is going to be an evil one to get working. Seems I have to
install the qmail-procmail error number, translation software, safecat, and
then add a line to .qmail. Oh, and procmail has to be recompiled, with a
patch so it doesn't dump temporary files into /var/spool/mail, instead of
~/Maildir. Aaaarg.

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen



Re: qmail/maildir/procmail ?

1999-11-16 Thread Giles Lean


On Tue, 16 Nov 1999 15:59:27 +  "John P . Looney" wrote:

>  Nice one. I also had a look at:
> http://Web.InfoAve.Net/~dsill/lwq.html#procmail
>  Smeg, but this is going to be an evil one to get working. Seems I have to
> install the qmail-procmail error number, translation software, safecat, and
> then add a line to .qmail. Oh, and procmail has to be recompiled, with a
> patch so it doesn't dump temporary files into /var/spool/mail, instead of
> ~/Maildir. Aaaarg.

You're wanting to use procmail, and you care about ugly??

Bemused,

Giles