<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How do I create a Thunderbird message filter for an attachment type?</title>
	<atom:link href="http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/feed/" rel="self" type="application/rss+xml" />
	<link>http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 10 Mar 2010 15:18:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kellan</title>
		<link>http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/comment-page-1/#comment-130880</link>
		<dc:creator>kellan</dc:creator>
		<pubDate>Sat, 20 Oct 2007 17:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/#comment-130880</guid>
		<description>&lt;p&gt;Thanks guys!  &lt;/p&gt;

&lt;p&gt;I was feeling dumb for not being able to find a feature I &lt;em&gt;knew&lt;/em&gt; had to be there.  Comforted that smarter people then I came to similar conclusions.&lt;/p&gt;

&lt;p&gt;And yeah, digging into the Lightning codebase to build my own simplified version might be the way to go.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks guys!  </p>

<p>I was feeling dumb for not being able to find a feature I <em>knew</em> had to be there.  Comforted that smarter people then I came to similar conclusions.</p>

<p>And yeah, digging into the Lightning codebase to build my own simplified version might be the way to go.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Macgirvin</title>
		<link>http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/comment-page-1/#comment-128066</link>
		<dc:creator>Mike Macgirvin</dc:creator>
		<pubDate>Wed, 17 Oct 2007 01:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/#comment-128066</guid>
		<description>&lt;p&gt;I didn&#039;t claim it was perfect, but there don&#039;t seem to be any selectors available for content-disposition filenames (which also have no guarantee of what type of data they might contain). &lt;/p&gt;

&lt;p&gt;But on closer examination, I notice that the recent Thunderbird filters don&#039;t even have a selector for body contents. So I don&#039;t see an easy way out of this at all. You can still create a &#039;view&#039; with body contents, but not a filter. Looks like filters now can only examine SMTP headers - and there&#039;s nothing in the headers to indicate anything about potential MIME leaf nodes. Yuk.  &lt;/p&gt;

&lt;p&gt;This is probably best done as a server-side process, ala procmail although I personally hate procmail going back 15-20 years and wouldn&#039;t wish that on anybody. One could also use a scripting language like php or perl or whatever with an IMAP extension and be able to examine things in the attachment structure and grab the content-disposition filename; compare with *.ics and also look at the content-type to be sure it wasn&#039;t a Swiftview Image command Set file or some other .ics entity. This could possibly achieve the desired result. &lt;/p&gt;

&lt;p&gt;But it certainly isn&#039;t lazy.&lt;/p&gt;

&lt;p&gt;There&#039;s one other possibility - which would be a thunderbird plugin. I know they finally have a reasonably stable calendar plugin (it only took ten years). Might be able to grab the .xpi source for that or some other attachment handler and tweak it to output/copy the file. I haven&#039;t actually done one of these plugins myself so I don&#039;t know how hard it might be.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t claim it was perfect, but there don&#8217;t seem to be any selectors available for content-disposition filenames (which also have no guarantee of what type of data they might contain). </p>

<p>But on closer examination, I notice that the recent Thunderbird filters don&#8217;t even have a selector for body contents. So I don&#8217;t see an easy way out of this at all. You can still create a &#8216;view&#8217; with body contents, but not a filter. Looks like filters now can only examine SMTP headers &#8211; and there&#8217;s nothing in the headers to indicate anything about potential MIME leaf nodes. Yuk.  </p>

<p>This is probably best done as a server-side process, ala procmail although I personally hate procmail going back 15-20 years and wouldn&#8217;t wish that on anybody. One could also use a scripting language like php or perl or whatever with an IMAP extension and be able to examine things in the attachment structure and grab the content-disposition filename; compare with *.ics and also look at the content-type to be sure it wasn&#8217;t a Swiftview Image command Set file or some other .ics entity. This could possibly achieve the desired result. </p>

<p>But it certainly isn&#8217;t lazy.</p>

<p>There&#8217;s one other possibility &#8211; which would be a thunderbird plugin. I know they finally have a reasonably stable calendar plugin (it only took ten years). Might be able to grab the .xpi source for that or some other attachment handler and tweak it to output/copy the file. I haven&#8217;t actually done one of these plugins myself so I don&#8217;t know how hard it might be.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Ringnalda</title>
		<link>http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/comment-page-1/#comment-125749</link>
		<dc:creator>Phil Ringnalda</dc:creator>
		<pubDate>Sat, 13 Oct 2007 03:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/#comment-125749</guid>
		<description>&lt;p&gt;Hrm, I don&#039;t suppose they&#039;re all sent with the right content-type? It&#039;s a little ugly, but a filter on &quot;body contains&quot; does get to look at &lt;em&gt;all&lt;/em&gt; of a multipart/mixed body, so a filter looking for &quot;Content-Type: text/calendar&quot; ought to find them (well, and the notification mail from this comment, but I like to make the Lazy in Lazy Web refer to me, not just to you).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hrm, I don&#8217;t suppose they&#8217;re all sent with the right content-type? It&#8217;s a little ugly, but a filter on &#8220;body contains&#8221; does get to look at <em>all</em> of a multipart/mixed body, so a filter looking for &#8220;Content-Type: text/calendar&#8221; ought to find them (well, and the notification mail from this comment, but I like to make the Lazy in Lazy Web refer to me, not just to you).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Macgirvin</title>
		<link>http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/comment-page-1/#comment-125603</link>
		<dc:creator>Mike Macgirvin</dc:creator>
		<pubDate>Fri, 12 Oct 2007 23:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://laughingmeme.org/2007/10/12/how-do-i-create-a-thunderbird-message-filter-for-an-attachment-type/#comment-125603</guid>
		<description>&lt;p&gt;You could try filtering on the mime type declaration - e.g. body contains&lt;/p&gt;

&lt;p&gt;Content-type: text/calendar&lt;/p&gt;

&lt;p&gt;That&#039;s about the only thing I can think of that might work.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You could try filtering on the mime type declaration &#8211; e.g. body contains</p>

<p>Content-type: text/calendar</p>

<p>That&#8217;s about the only thing I can think of that might work.</p>]]></content:encoded>
	</item>
</channel>
</rss>
