On 27/01/2004, David Grimberg wrote:
> I was just thinking about the number of times that I've been out around town
> lately and had need of giving someone my private email address, specifically
> potential personal business partner.
> Anyway, I was thinking that it would be really great if someone with
> experience in writing applications for hand held devices (Palm OS) would
> write a tagged address generator app such that after preloading the app with
> my (potentially multiple) base email address(s), crypt key(s), separator
> preference(s), and preferred tag names it would generate any address I
> desire.
> Any comments/suggestions/volunteers?
I tried something a few weeks ago that might be of use (read the
caveats at the bottom!). Basically I have a script that allows me to
give out addresses like whenever I like:
[EMAIL PROTECTED]
The script is called from a .qmail file and splits this up and
generates a dated address based on my real email address
([EMAIL PROTECTED]), creates a .qmail-somename-somekeyword-timeout
file that forwards to this address.
I then have a .qmail-somename-somekeyword-default file that contains a
pipe to this script.
From memory the shell script was something like:
------------%<-----------------------
#!/bin/sh
TMDA=/path/to/tmda/bin
HOME=/path/to/home/directory
MAILDIR=/path/to/Maildir
USER=`echo $LOCAL | awk -F- '{printf \$1}'`
KEYWORD=`echo $LOCAL | awk -F- '{printf \$2}'`
TIMEOUT=`echo $LOCAL | awk -F- '{printf \$3}'`
DATED=`$TMDA/tmda-address -d $TIMEOUT`
echo "&$DATED" > $HOME/.qmail-$USER-$KEYWORD-$TIMEOUT
safecat $MAILDIR/tmp $MAILDIR/new
exit 0
------------%<-----------------------
The script assumes LOCAL will hold a value like:
<user>-<keyword>-<timeout> (From lifewithqmail the variable should
hold the local portion of the recipient address (ie the bit on the
left side of the @))
The way it works is:
1) Email comes in to [EMAIL PROTECTED]
2) Initially, .qmail-name-keyword-1d doesnt exist so qmail hands off
control to .qmail-name-keyword-default
3) This passes the message to the script above
4) Script works out you want a 1 day timeout and generates a real
dated address for you.
5) This dated address is put into .qmail-name-keyword-1d
6) The initial message still needs to get delivered so it uses safecat
to deliver it to your mailbox (it could reinject it, but I cant
remember how I did that in my script).
The next time you receive email to [EMAIL PROTECTED], its
handled by .qmail-name-keyword-1d, forwarding the email to the dated
address.
Caveats:
1) The timeout obviously doesnt get set up until the first time they
use the address, so you are making the assumption that they'll use it
soon after receiving it.
2) Anyone can send to one of these addresses once they work out how
they're set up, so I wouldnt use them on public lists etc.
3) You can give out the same timeout address more than once, but the
first person to use it will start the timer as it were.
4) The initial message bypasses your nice tmda setup so you always
receive this.
Hope that helps!
Marcus
--
Marcus Williams -- http://www.quintic.co.uk
Quintic Ltd, 39 Newnham Road, Cambridge, UK
This message is private [ ] public [*]
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users