Page 1 of 1

Claws Mail -- can't run bogofilter SOLVED

Posted: Fri 15 May 2020, 00:21
by Subito Piano
Hi all --

I just switched from Sylpheed to Claws-Mail. I love being able to easily utilize bogofilter, but I'm often getting the error message

Code: Select all

The Bogofilter plugin couldn't filter a message.  The command 'bogofilter -T -b' couldn't be run.
I couldn't find any logs on my computer nor any relevant info on the 'net. Does anyone have thoughts on this?

Posted: Fri 15 May 2020, 18:33
by bigpup
Nothing here helps?
https://bogofilter.sourceforge.io/
Seems to be a lot of good info, in the FAQ, on how to actually use this.

Posted: Fri 15 May 2020, 20:57
by Subito Piano
Yeah, I saw that before I submitted this, so I checked again. I think part of the issue is that the bogofilter plugin is somehow embedded into Claws-Mail in a way that one can't manipulate it. The command "bogofilter -h" results is the message "bogofilter: command not found." I searched through my entire computer (i.e., system and personal files) and there was not a single executable called bogofilter. Searching through the Claws-Mail folders didn't yield anything helpful.

Plus, I found what the "-T" and "-b" options are for, but that doesn't help, because (not to be redundant here) I can't directly run a bogofilter command, only through Claws-Mail; and if I could run it, that wouldn't help b/c it's already try to run those two commands but cannot, due to something in the emails. That's the issue: what in the emails is causing that?

I recall seeing something earlier about illegal characters tripping up bogofilter. Maybe it's a unicode character. (I've seen THAT mess up an email before, but that was through a paid commercial mass-communication program, not through simple emailing.) Maybe if I received a single email that caused that message to appear I could look through it....IDK if it would be anything I'd notice though.

So -- still in the dark. It happens regularly but not all the time. I might disable bogo and try SpamAssassin, it's not like I get hundreds of emails each day so that my system would bog down....

Posted: Sat 16 May 2020, 02:03
by Semme
Was it claws-mail-bogofilter you installed and does "bogofilter.so" reside in /usr/lib/claws-mail/plugins? I'm under the impression the bogofilter.so library is used solely by Claws Mail itself. Maybe follow the link I supplied and have it process a few emails before deciding whether it's doing what it's supposed to.

Posted: Sat 16 May 2020, 02:09
by Subito Piano
Yes, I installed claws-mail-bogofilter_3.13.2 via PPM, and bogofilter.so is located in /usr/lib/claws-mail/plugins.

I'm not saying it doesn't work, I believe it is working -- but occasionally it can't process an email for some reason, IDK why....

