Re: error writing to filter (bogofilter)

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

> * Sam Varshavchik on Thursday, June 20, 2013 at 07:01:45 -0400
> > Matthias Andree writes:
> >> we appear to see that maildrop-on-new-MacOS does not get all data
> >> through xfilter.  David Relson traced in- and outputs of bogofilter, and
> >> it looks as though the stdin that bogofilter is getting is truncated at
> >> exactly 40 kBytes.  Hints as to the problem below.
> >>
> >> Is there a way to log more details when writing to the xfilter
> >> socketpair or pipe (whatever it's using, I haven't read your code),
> >> especially like name, decoded errno, and thereabouts?
> >> (I hope I see more in dtruss output.)
> >
> > Nope, the loop that writes the message to the pipe does not do any
> > logging of its own. If write() returns an error, and it's not EINTR,
> > then you get "maildrop: error writing to filter." It's fairly simple.
>
> My layman's summary:
>
> 1) Not related to bogofilter, can be replicated with this minimal
> config:
>
> xfilter "/bin/cat"
> to "$DEFAULT"
>
> 2) Happens with any kind of message > 40kb
>
> I suspect an issue regarding temp files and/or with clang and/or
> header files, but have C or C++ experience whatsoever.

I'm inclined to agree, except that it's probably has to do with the behavior  
of the select(3) system call.

You need a Mac-OS-based developer here to investigate what's going on,  
there. This should be trivially fixable, just need someone on Mac-OS to roll  
their sleeves up, and start digging.

------------------------------------------------------------------------------
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)

iEYEABECAAYFAlHUFKAACgkQx9p3GYHlUOLsSwCfbtIYMtwUluBPlCgxz5UoobLD
FkwAnRpV9SBXLgLCTYC8JLfW5SHW1MH5
=ayi+
-----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.