On Wednesday, April  6 at 02:50 AM, quoth danielcm:
> 
> On Apr 5, 2005, at 9:28 AM, Kyle Wheeler wrote:
> 
> ><snip>
> >
> >What you *want* is this:
> >
> >| preline yourfilter | maildir $vpophome/$domain/$user/Maildir/
> >
> >(maildir is from the safecat package)
> >
> >However, vpopmail steadfastly refuses to set up the environment for 
> >it's
> >.qmail processing in a convenient way (or even a qmail-compatible way),
> >so what you can do is approximate it like this (all on one line):
> >
> >| preline yourfilter | maildir /path/to/vpopdomains/`echo $USER | tr 
> >A-Z
> >a-z`/`echo $EXT | tr A-Z a-z`/Maildir/
> >
> >
> 
> I don't think it needs to be that complicated, all I have is:
> | preline yourfilter | /usr/local/bin/maildir.sh  ./Maildir/
> 
> My maildir.sh file is:
> exec /usr/bin/safecat "$1"/tmp "$1"/new
> 
> works for me since the .qmail file is in the users home directory.

Really? When I check out the environment from one of those .qmail files 
(e.g. by creating a qmail file containing:

    | printenv > /tmp/env

That file contains the line:

    PWD=/var/lib/vpopmail/domains/memoryhole.net

Indicating that if I directed it to ./Maildir/ it would deliver to 
/var/lib/vpopmail/domains/memoryhole.net/Maildir/ which of course 
doesn't exist.

Just because the .qmail file is in the user's home directory doesn't 
mean it's PWD is the user's home directory. If vpopmail actually does 
deliver to /var/lib/vpopmail/domains/memoryhole.net/user/Maildir/ when I 
put ./Maildir/ into my user's .qmail file, then it's behaving 
incorrectly. The environment SHOULD be set identically to if the virtual 
user was a real user and qmail was doing the delivery.

~Kyle
-- 
I would be delighted to offer any advice I can on understanding women. When
I have some I'll let you know.
-- Jean Luc Picard

Attachment: signature.asc
Description: Digital signature

Reply via email to