{"id":370,"date":"2005-09-07T23:56:47","date_gmt":"2005-09-08T06:56:47","guid":{"rendered":"http:\/\/thecyberwolfe.com\/blog\/?p=370"},"modified":"2005-09-08T00:20:08","modified_gmt":"2005-09-08T07:20:08","slug":"spammy-update","status":"publish","type":"post","link":"https:\/\/thecyberwolfe.com\/blog\/2005\/09\/07\/spammy-update\/","title":{"rendered":"spammy update"},"content":{"rendered":"<p>Well, SpamAssassin seems to have it&#8217;s sights set fairly well right out of the gate, but I have had to teach it a few things. Me being lazy, I developed the following script to automate the process of telling SA to read each of my three inboxes and the Spam folder to catalog the collection.<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<code>#!\/bin\/bash<\/p>\n<p># SpamAssassin Teacher<\/p>\n<p>echo \"Reading SPAM folder...\"<br \/>\nsa-learn --spam --dir \/home\/your-username-here\/Mail\/Spam\/cur<\/p>\n<p>echo \"Reading Inbox1...\"<br \/>\nsa-learn --ham --dir \/home\/your-username-here\/Mail\/inbox\/cur<\/p>\n<p>echo \"Reading Inbox2...\"<br \/>\nsa-learn --ham --dir \/home\/your-username-here\/Mail\/inbox2\/cur<\/p>\n<p>echo \"Reading Inbox3...\"<br \/>\nsa-learn --ham --dir \/home\/your-username-here\/Mail\/inbox3\/cur<\/p>\n<p>echo \"Done!\"<\/p>\n<p>exit<\/code><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>To use the script, save it to your home directory as <code>spammy.sh<\/code>. You will then need to set it as an executable file with this command:<code>chmod 777 spammy.sh<\/code>, and call it using <code>.\/spammy.sh<\/code> in a terminal window.<\/p>\n<p>I really love it when I get a chance to do a script, since it&#8217;s very close to the programming I learned waaaaay back in high school (DOS-based stuff and Pascal). Unfortunately, I don&#8217;t do many repetitive tasks that would benefit from being scripted.<\/p>\n<p>Of course, if I did, I&#8217;d end up going whole hog and becomming a programmer again. I don&#8217;t need that kind of workaholicism :)<\/p>","protected":false},"excerpt":{"rendered":"<p>Well, SpamAssassin seems to have it&#8217;s sights set fairly well right out of the gate, but I have had to teach it a few things. Me being lazy, I developed <a class=\"more-link\" href=\"https:\/\/thecyberwolfe.com\/blog\/2005\/09\/07\/spammy-update\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-geekery"],"_links":{"self":[{"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":0,"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"wp:attachment":[{"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}