aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-junk-filter.c
Commit message (Collapse)AuthorAgeFilesLines
* ops, put close to the other if branchRadek Doulik2004-03-111-0/+1
| | | | svn path=/trunk/; revision=25011
* (pipe_to_sa_with_error): do not call close, camel_stream_closeRadek Doulik2004-03-111-1/+0
| | | | | | should be enough to be sure the fd was closed svn path=/trunk/; revision=25010
* call camel_stream_close and close the fds[1]Radek Doulik2004-03-111-1/+2
| | | | | | | | | 2004-03-10 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (pipe_to_sa_with_error): call camel_stream_close and close the fds[1] svn path=/trunk/; revision=25009
* use g_find_program_in_path to avoid fork in case program is not availableRadek Doulik2004-02-131-0/+8
| | | | | | | | | | 2004-02-12 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (pipe_to_sa_with_error): use g_find_program_in_path to avoid fork in case program is not available svn path=/trunk/; revision=24724
* Same.Jeffrey Stedfast2004-02-121-0/+5
| | | | | | | | | | 2004-02-11 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-print.c: Same. * em-junk-filter.c: #include <config.h> svn path=/trunk/; revision=24710
* if spamc is not available, try /usr/sbin/spamcRadek Doulik2004-02-121-42/+101
| | | | | | | | | | | | | | | | 2004-02-11 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): if spamc is not available, try /usr/sbin/spamc 2004-02-10 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): try to check if system wide spamd has --local parameter set according to our setting (em_junk_sa_test_spamd): in case we were unable to start our own spamd, try to run it from /usr/sbin before giving up svn path=/trunk/; revision=24706
* move to the next message after mark not junk as wellRadek Doulik2004-02-071-19/+21
| | | | | | | | | | | | | | | | | | | | | 2004-02-06 Radek Doulik <rodo@ximian.com> * em-folder-view.c (emfv_popup_mark_nojunk): move to the next message after mark not junk as well * em-junk-filter.c (em_junk_sa_test_spamd): split into spamassassin and spamd tests (em_junk_sa_is_available): test spamd only if spamd usage enabled (pipe_to_sa_with_error): extended pipe_to_sa, last added parametr specifies return value if an error occured (em_junk_sa_check_junk): don't use /bin/sh -c when running spamassassin, it's not needed and we need to avoid getting 126,127 exit codes from the shell (em_junk_sa_check_junk): pass 0 rv_err to pipe_to_sa_with_error to avoid false positives in case someone removes/uninstalls SA while evolution runs svn path=/trunk/; revision=24651
* split into spamassassin and spamd tests (em_junk_sa_is_available): testRadek Doulik2004-02-061-14/+23
| | | | | | | | | | 2004-02-06 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): split into spamassassin and spamd tests (em_junk_sa_is_available): test spamd only if spamd usage enabled svn path=/trunk/; revision=24647
* handle the sa prefs here, have own gconf client with sa dir addedRadek Doulik2004-02-031-11/+39
| | | | | | | | | | | 2004-02-03 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: handle the sa prefs here, have own gconf client with sa dir added * mail-session.c: removed sa prefs svn path=/trunk/; revision=24578
* use mail_session_get_sa_daemon_portRadek Doulik2004-01-241-4/+5
| | | | | | | | | | | | | | | | | | | | | 2004-01-23 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: use mail_session_get_sa_daemon_port * em-mailer-prefs.c (em_mailer_prefs_construct): added check_incoming_imap (em_mailer_prefs_apply): ditto (settings_changed): set check_incoming_imap sensitivity by check_incoming state * mail-session.c: add sa_daemon_port (mail_session_init): init sa_daemon_port and check_junk_for_imap (mail_session_check_junk_notify): watch for sa_daemon_port and check_junk_for_imap (mail_session_get_sa_daemon_port): new wrapper (mail_session_set_sa_daemon_port): ditto svn path=/trunk/; revision=24382
* Oops, when calling spamassassin rather than spamc, we need to invokeJeffrey Stedfast2004-01-231-6/+10
| | | | | | | | | | | 2004-01-22 Jeffrey Stedfast <fejj@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): Oops, when calling spamassassin rather than spamc, we need to invoke /bin/sh -c since spamassassin is a shell script. (em_junk_sa_check_junk): Same. svn path=/trunk/; revision=24372
* Fixes bug #53175.Jeffrey Stedfast2004-01-231-196/+182
| | | | | | | | | | | | | | | | | | 2004-01-22 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #53175. * em-junk-filter.c (pipe_to_sa): Don't need an argc (we don't even seem to use it??). (em_junk_sa_test_spamd_running): Don't invoke /bin/sh. (em_junk_sa_test_spamd): Simplified, also don't invoke /bin/sh. (em_junk_sa_check_junk): Cleaned up/simplified. Also don't invoke /bin/sh. (em_junk_sa_report_junk): Same. (em_junk_sa_report_notjunk): Same. (em_junk_sa_commit_reports): Same. svn path=/trunk/; revision=24370
* uncomment system wide spamd testRadek Doulik2004-01-221-11/+18
| | | | | | | | | | | | | | 2004-01-22 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): uncomment system wide spamd test 2004-01-20 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: lock report calls by em_junk_sa_report_lock mutex svn path=/trunk/; revision=24364
* use mail_session_get_sa_use_daemonRadek Doulik2004-01-131-1/+1
| | | | | | | | | 2004-01-12 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_check_junk): use mail_session_get_sa_use_daemon svn path=/trunk/; revision=24176
* added SA prefs (mail_session_get_sa_local_only): new helper methodRadek Doulik2004-01-131-22/+39
| | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Radek Doulik <rodo@ximian.com> * mail-session.c: added SA prefs (mail_session_get_sa_local_only): new helper method (mail_session_set_sa_local_only): ditto (mail_session_get_sa_use_daemon): ditto (mail_session_set_sa_use_daemon): ditto (mail_session_check_junk_notify): fix the key comparison (mail_session_init): add gconf dir so that we get notified * mail-config.glade: added SA preferences * em-mailer-prefs.c (em_mailer_prefs_construct): added more junk prefs (em_mailer_prefs_apply): ditto * em-junk-filter.c: use preferences svn path=/trunk/; revision=24174
* add NULL at the end of argv for execvp (poited out by Frank Solensky,Radek Doulik2004-01-061-11/+18
| | | | | | | | | 2004-01-05 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: add NULL at the end of argv for execvp (poited out by Frank Solensky, thanks) svn path=/trunk/; revision=24059
* (em_junk_sa_test_spamd): rename em_junk_sa_spamd_tested toRadek Doulik2003-11-131-36/+35
| | | | | | em_junk_sa_tested, always set em_junk_sa_tested svn path=/trunk/; revision=23319
* new helper function, use it before any call to spamassassin, spamc andRadek Doulik2003-11-131-10/+36
| | | | | | | | | | 2003-11-13 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_is_available): new helper function, use it before any call to spamassassin, spamc and sa-learn (em_junk_sa_test_spamd): first test if spamassassin is available svn path=/trunk/; revision=23317
* merged spam filtering branchRadek Doulik2003-11-131-0/+327
svn path=/trunk/; revision=23302