<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fedora &#187; Spam</title>
	<atom:link href="http://gofedora.com/archives/category/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://gofedora.com</link>
	<description>How Tos, Tutorials, Tips and Tricks</description>
	<lastBuildDate>Wed, 14 Sep 2011 15:10:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript To Remove All Facebook Apps From Your Account</title>
		<link>http://gofedora.com/javascript-remove-facebook-apps-account/</link>
		<comments>http://gofedora.com/javascript-remove-facebook-apps-account/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:06:45 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Apps]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Postwith]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=1022</guid>
		<description><![CDATA[
This is a guest post by Gaganpreet Arora AKA bitgeek.
My Facebook app list was cluttered with useless apps accumulated over the time I had joined Facebook. The worst thing is that Facebook does not allow you to remove multiple apps in one go. You have to select one, confirm on &#8220;Are you sure?&#8221; first and [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://gofedora.com/javascript-remove-facebook-apps-account/" title="Permanent link to Javascript To Remove All Facebook Apps From Your Account"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2010/02/Stop-Facebook-Spam.jpg" width="200" height="180" alt="Stop Facebook Spam" title="Javascript To Remove All Facebook Apps From Your Account" /></a>
</p><p>This is a guest post by <a href="http://gaganpreet.wordpress.com/" target="_blank">Gaganpreet Arora AKA bitgeek</a>.</p>
<p>My Facebook app list was cluttered with useless apps accumulated over the time I had joined Facebook. The worst thing is that Facebook does not allow you to remove multiple apps in one go. You have to select one, confirm on &#8220;Are you sure?&#8221; first and then click on &#8220;Okay&#8221; when it is deleted. Very cumbersome. So I wrote a Javascript hack to remove all of the apps in one go.</p>
<p><span style="text-decoration: underline;"><strong><span style="color: #ff0000;">Warning: This will actually delete all the apps</span></strong></span></p>
<h3><span style="text-decoration: underline;"><strong>Step 1</strong></span></h3>
<p>Go to: <a href="http://www.facebook.com/editapps.php?v=allowed" target="_blank">http://www.facebook.com/editapps.php?v=allowed</a>.</p>
<h3><span style="text-decoration: underline;"><strong>Step 2</strong></span></h3>
<p>Select and copy the complete code below and paste it into the address bar.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span>
<span style="color: #003366; font-weight: bold;">function</span> postwith <span style="color: #009900;">&#40;</span>to<span style="color: #339933;">,</span>p<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> myForm <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;form&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  myForm.<span style="color: #660066;">method</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;post&quot;</span> <span style="color: #339933;">;</span> myForm.<span style="color: #660066;">action</span> <span style="color: #339933;">=</span> to <span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> k <span style="color: #000066; font-weight: bold;">in</span> p<span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> myInput <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    myInput.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">,</span> k<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    myInput.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;value&quot;</span><span style="color: #339933;">,</span> p<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    myForm.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>myInput<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  document.<span style="color: #660066;">body</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>myForm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
  myForm.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
  document.<span style="color: #660066;">body</span>.<span style="color: #660066;">removeChild</span><span style="color: #009900;">&#40;</span>myForm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getElementsByClassName<span style="color: #009900;">&#40;</span>classname<span style="color: #339933;">,</span> node<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>node<span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    node <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #003366; font-weight: bold;">var</span> a <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> re <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>b'</span> <span style="color: #339933;">+</span> classname <span style="color: #339933;">+</span> <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>b'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  els <span style="color: #339933;">=</span> node.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'*'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> j <span style="color: #339933;">=</span> els.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> j<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> re.<span style="color: #660066;">test</span><span style="color: #009900;">&#40;</span>els<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">className</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span> a.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>els<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000066; font-weight: bold;">return</span> a<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> arr <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
els<span style="color: #339933;">=</span>document.<span style="color: #660066;">getElementsByClassName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'app_row'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'fb_dtsg'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>document.<span style="color: #660066;">getElementsByName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'fb_dtsg'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'remove'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'post_form_id_source'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'AsyncRequest'</span><span style="color: #339933;">;</span>
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'post_form_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'post_form_id'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'app_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>els<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;editapps_allowed_&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'__a'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i
<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;&lt;</span>span style<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text-decoration: underline;&quot;</span><span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span>Step <span style="color: #CC0000;">3</span><span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>h3<span style="color: #339933;">&gt;</span>
Press Enter.
&nbsp;
<span style="color: #660066;">The</span> browser may get stuck <span style="color: #000066; font-weight: bold;">for</span> a few moments <span style="color: #000066; font-weight: bold;">if</span> the list <span style="color: #000066; font-weight: bold;">is</span> large<span style="color: #339933;">,</span> so <span style="color: #000066; font-weight: bold;">if</span> it does<span style="color: #339933;">,</span> just wait a bit and it will respond <span style="color: #000066;">back</span>.
<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;&lt;</span>span style<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text-decoration: underline;&quot;</span><span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span>References<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>h3<span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">Function</span> postwith was taken from <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/&quot;</span><span style="color: #339933;">&gt;</span>here<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;,</span> and getElementsByClassName was taken from <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://snipplr.com/view/1696/get-elements-by-class-name/&quot;</span><span style="color: #339933;">&gt;</span>here<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>.</pre></div></div>

<p class="link-exchange">Our incredible deals of  <a href="http://www.thepass4sure.us/MB5-198-dumps.html">MB5-198</a> and free  <a href="http://www.thepass4sure.biz/MB6-282.html">MB6-282</a> tutorials make your success certain for the final <a href="http://www.thepass4sure.me/MB7-223.html">MB7-223</a> exam and you can <a href="http://www.mypass4sure.info/70-238-dumps.html">70-238</a> dumps <a href="http://www.pass4sures.biz/70-299-testking.html">70-299</a>.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/javascript-remove-facebook-apps-account/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How To: Configure Procmailrc to Reduce Spam</title>
		<link>http://gofedora.com/how-to-configure-procmailrc-reduce-spam/</link>
		<comments>http://gofedora.com/how-to-configure-procmailrc-reduce-spam/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 20:12:55 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Mail Filter]]></category>
		<category><![CDATA[Procmail]]></category>
		<category><![CDATA[Procmailrc]]></category>
		<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[Spam Protection]]></category>

		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=237</guid>
		<description><![CDATA[Last Monday in IIIT Linux Users Group (LUG) meeting, I gave a small presentation regarding how to configure .procmailrc to make very effective filters.
Procmail is  a mail delivery agent or mail filter which is widely used on Unix systems to process incoming mails. It is automatically invoked by the mail transport agents like Sendmail [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p></p><p>Last Monday in IIIT Linux Users Group (LUG) meeting, I gave a small presentation regarding how to configure .procmailrc to make very effective filters.</p>
<p>Procmail is  a mail delivery agent or mail filter which is widely used on Unix systems to process incoming mails. It is automatically invoked by the mail transport agents like Sendmail whenever there is an incoming mail. Procmail has the power to process all the incoming mails based on the recipes provided by the user and deliver them to the provided destination(either a mail folder or email id or something else like a file or stdout and many more).</p>
<p>Procmail by default searches for a configuration file named .procmailrc in user&#8217;s home directory. All the recipes, global variables and other things are provided here by the user to let Procmail know what to do.</p>
<p>Here is an example .procmailrc</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># .procmailrc </span>
&nbsp;
PATH = <span style="color: #007800;">$PATH</span>
MAILDIR = <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>mail
DEFAULT = <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>mbox
SHELL = <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Backup for testing mode.</span>
<span style="color: #666666; font-style: italic;">#:0 c # Uncomment for testing mode</span>
<span style="color: #666666; font-style: italic;">#Backup</span>
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Spam mails should go to Spam folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>hi5.com<span style="color: #000000; font-weight: bold;">|</span>auctionit<span style="color: #000000; font-weight: bold;">|</span>newegg<span style="color: #000000; font-weight: bold;">|</span>voilin<span style="color: #000000; font-weight: bold;">|</span>mingle<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Spam
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Spam mails should go to Spam folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^Subject:.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>Goonj<span style="color: #000000; font-weight: bold;">|</span>Spam<span style="color: #000000; font-weight: bold;">|</span>Disarmed<span style="color: #000000; font-weight: bold;">|</span>Pictures<span style="color: #000000; font-weight: bold;">|</span>Re\. Pictures<span style="color: #000000; font-weight: bold;">|</span>Sperm<span style="color: #000000; font-weight: bold;">|</span>Penis<span style="color: #000000; font-weight: bold;">|</span>Viagra<span style="color: #000000; font-weight: bold;">|</span>Filename<span style="color: #000000; font-weight: bold;">|</span>voilin<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Spam
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from Fedora mailing list should go to Fedora</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>fedora-devel<span style="color: #000000; font-weight: bold;">|</span>fedorawiki-noreply<span style="color: #000000; font-weight: bold;">|</span>bugzilla<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Fedora
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from yum mailing list should go to Yum</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>yum-devel<span style="color: #000000; font-weight: bold;">*</span>
Yum
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from/to lug should go to LUG folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>lug<span style="color: #000000; font-weight: bold;">@</span>students.iiit.ac.in
LUG
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Lost found mails should go to LostFound folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^Subject:.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>lost<span style="color: #000000; font-weight: bold;">|</span>found<span style="color: #7a0874; font-weight: bold;">&#41;</span>
LostFound
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from/to life should go to Life folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>life<span style="color: #000000; font-weight: bold;">@</span>students<span style="color: #000000; font-weight: bold;">*</span>
Life
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Birc mails should go to BIRC folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>birc<span style="color: #000000; font-weight: bold;">@</span>students<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #800000;">${HOME}</span><span style="color: #000000; font-weight: bold;">/</span>mbox
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from/to course should go to Courses folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ec5303<span style="color: #000000; font-weight: bold;">|</span>cs3600<span style="color: #000000; font-weight: bold;">|</span>cs3150<span style="color: #000000; font-weight: bold;">|</span>cs3350<span style="color: #000000; font-weight: bold;">|</span>cs3155<span style="color: #000000; font-weight: bold;">|</span>cs4460<span style="color: #000000; font-weight: bold;">|</span>cs4110<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
	:<span style="color: #000000;">0</span> c
	<span style="color: #000000; font-weight: bold;">!</span> kulbirsaini25<span style="color: #000000; font-weight: bold;">@</span>gmail.com
&nbsp;
	:<span style="color: #000000;">0</span>:
	Courses
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from/to clubs should go to Clubs folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>agents<span style="color: #000000; font-weight: bold;">|</span>campusgreen<span style="color: #000000; font-weight: bold;">|</span>campusgreenclub<span style="color: #000000; font-weight: bold;">|</span>cybergames<span style="color: #000000; font-weight: bold;">|</span>dpscm<span style="color: #000000; font-weight: bold;">|</span>guitar<span style="color: #000000; font-weight: bold;">|</span>music<span style="color: #000000; font-weight: bold;">|</span>nss<span style="color: #000000; font-weight: bold;">|</span>photography<span style="color: #000000; font-weight: bold;">|</span>quizzers<span style="color: #000000; font-weight: bold;">|</span>signet<span style="color: #000000; font-weight: bold;">|</span>sigops<span style="color: #000000; font-weight: bold;">|</span>videography<span style="color: #000000; font-weight: bold;">|</span>movie<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Clubs
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mail from/to clubs should go to Clubs folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^Subject:.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>agents<span style="color: #000000; font-weight: bold;">|</span>campusgreen<span style="color: #000000; font-weight: bold;">|</span>dance<span style="color: #000000; font-weight: bold;">|</span>cybergames<span style="color: #000000; font-weight: bold;">|</span>dpscm<span style="color: #000000; font-weight: bold;">|</span>guitar<span style="color: #000000; font-weight: bold;">|</span>music<span style="color: #000000; font-weight: bold;">|</span>nss<span style="color: #000000; font-weight: bold;">|</span>photography<span style="color: #000000; font-weight: bold;">|</span>quizzers<span style="color: #000000; font-weight: bold;">|</span>signet<span style="color: #000000; font-weight: bold;">|</span>sigops<span style="color: #000000; font-weight: bold;">|</span>videography<span style="color: #000000; font-weight: bold;">|</span>movie<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Clubs
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># House mails should go to House folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^Subject:.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>IBCT<span style="color: #000000; font-weight: bold;">|</span>House<span style="color: #000000; font-weight: bold;">|</span>Tournament<span style="color: #000000; font-weight: bold;">|</span>Champion<span style="color: #000000; font-weight: bold;">|</span>championship<span style="color: #000000; font-weight: bold;">|</span>Inter\ House<span style="color: #000000; font-weight: bold;">|</span>chess<span style="color: #000000; font-weight: bold;">|</span>cultural<span style="color: #000000; font-weight: bold;">|</span>basket<span style="color: #000000; font-weight: bold;">|</span>cricket<span style="color: #000000; font-weight: bold;">|</span>foot<span style="color: #000000; font-weight: bold;">|</span>ball<span style="color: #000000; font-weight: bold;">|</span>Physical<span style="color: #000000; font-weight: bold;">|</span>PEC<span style="color: #000000; font-weight: bold;">|</span>carrom<span style="color: #000000; font-weight: bold;">|</span>dumb<span style="color: #000000; font-weight: bold;">|</span>TT<span style="color: #000000; font-weight: bold;">|</span>IHFT<span style="color: #7a0874; font-weight: bold;">&#41;</span>
House
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mails from Physical Education Center</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>pec<span style="color: #000000; font-weight: bold;">@</span>iiit.ac.in
House
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Returned mail transcriptions to Bounced folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^Subject:.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>Returned mail: see transcript <span style="color: #000000; font-weight: bold;">for</span> details<span style="color: #000000; font-weight: bold;">|</span>could not deliver mail<span style="color: #000000; font-weight: bold;">|</span>bounced<span style="color: #000000; font-weight: bold;">|</span>could not send message <span style="color: #000000; font-weight: bold;">for</span> past<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Trash
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Mails from TopCoder should go to TopCoder folder</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>topcoder<span style="color: #000000; font-weight: bold;">*</span>
Trash
&nbsp;
:<span style="color: #000000;">0</span>: <span style="color: #666666; font-style: italic;"># Default</span>
<span style="color: #000000; font-weight: bold;">*</span> ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>From<span style="color: #000000; font-weight: bold;">|</span>Cc<span style="color: #000000; font-weight: bold;">|</span>To<span style="color: #7a0874; font-weight: bold;">&#41;</span>.<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
	:<span style="color: #000000;">0</span> c
	<span style="color: #000000; font-weight: bold;">!</span> kulbirsaini25<span style="color: #000000; font-weight: bold;">@</span>gmail.com
&nbsp;
	:<span style="color: #000000;">0</span>:
	<span style="color: #800000;">${HOME}</span><span style="color: #000000; font-weight: bold;">/</span>mbox
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>The top few lines are global variables which you need to declare so that Procmail can detect your default mailbox and mail folders, path etc.</p>
<p>These are configured in accordance with the Students mail server at IIIT-H. These global variable declarations are followed by the recipes which guide Procmail to process the incoming mails.</p>
<p>The usual syntax of a recipe is</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">:<span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>flags<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>lock-file<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
zero or <span style="color: #c20cb9; font-weight: bold;">more</span> conditions
one action line or nested actions</pre></td></tr></table></div>

<p>Lets start with the conditions line with second recipe from above image. &#8216;*&#8217; specifies the start of the action line. This &#8216;*&#8217; is followed by a regular expression which Procmail egreps in the header by default. &#8216;^&#8217; in regular expression species the start of the line. Then all the mail which are from/to/cced to mail ids which contain auctionit or newegg or violin . e.g. newegg@newegg.com.  The condition can span only one line. You can&#8217;t write comment in the action line otherwise Procmail will treat it as a part of regular expression. Anywhere else all the characters that follows a &#8216;#&#8217; in a line are treated as comments or are ignored by the Procmail while processing mails.</p>
<p>Then comes the action line. There can only be action line per recipe unless and until its not nested. Action line may be just a mail folder name or path (relative or  absolute).  Spam means that all the mails satisfying the regular expression in condition line will be delivered to the Spam mail folder.</p>
<p>The action lines can be nested as in the last recipe in the above image. Procmail can support any level of nesting but the nesting should be proper.</p>
<p>The action line may also be used to forward mails to some other email id. &#8216;!&#8217; is used in starting of the line followed by the email id to forward the mail.</p>
<p>Now some tips about the first line in the recipe. &#8216;:0&#8242; is must. But optional flags may be specified. The second &#8216;:&#8217; asks Procmail to use a lock-file. The need of lock-file is because if your mail account is being swamped with a lot of mails. The Sendmail invokes one copy of Procmail per incoming mail. In that case if two or more Procmail processes try to write the same mail folder, there will be conflicts. So, using the second &#8216;:&#8217; protect the same mail folder from being written by the two different Procmail processes.</p>
<p>Procmail processes .procmailrc in top-down fashion and stops whenever it finds a matching regular expression in any of the recipes. But you may make it work further buy using the flag &#8216;c&#8217; as in last recipe. If flag &#8216;c&#8217; is specified, it will create a carbon copy and give it to the both recipes.</p>
<p>I think thats enough. If you want to explore Procmail more, read man page &#8216;procmailrc&#8217; and for example procmailrcs read &#8216;procmailex&#8217; man page.</p>
<p>You can use my procmailrc if you are interested. Find it <a href="http://gofedora.com/wp-content/uploads/linux/procmailrc" title="My procmailrc" target="_blank">here</a>.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-configure-procmailrc-reduce-spam/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

