Re: error writing to filter (bogofilter)

Matthias Andree <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


(now moving to the maildrop list)


Christian,

can you send me the dtruss files you sent to David, off-list?  They are
stripped from the bogofilter lists, so I don't have them, and I would
like to have a look at them.


Sam,

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


This is from the bogofilter list archives:

1. David's test setup:

http://www.bogofilter.org/pipermail/bogofilter/2013-June/009970.html

I suppose that David had an additional pipe symbol in his bogofilter.sh
here, and personally, I would replace $* by "$@" to retain word
separators and avoid a second word-splitting phase on the shell:

#### BEGIN bogofilter.sh ####
tee /tmp/stdin.out | bogofilter $* -x amlt 2> /tmp/stderr.out \
| tee /tmp/stdout.out
#### END bogofilter.sh ####


2. resulting sizes on David's Linux computer in
http://www.bogofilter.org/pipermail/bogofilter/2013-June/009971.html
showing the test message to be > 320 kB.

3. Christian's resulting stdin/out/err.out sizes on MacOS X, showing
bogofilter's stdin being exactly 40960 bytes:
http://www.bogofilter.org/pipermail/bogofilter/2013-June/009972.html


4. David's conclusion at
http://www.bogofilter.org/pipermail/bogofilter/2013-June/009973.html
"Since 40k is far short of the 333,309 bytes in the problem message, I
conclude this is a MacOS specific problem -- possibly a maildrop issue,
but more likely a pipe issue. [...]"


The thread index is at
http://www.bogofilter.org/pipermail/bogofilter/2013-June/thread.html
under the same subject.

Best regards
Matthias Andree
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlHCq0wACgkQvmGDOQUufZWBuACfdH8psHu3ITAp+CqwQxKmUAxH
QkYAoMUfN7SSLH5gbtcazabOKXmTsynW
=CmPr
-----END PGP SIGNATURE-----

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

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
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.