Procmail + Maildir

2001-06-22 Thread Fábio Gomes

Hi folks,

Does Procmail work with Qmail maildir format?

Thx
Fábio Gomes
-- 
@_{2**2..6*6}=split//,"áiGsDDbooe  eoin m-IsvveoF Tenlmt";print
values%_,"\n"



Procmail & Maildir

1999-04-05 Thread Mark Weinem

Hi,

New incomming Mail is in $HOME/Maildir.
I want Procmail to sort the messages from $HOME/Maildir into destinated
directories.

When I used Exim I started Procmail with the following script:

 # ! /bin/sh
 ORGMAIL=/var/spool/mail/mark
 
 if cd $HOME &&
 test -s $ORGMAIL &&
 lockfile -r0 -l1024 .newmail.lock 2>/dev/null
 then
 trap "rm -f .newmail.lock" 1 2 3 13 15
 umask 077
 lockfile -l1024 -ml
 cat $ORGMAIL >>.newmail &&
 cat /dev/null >$ORGMAIL
 lockfile -mu
 formail -s procmail <.newmail &&
 rm -f .newmail
 rm -f .newmail.lock
 fi
 exit 0
 

I want to keep this but Procmail must handle maildir now.
 
Is it necessary to patch  Procmail (v3.11pre7 from Debian 2.0) ?
(What's the right way to do this: "patch procmail procmail-patch" or:
"patch -pnum 


procmail->~/Maildir

1999-05-02 Thread John Conover

Is there a way of executing procmail do ~/.procmailrc, and if email is
not rejected for a user, it is delivered into a ~/Maildir?

Thanks,

John

BTW, eg., use my standard spam filter for users that want it, but want
to fetch mail via POP3 in a Maildir.

-- 

John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA.
VOX 408.370.2688, FAX 408.379.9602, whois '!JC154'
[EMAIL PROTECTED], http://www2.inow.com/~conover/john.html



Re: Procmail + Maildir

2001-06-22 Thread Charles Cazabon

Fábio Gomes <[EMAIL PROTECTED]> wrote:
> 
> Does Procmail work with Qmail maildir format?

Newer versions of procmail have Maildir support built-in, but they don't
adhere to djb's naming convention -- you could run into problems.

You'd be better off to use maildrop, or if you must use procmail, use
"safecat" to deliver into maildirs.  See qmail.org for links.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



Re: procmail->~/Maildir

1999-05-03 Thread budney-lists-qmail

John Conover <[EMAIL PROTECTED]> writes:

> Is there a way of executing procmail do ~/.procmailrc, and if email
> is not rejected for a user, it is delivered into a ~/Maildir?
> 
> BTW, eg., use my standard spam filter for users that want it, but
> want to fetch mail via POP3 in a Maildir.

If I understand you correctly, you want mail to be pumped through
procmail--and to be delivered to a maildir if it falls through all of
your procmail filters.

The qmail way to do that is to put something like this in your
.qmail-ext file:

   |preline procmail
   ./Maildir/

To make this work, your "rejecting" recipes must return exit code 99,
telling qmail to ignore the next instruction(s). Be aware that
procmail itself has a default delivery instruction, for mails that
"fall through", and you don't want to trigger it. A recipe like this,
as your last recipe, should do the trick:

   :0
   /dev/null

On the other hand, there is an easier way (YMMV). You can use the
patched procmail which can do maildir deliveries, and make your last
recipe a maildir delivery--or set $DEFAULT appropriately in the rc
file.

If you'd rather not use a patched procmail (my preference), there is a
program which does maildir delivery of messages posted on stdin--just
what you need. It's called "safecat", and it's available at the URL:
<http://www.pobox.com/~lbudney/linux/software/safecat.html>

To use it, make your last recipe the following:

   :0w
   |safecat $HOME/Maildir/tmp $HOME/Maildir/new

Used in this way, procmail+safecat should be as safe as qmail's own
maildir delivery.

Len.

-- 
45. Being to advise or reprehend any one, consider whether it ought to
be in publick or in Private; presently, or at Some other time in what
terms to do it & in reproving Shew no Sign of Cholar but do it with all
Sweetness and Mildness.
  -- George Washington, "Rules of Civility & Decent Behaviour"



qmail+procmail+maildir

2000-05-09 Thread bobski

Hi
I have a few simple (hopefully) simple questions.
1. Is it possible to use procmail to sort mail into multiple maildirs user one user 
account?
   ie: qmail list in one maildir and mutt list in another maildir and normal mail to a 
third maildir all
   under the same user account?

2. Does anyone know of any documentation regarding the use of procmail with maildirs?

3. Is this possible using .qmail files instead? I haven't had any luck yet and I don't 
know if it's
   because all my mail is fetched from my ISP mail server or what the deal is.

Thanks

Bob Waskosky



Re: qmail+procmail+maildir

2000-05-09 Thread Ronny Haryanto

On 09-May-2000, [EMAIL PROTECTED] wrote:
> Hi I have a few simple (hopefully) simple questions.  1. Is it
> possible to use procmail to sort mail into multiple maildirs user
> one user account?  ie: qmail list in one maildir and mutt list in
> another maildir and normal mail to a third maildir all under the
> same user account?

Yes. Don't forget to 'maildirmake' each maildir first.

> 2. Does anyone know of any documentation regarding the use of
> procmail with maildirs?

Starting from version 3.14 procmail supports maildirs, so it should
have some kind of documentation. But the only significant things that
differ from mbox are that you don't need locking and you need a
forward slash ("/") at the end of a folder name.

> 3. Is this possible using .qmail files instead? I haven't had any
> luck yet and I don't know if it's because all my mail is fetched
> from my ISP mail server or what the deal is.

I would highly recommend using a filtering program such as procmail or
maildrop. For procmail simply put:
| preline procmail
in your .qmail file and create your .procmailrc as usual.

Ronny



Re: qmail+procmail+maildir

2000-05-11 Thread bobski

On Tue, May 09, 2000 at 09:19:46PM -0500, Ronny Haryanto wrote:
> On 09-May-2000, [EMAIL PROTECTED] wrote:
> > Hi I have a few simple (hopefully) simple questions.  1. Is it
> > possible to use procmail to sort mail into multiple maildirs user
> > one user account?  ie: qmail list in one maildir and mutt list in
> > another maildir and normal mail to a third maildir all under the
> > same user account?
> 
> Yes. Don't forget to 'maildirmake' each maildir first.
> 
> > 2. Does anyone know of any documentation regarding the use of
> > procmail with maildirs?
> 
> Starting from version 3.14 procmail supports maildirs, so it should
> have some kind of documentation. But the only significant things that
> differ from mbox are that you don't need locking and you need a
> forward slash ("/") at the end of a folder name.
> 
> > 3. Is this possible using .qmail files instead? I haven't had any
> > luck yet and I don't know if it's because all my mail is fetched
> > from my ISP mail server or what the deal is.
> 
> I would highly recommend using a filtering program such as procmail or
> maildrop. For procmail simply put:
> | preline procmail
> in your .qmail file and create your .procmailrc as usual.
> 
>   Ronny
> 
Upgraded from procmail 3.13.1 to 3.14 and made changes to .qmail files and
/var/qmail/rc , set MAILDIR=$HOME in .procmailrc and IT WORKS!!!

Thanks for your help.

Bob