Chocomail
Up one level
Chocomail is small tool to generate email address. Email address has an expired date, and when plug into procmail or maildrop, you can verify if the adress has not expired.
I wrote this small tool (in C) to be able to generate random adress. A lot of websites, mailing-list required you to send your email adresse to view the content. So i'm pissed with spam using my real adress, i want some garbage email to use.
Documentation:
chocomail version 0.0.2
Copyright (C) 2003-2004 - Luc Saillard
This program may be freely redistributed under the terms of the GNU GPL
Usage: chocomail [options]
Options:
-g, --generate Generate a new email adress (default)
-c, --check Check if the email adress is valid
-q, --query=EMAIL Check if the email adress is valid
-h, --help Print this usage and exit
-v, --version Print the program version and exit
Options for generate mode:
-e, --end=DATE Give the last time this email will be valid
DATE is YYMMDD
-d, --domain=DOMAIN This domain will be put after the @
-t, --tag=TAG This is use to identify an unique email adress
-s, --crc=SIZE Len of the crc use to verify if an email is not forged
--count=COUNT This adress will not have a end date but a count reference
Procmailrc
This is small example use in ~/.procmailrc
...
EX_TEMPFAIL=75
EX_NOUSER=67
...
# Test using chocomail, if the address used is limited in time
:0
* ^TO_\/myloginname\.[a-za-Z0-9]+-[0-9]+-[0-9A-Fa-f]+@(mydomain1|mydomain2)\.org
{
saved_email="$MATCH" # Qmail compatibility
:0 w
* ? /usr/bin/chocomail -q $saved_email
{
LOG="Good mail"
}
ret=$?
:0 E
* ret ?? ^^1^^
{
EXITCODE=$EX_NOUSER
HOST
}
:0 E
{
EXITCODE=$EX_TEMPFAIL
HOST
}
}
Created by
Luc Saillard
Last updated: Dec 1, 2004
Last updated: Dec 1, 2004
