This past month I built a little system that might be useful for your reference. I was thinking of doing a writeup since PM helped me to get a start on it.

It continually connects to a mailbox with Net::POP3, scans the subject and sender, downloads email, and strips out and renames photos and text with MIME::Tools. Another perl process uses Win32::OLE to constantly update a MyAlbum slideshow to show the photos that people sent in from their camera-equipped phones.

It keeps track of what was downloaded by saving the Unique ID hash provided by the server, so that you can also download email with Outlook and not lose your place. (You could download to Outlook and erase from the server though).

If you have to look at headers the MIME Head object may be useful anyway also look at the Mail::Head.

Anyway, if what you are really doing is an SMS gateway then Outlook is just going to give you big problems. How about making a separate account for the gateway, or using a procmail (if you are on unix)? By the way there is a bunch of Perl SMS stuff here.

Of course if you only have one account you could download the mail to a local POP server running on your machine with fetchmail or this perl program, then retrieve non-SMS mail using Outlook from the local cache. Then you won't have to worry about email being deleted.

By the way I would certainly like to hear how the SMS part is done since I may have to implement this art project in SMS early next year and there is no SMS in Japan where I live.

Matt R.


In reply to Re: Outlook - Custom Action by mattr
in thread Outlook - Custom Action by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.