<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2013-12-02T19:30:20Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>mailpie moves to github</title>
<issued>2013-12-02T19:30:20Z</issued>
<modified>2013-12-02T19:30:20Z</modified>
<id>https://gamma.unpythonic.net/01386012620</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01386012620"/>
<content type="text/html" mode="escaped">

My e-mail full text search software &lt;a href=&quot;https://gamma.unpythonic.net/software/mailpie&quot;&gt;mailpie&lt;/a&gt; is
now hosted at github: &lt;a href=&quot;https://github.com/jepler/mailpie&quot;&gt;https://github.com/jepler/mailpie&lt;/a&gt;

&lt;p&gt;</content>
</entry>
<entry>
<title>tnef2mime: automatically extract parts from winmail.dat</title>
<issued>2011-09-20T18:49:42Z</issued>
<modified>2011-09-20T18:49:42Z</modified>
<id>https://gamma.unpythonic.net/01316544582</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01316544582"/>
<content type="text/html" mode="escaped">

In her professional life, my fiancée routinely gets emails with attachments in
the 'winmail.dat' aka application/ms-tnef format.  It does her no good to
berate these prisoners of proprietary software, so I set out to provide her
with an easy-to-use solution that would work on her end.  Now, prompted by
&lt;a href=&quot;http://www.carbon-project.org/TNEF_or_how_to_lock_up_your_e_mails.html&quot;&gt;this blog entry&lt;/a&gt; I am posting it for others to use.

&lt;p&gt;There are a number of programs that can rescue data from this proprietary
attachment format, but I was not aware of a program that would automatically
convert the winmail.dat attachment to (a series of) regular mime attachments.
(it appears that &lt;a href=&quot;http://freshmeat.net/projects/ytnef_smtpd_py&quot;&gt;ytnef_smtpd&lt;/a&gt; may be such a program)

&lt;p&gt;So I wrote one, &lt;a href=&quot;https://media.unpythonic.net/emergent-files/01316544582/tnef2mime.py&quot;&gt;tnef2mime.py&lt;/a&gt;.   tnef2mime reads a message on
standard input, combs it for ms-tnef attachments, and uses the tnef(1) program
to extract their contents.  Then it takes the extracted files, adds them
as new MIME parts, and prints the whole resulting message.

&lt;p&gt;This is suitable for use in e.g. procmail:
&lt;blockquote&gt;&lt;pre&gt;
:0fw
| tnef2mime
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Several steps are taken in order to minimize the chances for data loss:  Just
in case it did an imperfect job, it leaves the existing ms-tnef attachment
intact.  If any problem is encountered, the unmodified message is written.

&lt;p&gt;This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

&lt;p&gt;&lt;p&gt;&lt;b&gt;Files currently attached to this page:&lt;/b&gt;
&lt;table cellpadding=5 style=&quot;width:auto!important; clear:none!important&quot;&gt;&lt;col&gt;&lt;col style=&quot;text-align: right&quot;&gt;&lt;tr bgcolor=#eeeeee&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01316544582/tnef2mime.py&quot;&gt;tnef2mime.py&lt;/a&gt;&lt;/td&gt;&lt;td&gt;3.1kB&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;
</content>
</entry>
<entry>
<title>mailpie: updated to version 0.2</title>
<issued>2008-05-01T21:33:23Z</issued>
<modified>2008-05-01T21:33:23Z</modified>
<id>https://gamma.unpythonic.net/01209677603</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01209677603"/>
<content type="text/html" mode="escaped">
I love &lt;a href=&quot;https://gamma.unpythonic.net/software/mailpie&quot;&gt;this little program&lt;/a&gt; and now I don't know
how I lived without it.

&lt;p&gt;Aside from bugs fixed, the main improvement is a double-level indexing scheme
that makes it fast to add messages just one or a few at a time.
</content>
</entry>
<entry>
<title>mailpie 0.1: full-text search of large e-mail archives</title>
<issued>2008-04-26T17:03:57Z</issued>
<modified>2008-04-26T17:03:57Z</modified>
<id>https://gamma.unpythonic.net/software/01209229437</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/software/01209229437"/>
<content type="text/html" mode="escaped">
&lt;a href=&quot;https://gamma.unpythonic.net/software/mailpie&quot;&gt;mailpie is a suite of programs for commandline full-text search of large e-mail archives&lt;/a&gt;.
</content>
</entry>
</feed>
