OT: base64 decoding

Bill Campbell bill at celestial.com
Thu May 7 13:29:57 PDT 2009


On Thu, May 07, 2009, John Esak wrote:
>It was me. I wrote the base64 conversion.  I needed to because Mr. Mailman
>or whatever Dave Stauble's program was called Mail Manager or something like
>that I forget...used to have a feature in it that would let you take
>anything that was attached to an eamil as a base64 file and do something
>with it... Anything... It was a command you "named" and listed in a config
>text file somewhere on Unix. Then When any piece of mail to a particular
>named person came in, the program would detach any base64 attachment, and
>give it to the command or set of commands.  First thing I did was convert it
>to regular text and then pass it into our order system.  Getting that code
>now would be tough, not working for Nexus anymore.  I might have it
>somewhere, but I doubt it. 
>
>I essentially copied out a small C script I got from somewhere and just
>translated it to filePro lingo....

This sort of thing is easy to do with python or perl without
having to resort to C.  While I have written a lot of C code,
it's very rare when I find something that cannot be done much
more easily and quickly in python.

On the other hand, I finally got around to figuring out how to
build multi-part e-mail messages in python instead of just using
the ``mutt -a'' command to create the messages.

FWIW, I have been playing with OpenSolaris, and found that its
``mail'' command doesn't grok the -s option for subject.

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

Government spending?  I don't know what it's all about.  I don't know
any more about this thing than an economist does, and, God knows, he
doesn't know much.  -- Will Rogers


More information about the Filepro-list mailing list