Roland,

These are simple patches, but they are not nice at all.

> 
> > I am trying maildrop lookup function
> > if (lookup("yes", "Maildir/autoformat")) {
> >    xfilter aformat ....
> > }
> > 
> > But maildrop exit with error if Maildir/autopgp does not exit at all.
> > Is there a way to check the existance of the file first before lookup?

        if (fp.Open((const char *)filename, O_RDONLY) < 0)
        {
                // make file does not exist == lookup fail
                return 0;
                errbuf="Unable to open ";
                errbuf += (const char *)filename;
                errbuf += ".\n";
                errbuf += '\0';
                throw (const char *)errbuf;
        }

> 
> > Another question: I want the mail to be still delivered if 
> > "xfilter aformat" fails, instead of bouncing the mail.
> > I tried
> > exception {
> >     xfilter aformat ....
> > }
> > exit 0
> > but it does not seem to work.

                (void) filter(b); //even if filter fails, still go on
                // if (filter(b) < 0)
                //      throw "Unable to filter message.";

> 
> I also would like to have the exitcode placed into $RETURNCODE.
> 
> > What is the right way to do this?
> 
> Submit nice and clean patches :)
> 
> 
> Roland
Frank


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to