On Wed, 2015-03-25 at 19:39 +0100, Milan Crha wrote:
> On Wed, 2015-03-25 at 09:55 -0700, Tim Wescott wrote:
> > - Is there a binary, or should I build?
> > - Where should I get source?
> > - What configuration parameters should I give so that Bogofilter
> >   will work?
> > 
> > It occurs to me that perhaps the safest thing to do would be to 
> > install the source for Evolution 10.3.whatever from the Ubuntu 
> > repository, then look around here to find out what flag it is you 
> > need to set to tell Evolution to please use Bogofilter, then build.
> 
>         Hi,
> please do not take this as an expertise guidance, it's just an idea 
> how to make things easier for you.
> 
> I agree with you to use your distribution's package as the starter. 
> Better to not get into a dependency hell. Install necessary 
> development packages, like if you'd like to build whole evolution, 
> together with the evolution's itself development package. Do not 
> install any source packages.
> 
> The trick is that the bogofilter module is only a module, just few KB 
> binary plus some GSettings/GConf definitions (which are always 
> installed) and nothing else. No need to compile evolution for it, if 
> you can use the development packages.
> 
> Let's say your bogofilter can be run as:
>    /usr/bin/bogofilter
> and there exists a file
>    /usr/share/evolution/default/C/mail/local/Inbox
> 
> It's possible that your version of evolution has a version number in 
> the folder names, just check it.
> 
> Download evolution-bogofilter.c from [1] and save it anywhere in your 
> system, just that you'll find it. Then compile it:
> 
>    $ gcc -shared -fPIC -DPIC evolution-bogofilter.c \
>         -DG_LOG_DOMAIN=\"evolution-bogofilter\" \
>         -DGETTEXT_PACKAGE=\"evolution\" \
>         -DWELCOME_MESSAGE=\"/usr/share/evolution/default/C/mail/local/Inbox\" 
> \
>         -DBOGOFILTER_COMMAND=\"/usr/bin/bogofilter\" \
>         `pkg-config --cflags --libs evolution-mail-3.0` \
>         -Wl,--no-undefined -Wl,--export-dynamic -Wl,-soname \
>         -Wl,module-bogofilter.so \
>         -o `pkg-config --variable=moduledir 
> evolution-shell-3.0`/module-bogofilter.so
> 
> If everything will go smoothly you might get it. Start evolution and 
> you should see Bogofilter settings in Edit->Preferences->Mail 
> Preferences->Junk tab.
> 
> Please note that this is not an official way of doing things, thus it 
> might be possible that something will go wrong. If it does, then 
> delete module-bogofilter.so from evolution's module directory [2].
>         Bye,
>         Milan
> 
> [1] 
> https://git.gnome.org/browse/evolution/tree/modules/bogofilter?h=gnome-3-10
>     You said you use 3.10. If you use a different version, then pick a 
> different branch.
> 
> [2] It's the result of the below command,
>     can be something like /usr/lib/evolution/modules
> 
>     $ pkg-config --variable=moduledir evolution-shell-3.0

Well, so far it's consuming far less processor power as it fails to
correctly identify spam.  Which is actually a benefit, but I'd hoped for
more.

I need to review settings to make sure that something hasn't been turned
off, but I suspect that's not the case.

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell:  503.349.8432

_______________________________________________
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list

Reply via email to