Procmail and Maildir?

1999-04-28 Thread Andy Walden


Is there anyway to fudge procmail into writing things to a Maildir? I
would think that just giving each message a different name based on some
variable that could be captured would work. Is anyone doing anything like
this? Thanks, andy


--
---
Andy WaldenWork Email: [EMAIL PROTECTED]
Network Administrator, Pers Email: [EMAIL PROTECTED]
MTCO CommunicationsPhone: (800) 859-6826
  " Reality is just Chaos with better lighting. "





Re: Procmail and Maildir?

1999-04-28 Thread Chris Johnson

On Wed, Apr 28, 1999 at 09:23:47AM -0500, Andy Walden wrote:
> 
> Is there anyway to fudge procmail into writing things to a Maildir? I
> would think that just giving each message a different name based on some
> variable that could be captured would work. Is anyone doing anything like
> this? Thanks, andy

There are some patches available to make procmail deliver to maildirs. Try
http://www.qcc.sk.ca/~bguenter/distrib/procmail-maildir/

A better choice might be to use maildrop instead of procmail:
http://www.flounder.net/~mrsam/maildrop/

Maildrop knows about Maildir natively, and is superior to procmail in a lot of
ways.

Chris



Re: Procmail and Maildir?

1999-04-28 Thread Andy Walden


> On Wed, Apr 28, 1999 at 09:23:47AM -0500, Andy Walden wrote:
> > 
> > Is there anyway to fudge procmail into writing things to a Maildir? I
> > would think that just giving each message a different name based on some
> > variable that could be captured would work. Is anyone doing anything like
> > this? Thanks, andy
> 
> There are some patches available to make procmail deliver to maildirs. Try
> http://www.qcc.sk.ca/~bguenter/distrib/procmail-maildir/

I grabbed this and compiled it up, works great. Thanks.

andy



Re: Procmail and Maildir?

1999-04-28 Thread Rogerio Brito

On Apr 28 1999, Andy Walden wrote:
> 
> Is there anyway to fudge procmail into writing things to a Maildir? I
> would think that just giving each message a different name based on some
> variable that could be captured would work. Is anyone doing anything like
> this? Thanks, andy

I use basically two ways:

1 - get a patched version of procmail with support for
Maildir;