[EDIT: I tried sending myself a GTUBE email (spam test email) but it didn't even come through. Probably, it was detected by my ISP/email service and trashed before getting near my inbox.]

Posted: Sat 16 May 2020, 05:38
by bigpup

Posted: Sat 16 May 2020, 12:48
by Subito Piano
Thanks, bigpup. I saw that as well. There doesn't seem to be a lot of documentation, not for its integration in Claws-Mail, anyway. :?

Posted: Sat 16 May 2020, 16:45
by bigpup
I am wondering if what you got from PPM is really what you needed for bogofilter.

I know it said for Claws-Mail, but the Claws-Mail help page says to actually get bogofilter from here:
https://www.bogofilter.org/

That PPM bogofilter is probably compiled for Ubuntu and may not be compatible for Puppy Linux. At best, Puppy Linux could be missing a needed dependency.

Could check bogofilter in Check Dependencies Installed Pkg program.

Posted: Sat 16 May 2020, 17:14
by Subito Piano
Good thought. Fixing my son's brakes today, I'll look into it and post back. Thanks!

Posted: Sun 17 May 2020, 03:34
by Subito Piano
First, i checked, no missing dependencies.

Okay -- so reading through the Claws plugin page, under bogofilter it states:
Enables the scanning of incoming mail received from a POP, IMAP, or LOCAL account using Bogofilter. It can optionally delete mail identified as spam or save it to a designated folder. Bogofilter is a pure Bayesian filter, therefore it has better speed performance than SpamAssassin but might catch less spam. Bogofilter is available from http://bogofilter.sourceforge.net/
Wait a second -- why is it telling me bogofilter is AVAILABLE somewhere?? OH! I get it!! I'm supposed to download bogofilter separately, the plugin doesn't include bogofilter -- or does it? I checked PPM -- yes, I downloaded bogofilter, probably it downloaded with the bogofilter plugin when i downloaded that...but it's a dummy package -- ??!??!!

So -- i trucked on over to pkgs.org to download the "real" bogofilter, and find that the only package for Xenial ubuntu and for Jessie is....a dummy package. (?!??!?!?! AGAIN.) BUT -- there is a bogofilter meta-package available for Bionic Beaver...so I tried it. It downloaded and installed without complaint. Closed out Claws and restarted, sent myself a very junky-looking mail, and....

...I got the same message. Bogofilter can't process.

Yii..... Image

Posted: Sun 17 May 2020, 18:18
by bigpup
Why are you trying to get it from every place but the source?
http://bogofilter.sourceforge.net/

Posted: Sun 17 May 2020, 22:42
by Subito Piano
Umm... :roll: probably b/c I've only done a "make install" once or twice, and not in Puppy...

So yeah, looking at the readme, there are things I do not know, such as how to configure it correctly, if I can easily remove it, why I can't "make all check" as per the readme file....kind of embarrassing, really. On the one hand I need to put my "bog boy" pants on, on the other hand, yii, there's only so much time...

I'm making a backup of my system now, then I'll give it a whirl and report back. :?

Posted: Mon 18 May 2020, 01:13
by bigpup
I understand!
My luck at compiling a good working program is not that good.
I am not being that much help.
I do not use Claws-Mail and have never used Bogofilter.

Posted: Mon 18 May 2020, 01:20
by Subito Piano
Thanks -- you make me feel less stupid! :D Well, stupid is the wrong word, but you know what I mean.

Posted: Mon 18 May 2020, 02:11
by bigpup
That Claws-Mail help page, seems to indicate it is simple to use.
But, it seems, they are not telling you some needed information.

Maybe edit the first post subject and add claws-mail to it, so the tittle of the topic lets people know, this is a Claws-mail thing.
Maybe someone, that uses it, will come along and help you.

Posted: Tue 19 May 2020, 00:51
by Subito Piano
Thanks, did that, let's see if that draws any comments.

That said, I gave up and installed SpamAssassin. Interesting, the first thing IT said was to get the spamd daemon running, which I did. But I found nothing on the web about a daemon for Bogo.

There is also the BSFilter for Claws. I may give that a spin after working with SpamAssassin, then post back here in maybe a week or two with results to inform posterity.... :wink:

[EDIT: I had to symlink /usr/sbin/spamd to ~/Startup to get it to run on bootup. Once spamd was started, I noticed a message in the bottom of Claws-Mail that it indeed was doing its job during receipt of a message.]

bogofilter-1.2.5

Posted: Wed 20 May 2020, 15:21
by festus
Hello, Subito Piano

I compiled bogofilter-1.2.5 for bionicpup32, yesterday, and uploaded it here for download>
https://www107.zippyshare.com/v/DcJHnIwK/file.html

Name of pet and MD5 here:
bogofilter-1.2.5-i686_bp32.pet 546 k
4c531682ce587485ddff579e13171e3d

Hope this helps you or anyone for that matter...

bliss, festus

Posted: Thu 21 May 2020, 01:47
by Subito Piano
Well, movement of some sort, anyway:

Image

So, the above instead of a message telling me that Bogofilter cannot filter a message and the command 'bogofilter -T -b' couldn't be run.

The pet by itself didn't install the required bogofilter.so anywhere, so i kept the pet installed AND reinstalled claws-mail-bogofilter_3.13.2 via PPM, ran Claws-Mail, and received the above message. If this means bogofilter is ONLY looking for some "training" in order to work, then we are good to go -- in XenialPup, no less.

I'll report back when I know more. Thanks, festus!

Posted: Tue 26 May 2020, 02:04
by Subito Piano
Update 25 May 2020 -- Bogofilter seems to be running without complaint! That said, I'm not get much junk mail to give it a workout...?!?!

Posted: Sun 07 Jun 2020, 03:57
by Subito Piano
I can now confirm it's working. I marked an email as spam, and the next email from the same sender went straight to the junk folder. I realize this is not the same as saying bogofilter has been "trained," but that will take time. If it did this much, it should have no problem being trained to recognize junk mail.

Thanks, everyone! :)