E-Scribe News : a programmer’s blog

About Me

PBX I'm Paul Bissex, and e-scribe.com is my consulting business. I build web applications using open source software, especially Django. I teach photographers web design and professional skills. In the '90s I did graphic design for newspapers and magazines. Then I wrote technology commentary and reviews for Wired, Salon.com, Chicago Tribune, and lots of little places you've never heard of. Feel free to email me.

Book

Python Web Development with Django I'm co-author of "Python Web Development with Django", an excellent guide to my favorite web framework. Its strong points include an introduction to Python, and better coverage of Django 1.0 than nearly anybody else. Published by Addison-Wesley, it is available from Amazon and your favorite technical bookstore as well.

Colophon

Built using Django, served by Apache and mod_wsgi. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive. The markup engine is Markdown.

Pile o'Tags

Stuff I Use

Akismet, del.icio.us, Django, dpaste.com, Emacs, FreeBSD, Freenode, jQuery, LaunchBar, MacPorts, Markdown, Mercurial, OS X, Postfix, Python, SQLite, Subversion, TextMate, Trac, Ubuntu Linux, wmii

Spam Report

At least 67570 pieces of comment spam killed since January 2008, mostly via Akismet.

Attachment-viewing script for mutt

My primary email client for my e-scribe mail is mutt. This came about in an almost accidental way.

Last summer I moved all my websites and mail to a new server. As I was setting it up I realized that I had an opportunity to decide that no passwords for this box would ever be sent in the clear. No telnet and no FTP, that was easy. But given the hassle of setting up encrypted mail authentication, I had in the past let that one slide. So I decided that until I set it up properly, I'd use a terminal-based mail reader over SSH. No unencrypted POP3 or IMAP for me. I looked around and decided mutt looked good.

I never got to the next step. I've really enjoyed using mutt thus far and have found it faster and generally less fussy than using a graphical mail client.

However, one big hole in the system until recently was the comparative hassle of dealing with attachments.

My current solution is mutt_save_attachment.py, a simple Python script that works as a helper to save attachments to a directory where you can view them with a web browser. Configuration is explained in the docstring, but basically amounts to 1) adding some lines to .mailcap and 2) setting two environment variables.

I'm sure there are other similar scripts floating around out there. Let me know what you think!

Friday, May 11th, 2007
+ + +
6 comments

Comment from Chas Emerick , later that day

Wow, that's brave. Your next post is going to be about how to customize gnus, right? ;-)

Actually, I think I remember you mentioning this before. While the mutt implants may have entrenched themselves too deeply, you could try a hosted email service (like http://webmail.us, which is what I use). It's pretty cheap (especially considering the server maintenance it saves me), and I've not had to tunnel SMTP or POP over SSH ever since taking that route.

Comment from R Brown , later that day

mutt is excellent. muttzen is always appreciated.

Comment from Paul , later that day

Chas -- in fact, we do use webmail.us at work (about 40 users) and it has been a big improvement over hosting it ourselves. I use Mail.app there, since we're an all-Mac operation and it's hard to beat drag-n-drop for shipping documents around. But naturally I set up mutt (with IMAP support) for myself on the server too!

Despite being a mild emacs-phile, I've never tried using it for mail. It's my `$EDITOR` though, so much of the time I'm in mutt I'm actually in emacs.

Comment from tabo , 4 days later

Paul, you can use enrcypted communication with your mail server even if it doesn't support authentication just by using a SSH tunnel. In fact you can use SSH tunnels to secure all your communications.

Comment from Paul , 5 days later

Absolutely true -- however, that still fell under the category of "hassle" at the time!

Comment from SEO , 3 weeks later

Thanks for introducing me to Mutz, it seems to be a good solution to my circumstances.

He's got the plainest looking site i've ever seen, but hey i've just put aside a couple of hours to give it a shot.

Post a comment

Thanks for reading! Please note: Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.


(Will not be shared)

(Optional)