<rss version="2.0">
  <channel>
    <title>The official gurgitate-mail wiki</title>
    <link>http://gurgitate-mail.lart.ca/wiki/show/HomePage</link>
    <description>An Instiki wiki</description>
    <language>en-us</language>
    <ttl>40</ttl>
    <item>
      <title>HomePage</title>
      <description>&lt;h1&gt;&#12320;&lt;/h1&gt;
&lt;h1&gt;gurgitate-mail&lt;/h1&gt;
&lt;p&gt;Gurgitate-mail is my mail filter. It has two major features going for it:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;It&amp;#8217;s small and easy to use,&lt;/li&gt;
	&lt;li&gt;configurations files are &lt;a href="http://www.truckaccidentlawyersource.com/"&gt;Truck Accident Lawyer&lt;/a&gt; written in Ruby, which is approximately eight thousand times easier to read and write than Procmail&amp;#8217;s line noise, and yet much more powerful.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;[&lt;a href="http://www.realisticwebsites.co.uk/"&gt;http://www.realisticwebsites.co.uk/&lt;/a&gt; &lt;span class="caps"&gt;SEO&lt;/span&gt; Services UK]&lt;br /&gt;
&lt;a href="http://www.phuketproperty.com/"&gt;Phuket property&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have to admit, it was originally inspired by elm&amp;#8217;s old &amp;#8220;filter&amp;#8221; program, which also had rules &lt;a href="http://www.diamondlinks.net"&gt;link building service&lt;/a&gt; files with human-readable syntax.&lt;/p&gt;
&lt;p&gt;The latest version of gurgitate-mail is 1.10.0, which adds support for MH mailboxes (claws-mail users, rejoice).&lt;a href="http://www.cassetteplayer.org"&gt;cassette player&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Download &lt;a href="http://lart.ca/software/gurgitate-mail/gurgitate-mail-1.10.0.tar.gz"&gt;gurgitate-mail 1.10.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or you can read the &lt;a href="http://gurgitate-mail.lart.ca/manual.html"&gt;Manual&lt;/a&gt; or the &lt;a href="http://gurgitate-mail.lart.ca/doc/"&gt;RDoc documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://guide2vietnam.com/vietnamrailways"&gt;Vietnam Trains&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.greatvietnamtours.com"&gt;Vietnam Tour&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.ghostpapers.com/"&gt;Term papers&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.teethwhiteningathomev.com"&gt;Teeth whitening products&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.ocularconcepts.us"&gt;Web Design Cleveland&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.nile-cruise.com/"&gt;Nile Cruise&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.vipsexshop.com.br"&gt;sex shop&lt;/a&gt; &lt;a href="http://www.sexshop.com.vc"&gt;sex shop&lt;/a&gt; &lt;a href="http://www.belasexshop.com"&gt;sex shop&lt;/a&gt; &lt;a href="http://www.belasexshop.com.br"&gt;sex shop&lt;/a&gt; &lt;a href="http://www.requintesexshop.com.br"&gt;sex shop&lt;/a&gt; &lt;a href="http://www.viplingerie.com.br"&gt;lingerie&lt;/a&gt; &lt;a href="http://www.vipsexshopatacado.com.br"&gt;sex shop atacado&lt;/a&gt; &lt;a href="http://www.vipcalcinhas.com.br"&gt;calcinhas&lt;/a&gt; &lt;a href="http://www.uniformesbr.com"&gt;uniformes profissionais&lt;/a&gt; &lt;a href="http://www.uniformesbr.com.br"&gt;uniformes&lt;/a&gt; &lt;a href="http://blog.vipsexshop.com.br"&gt;dicas de sexo&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 23 Apr 2012 10:25:18 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/HomePage</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/HomePage</link>
    </item>
    <item>
      <title>AnonymousCoward</title>
      <description></description>
      <pubDate>Mon, 23 Apr 2012 10:12:59 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/AnonymousCoward</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/AnonymousCoward</link>
    </item>
    <item>
      <title>Teambuilding</title>
      <description>&lt;p&gt;&lt;strong&gt;Teambuilding&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.brightway.ro/ro/teambuilding.html"&gt;Teambuilding&lt;/a&gt; is an important part of the dynamics of a team. To find more resources about a teambuilding program access &lt;a href="http://www.brightway.ro/ro/teambuilding.html"&gt;Teambuilding&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 19 Aug 2011 18:37:52 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/Teambuilding</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/Teambuilding</link>
    </item>
    <item>
      <title>Training</title>
      <description>&lt;p&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.brightway.ro"&gt;Training&lt;/a&gt; represents a business concept which aims to rise the performance level of an organization. More information about different types of programs at &lt;a href="http://www.brightway.ro"&gt;Training&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 19 Aug 2011 18:35:00 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/Training</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/Training</link>
    </item>
    <item>
      <title>dagbrown</title>
      <description>&lt;p&gt;&amp;gt; Wow, I get to create dagbrown, according to the wiki.&lt;/p&gt;
