Hi Lamson List
- From:
- Troy Sorzano
- Date:
- 2009-12-09 @ 03:08
Hi All,
Found lamson a few days ago after a long search for a SMTP framework. I
have the samples up and running on OSX and python 2.6.4 to mess around. I
have a few projects I am working on.
Email to DekiWiki:
I would like to send emails to Lamson and have it update a
DekiWiki customer history page specified in the subject. This should
allow my techs to do a quick brain dump after a service call and get it
into the wiki. Lamson will verify the email was send from an authorized
email address. It will look at the subject line for the customer name
which is the DekiWiki page that will be updated. Using this sample code it
will read the wiki page authenticating as lamson.
http://developer.mindtouch.com/Deki/FAQ/API/How_do_I...Authenticate_and_read_entries_with_Python
If the page is not found it will reply to the email with an error.
If the page is found the email will be added to the top of the page with
the email sender and date as the section header. Maybe strip the sigs
and crap.
The page will be saved back to DekiWiki using this sample code.
http://benjamin.smedbergs.us/blog/2008-10-21/putting-and-deleteing-in-python-urllib2/
Email transformation:
I have many automated alert system that send emails. I need some
way to control, relay and transform them depending on the customer, system
and alert. So by having them all sent to Lamson I can make some magic
happen.
For example Web Filter override alert. Right now the system
generating those alerts is just putting a CSV string in the email which is
very hard to understand. I would like to parse and pretty it up then
relay the transformed email to the primary contact for the customer. If
the overridden website was against corp policy like an MP3 or porno site
the customers IT police can storm the cube. But if the website that was
overriden was a legitimate business site the primary contact can reply
with ALLOW in the subject and lamson will call a process to have it
automatically added to the allow list for that customers firewall using
SSH. This will create a nice self maintaining Web Filter.
Thanks,
Troy