2 - let's say your username is user and that you want to write
your messages to the ~/list Maildir. Then, forward each message (that
you'd like to write in the maildir) to user-list and let qmail do the
rest of the work, putting ./list/ in the file ~user/.qmail-list.


Hope this helps, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
  (still an) Ugrad. Comp. Science student - "Windows? Linux and X!"
 Nectar homepage: http://www.linux.ime.usp.br/~rbrito/opeth/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Re: Procmail and Maildir?

1999-04-28 Thread budney-lists-qmail

Chris Johnson <[EMAIL PROTECTED]> writes:

> On Wed, Apr 28, 1999 at 09:23:47AM -0500, Andy Walden wrote:
> > 
> > Is there anyway to fudge procmail into writing things to a
> > Maildir?
> 
> There are some patches available to make procmail deliver to
> maildirs.

If you like procmail, and don't want to patch it, then I recommend
safecat. You can download it at my web page:
.

Safecat takes stdin and writes it to a file in a Maildir, using the
same algorithm as qmail. You can invoke it from procmail (patched or
not) with a rule like:

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

With the 'w' flag, above, procmail+safecat should be as reliable as
qmail itself.


~~~
Len Budney |  There are many good reasons to ignore
Maya Design Group  |  this cipher...So why bother with 
[EMAIL PROTECTED]|  nitpicks about the code style?   
   |  -- Prof. Dan Bernstein
~~~



Procmail and maildir format

2000-09-30 Thread Subba Rao

I am in the process of moving from maildrop to procmail. The MTA on my
system is Qmail, therfore I chose to use Maildir format for my mail.
Procmail has been compiled to point to my spool at $HOME/Maildir

The fetchmailrc is invoking procmail fine, but it does not write to the
$HOME/Maildir/new directory. Instead it is dropping the mail in the literal
$HOME/Maildir/ directory. The LOGFILE too is written to $HOME/Maildir/ 
directory.

(0)subb3@caesar:~ => ll Maildir
total 105
drwx--   5 subb3users1024 Sep 30 17:42 ./
drwx--x--x  36 subb3users5120 Sep 30 17:42 ../
drwx--   2 subb3users   54272 Sep 30 14:11 cur/
-rw---   1 subb3users3364 Sep 30 17:42 msg.V9x
-rw---   1 subb3users2966 Sep 30 17:42 msg.W9x
-rw---   1 subb3users3917 Sep 30 17:42 msg.X9x
-rw---   1 subb3users1956 Sep 30 17:42 msg.Y9x
drwx--   2 subb3users   28672 Sep 30 17:40 new/
-rw---   1 subb3users1842 Sep 30 17:42 procmail.log
drwx--   2 subb3users1024 Sep 30 17:40 tmp/
(0)subb3@caesar:~ => 

I suppose, I could change the drop location specifically to the "new" directory.
Then, the syntax of the mail file is different.

Procmail delivered file has -  msg.V9x
Maildrop delivered file has -  970384606.32149_0.myhost,\=3331

How can I make Procmail deliver mail in maildir format? The version of
procmail on my system is v3.15

Procmail variables are as follows,

PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR
LOGFILE=procmail.log
LOCKFILE=$HOME/.lockmail
VERBOSE=yes

Thanks for any pointers or info.

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/



Re: Procmail and maildir format

2000-09-30 Thread Charles Cazabon

Subba Rao <[EMAIL PROTECTED]> wrote:
> I am in the process of moving from maildrop to procmail. The MTA on my
> system is Qmail, therfore I chose to use Maildir format for my mail.
> Procmail has been compiled to point to my spool at $HOME/Maildir
[...] 
> The fetchmailrc is invoking procmail fine, but it does not write to the
> $HOME/Maildir/new directory. Instead it is dropping the mail in the literal
> $HOME/Maildir/ directory. The LOGFILE too is written to $HOME/Maildir/ 
> directory.
[...] 
> Procmail variables are as follows,
> 
> PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
> MAILDIR=$HOME/Maildir

The MAILDIR variable doesn't mean q qmail-style Maildir.  Instead, it's more
lie a chroot, which is what you're seeing.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: Procmail and maildir format

2000-09-30 Thread Timothy Legant

On Sat, Sep 30, 2000 at 06:05:56PM +, Subba Rao wrote:
> I am in the process of moving from maildrop to procmail. The MTA on my
> system is Qmail, therfore I chose to use Maildir format for my mail.
> Procmail has been compiled to point to my spool at $HOME/Maildir
> 
> The fetchmailrc is invoking procmail fine, but it does not write to the
> $HOME/Maildir/new directory. Instead it is dropping the mail in the literal
> $HOME/Maildir/ directory. The LOGFILE too is written to $HOME/Maildir/ 
> directory.

[snip...]

> How can I make Procmail deliver mail in maildir format? The version of
> procmail on my system is v3.15

You must specify a '/' at the end of the name of the maildir to alert
procmail that your desired delivery mailbox is, in fact, a maildir.

For example, my .procmailrc includes the following recipe to process
messages to this list:

:0
* ^TO_qmail
Qmail/

Qmail is the name of the maildir in MAILDIR ($HOME/Mail, in my case).
Procmail automatically delivers to the new/ directory within the
specified mailbox.

> Procmail variables are as follows,
> 
> PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
> MAILDIR=$HOME/Maildir
> DEFAULT=$MAILDIR
> LOGFILE=procmail.log
> LOCKFILE=$HOME/.lockmail
> VERBOSE=yes

You probably will need to change DEFAULT to say DEFAULT=$MAILDIR/ if you
plan on some mail falling off the end of your processing and getting
delivered to the default drop.

> Thanks for any pointers or info.

Hope this helped.

> Subba Rao
> [EMAIL PROTECTED]
> http://pws.prserv.net/truemax/

Tim
-- 
Timothy Legant
[EMAIL PROTECTED]



Re: Procmail and maildir format

2000-09-30 Thread Chris K. Young

Quoted from Subba Rao:
>  The MTA on my
> system is Qmail, therfore I chose to use Maildir format for my mail.

I've never heard of an MTA called Qmail. Perhaps you meant qmail?
(This distinction is noted in Dave Sill's ``life with qmail'', which
every qmail user is advised to read.)

> The fetchmailrc is invoking procmail fine, but it does not write to the
> $HOME/Maildir/new directory. Instead it is dropping the mail in the literal
> $HOME/Maildir/ directory. The LOGFILE too is written to $HOME/Maildir/ 
> directory.
[...]
> MAILDIR=$HOME/Maildir
> DEFAULT=$MAILDIR

As mentioned by someone else, MAILDIR in procmail actually specifies
the default directory to use when a relative (not starting with a
slash) filename is given as a folder.

You must, nonetheless, end the folder name with a slash to tell
procmail that you're delivering to a maildir.

Try ``DEFAULT=./'', if you have ``MAILDIR=$HOME/Maildir'' as you have.
Not tested, but should work.

Hope it helps,
---Chris K.
-- 
 Chris, the Young One |_ If you can't afford a backup system, you can't 
  Auckland, New Zealand |_ afford to have important data on your computer. 
http://cloud9.hedgee.com/ |_ ---Tracy R. Reed