Danger Will Robinson!

Remember - any script which is invoked in response to a received email AND has as one of its possible actions "send an email" should only be written if you have thought things through *very* carefully.

Why? Mail loop.
Send an email. Something happens (mail bounces? You get back a non-delivery message, which is a whole new message to process, so we send another mail. That bounces, so we get back a non-delivery message. Ooh - an incoming mail, I'll send a message. That bounces. Ouch.

Autoresponders are hard to write correctly if you don't have a reasonable amount of experience with email. There are also tools (the 'vacation' program on most unices) to help you do this right, anyway.

Ditto filtering incoming mail. Locking mail files is great fun and hard to do right. You can lose mail easily this way. Specialised programs like 'procmail' work very hard to do this right.

The insidious thing about the above is that you can do all the testing in the world and not show up any problems.

Then your autoresponder manages to get an email from another autoresponder and the world melts down.

Yours, a patronising, cynical, wizened, email bod


In reply to Re: .forward by jbert
in thread .forward 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.