&lt;p&gt;And anyone gets to edit it!  That&amp;#8217;s how wikis work after all.&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jun 2008 11:58:20 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/dagbrown</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/dagbrown</link>
    </item>
    <item>
      <title>Examples</title>
      <description>&lt;h2&gt;Quick rules.&lt;/h2&gt;
&lt;p&gt;Due to a proliferation of filter rules at work, I wrote a bit of code to let me use abbreviated &lt;a class="existingWikiWord" href="http://gurgitate-mail.lart.ca/wiki/show/quick+rules"&gt;quick rules&lt;/a&gt;, stored in a &lt;span class="caps"&gt;YAML&lt;/span&gt; file.&lt;/p&gt;
&lt;h2&gt;Twitter posting&lt;/h2&gt;
&lt;p&gt;This one was surprisingly easy to do.&lt;/p&gt;
&lt;pre&gt;twitterusername="(your twitter username)"
twitterpassword="(your twitter password)"

if headers["From"] =~ /(authorized sender)/
    log "Posting \"#{body.chomp}\" to twitter"
    require "uri"
    require "net/http"

    uri = URI.parse("http://#{twitterusername}@#{twitterpassword}@twitter.com/statuses/update.xml")
    res = Net::HTTP.post_form(uri, :status =&amp;gt; body.chomp)
    return
end
&lt;/pre&gt;
&lt;p&gt;For (your twitter username) and (your twitter password), subsitute the obvious.  For (authorized sender), put in an email address which you&amp;#8217;re allowing to update twitter from (the address of your cell phone for example).&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:33:03 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/Examples</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/Examples</link>
    </item>
    <item>
      <title>quick rules</title>
      <description>&lt;p&gt;Here&amp;#8217;s a gurgitate-rules snippet to load up and run the quick rules:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;quickrules = YAML.load(File.read(File.join(ENV["HOME"],
                                           ".gurgitate-quick-rules.yml")))


quickrules.each do |rule|
    conditions = rule["if"]
    actions    = rule["then"] || {}
    matches    = 0

    conditions.each do |type, match|
        match = Regexp.new(match)

        matches += 1 if case type
        when "to"
            headers["To"]      =~ match or headers["Cc"] =~ match
        when "from"
            headers["From"]    =~ match
        when "subject"
            headers["Subject"] =~ match
        when /[A-Z].*/
            headers[type]      =~ match
        end
    end

    if matches == conditions.length then
        actions.each do |type, action|
            case type
            when "forward"
                forward action
                log "Forwarded mail to #{action}"
            when "mailbox"
                save action
                log "Saved mail to #{action}"
            when 'log'
                log "Quick rules: #{action}"
            end
        end
        return
    end
end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And here&amp;#8217;s what the quick rules look like:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;---&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Mail from example.com goes into the &amp;#8220;example&amp;#8221; mailbox&lt;br /&gt;
- if:   { From: example.com }&lt;br /&gt;
  then: { mailbox: =example }&lt;/li&gt;
	&lt;li&gt;Mail to example-users@example.net goes into the &amp;#8220;example-users&amp;#8221; mailbox&lt;br /&gt;
- if:   { To: example-users@example.net }&lt;br /&gt;
  then: { mailbox: =example-users }&lt;/li&gt;
	&lt;li&gt;Mail with a virus gets discarded&lt;br /&gt;
- if:   { &amp;#8220;X-Amavis-Alert&amp;#8221;: &lt;span class="caps"&gt;INFECTED&lt;/span&gt; }&lt;br /&gt;
  then: { log: Discarding virus }  # logging is actually optional&lt;/li&gt;
	&lt;li&gt;Sysadmin special: nagios &lt;span class="caps"&gt;CRITICAL&lt;/span&gt; alerts go to a pager&lt;br /&gt;
- if:   { from: nagios@example.org, subject: &amp;#8220;&lt;span class="caps"&gt;PROBLEM&lt;/span&gt;.*CRITICAL&amp;#8221; }&lt;br /&gt;
  then: { mailbox =nagio, forward: pager@example.org }&lt;br /&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:25:24 Z</pubDate>
      <guid>http://gurgitate-mail.lart.ca/wiki/show/quick+rules</guid>
      <link>http://gurgitate-mail.lart.ca/wiki/show/quick+rules</link>
    </item>
  </channel>
</rss>

