Re: error writing to filter (bogofilter)

Sam Varshavchik <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Christian Ebert writes:

> * Christian Ebert on Saturday, June 15, 2013 at 18:41:30 +0100
> > It seems to concern multipart only, and I'm starting to wonder
> > whether some temp file writing problem is involved.
>
> Replicable with all messages containing base64 encoded
> attachments.

In addition to the environment issues that were mentioned on the bogofilter  
list, another difference between invoking bogofilter from the command line,  
and invoking it via xfilter, is the process environment variables.

This is described more detail in the "Environment" section of the  
maildropfilter man page, but, basically, the environment variables that are
inherited by processes started by maildrop, like the xfilter command, may or  
may not include the environment variables that maildrop itself inherited –  
depending on whether maildrop itself was invoked to deliver mail by the mail  
server, or invoked from the command line; but since you appear to have a  
reproducible test case, this does not appear to be a factor. However, in all  
case maildrop resets some environment variables, and also any variables  
defined in the maildrop recipe get exported as environment variables to the  
maildrop-started process, as described in the man page.

I'll just guess that bogofilter does not decode base64-encoded content on  
the fly, but tries to save them in a temporary file, and then reads it back;  
and the temporary files locations are specified by environment variables;  
which should be defined, but are not; or even the other way around;  
bogofilter reads some environment variable that's not normally defined, and  
then uses some fallback setting, but this environment variable is set here,  
and bogofilter tries to use it.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)

iEYEABECAAYFAlG81KgACgkQx9p3GYHlUOKsGACbBVAxq44neZYG5/pVmLPVjL0M
XM0Aniv/bBXKIJDdAVVyXkJLNrPzv0sQ
=ejRw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.