I'm trying to work out how to set up a system for web-based user self-registration (and self-maintenance) for a system we may impliment soon-ish.

The cgi for filling in forms and updating databases is all fairly straight forward...

One thing I want to do is something inspired by what mailing lists do:
When a user forgets their password, they can supply their email address and ask for a new password. What I'd like to do is to email the user with a message that says "reply to this to get a new password sent to you" - thus avoiding the id-10T who thinks it's fun to fill-in a random email address and get their password changed on them.

Thus, I want to read a message that comes in, probably identified by some random "session-id"-string in the subject-line, and then generate a new password for the user - which I email back to them.

I'm not really able to have the main mail-server configuration changed (it's for the whole Uni, after all :), so I'm really stuck to digging through a mailbox.

I'm happy to code up a bunch of packages etc to do all the creating, posting, updating, etc that is needed... however does anyone have any thoughts on how to logically match a reply with an action? (and I'd try to set up a solution that can be expanded to doing actions other than just changing the password :)

ta...



-- Ian Stuart
A man depriving some poor village, somewhere, of a first-class idiot.

In reply to mail-based interface for database manipulation..? by kiz

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.