5 Mar 2006 richdawe   » (Journeyer)

Idea: SMTP shell

During my $DAY_JOB I find myself typing in the same stuff into SMTP sessions. Recently I got to thinking that an SMTP shell would be useful -- command-line history, ability to repeat commands, sequences of commands, search through the history, etc. Replaying DATA would not only do the DATA command, but also the data that you typed in.

So I put it on my to-do list. But you can achieve most of what I wanted using netcat and perl (Linux example):

cat<<EOT > session.smtp
MAIL FROM:<fred@company.com>
RCPT TO:<melissa@company.com>
DATA
Subject: boo!

.
QUIT
EOT
perl -pe 's/\n/\r\n/' session.smtp | nc mail.company.com smtp

It would still be useful to have an SMTP shell for recording sessions, so you choose to play back bits later. E.g.: replay this, but negotiate export-strength TLS as well. I may still write it (but don't hold your breath).

Music

"Successful Enter (Axel Konrad remix)" by Headquarter

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!