Since a week or two, I noticed I suddenly started to get many spams (at the rate of around 10/day) delivered to my gmail inbox. I reported them every time, but that is of not much use. So tired of reporting spams, I started to create filters (in gmail) based on From address, ‘Subject’ etc. to delete them as soon they arrive, and I noticed that some of the ham mails also got deleted due to my filters. So, to get rid of this problem yesternight I installed SpamAssassin (which I’m afraid of installing earlier because I heard of its complex configuration) on my box integrated with postfix instance on my Gentoo GNU/Linux. The installation (thanks to portage) is very easy and integration with postfix is also quite easy and well documented on its wiki. And now, the best part, my SpamAssassin today recognized those mails as spam, which gmail‘s spam filters delivered into my inbox :).
(defun my-gnus-mark-spam() (interactive) (gnus-summary-show-raw-article) (gnus-summary-save-in-pipe "spamc -L spam") (gnus-summary-show-article) ;; substitute "nnmaildir:spam" with the name of group holding "spam" (gnus-summary-move-article nil "nnmaildir:spam")) (defun my-gnus-mark-ham() (interactive) (gnus-summary-show-raw-article) (gnus-summary-save-in-pipe "spamc -L ham") (gnus-summary-show-article) (gnus-summary-respool-article nil)) ;; in summary mode use "B s" and "B h" keys to mark a mail as spam and ham ;; respectively for SpamAssassin to learn, and to also move to "spam" maildir ;; or respool mail accordingly (define-key gnus-summary-mode-map (kbd "B s") 'my-gnus-mark-spam) (define-key gnus-summary-mode-map (kbd "B h") 'my-gnus-mark-ham)