On 01 March 2002, Matthew Cline said: > Even if this is a good idea (is it?), I don't know how to go about getting > the user's email adress. If it's the user who's invoking SA, there might be > some way to get the info from the environment, but I want to do it in a > platform independant manner. And if it's being invoked by a mailer server, > or as a proxy, then I'm stumped. Anyone have any ideas?
Guessing someone's email address programmatically is utterly impossible. [1] The only solution is to add a config variable where the user specifies his address; if you don't have it, you can't use your special code. Greg [1] OK, OK, I thought of an idea: send a message to a special cooked address that you (the programmer) control; for SA, it might be "[EMAIL PROTECTED]". A script behind this address would record everything it can think of about this incoming message, most importantly the SMTP and header sender addresses. Your program would wait five or ten minutes, so there's a reasonably good chance the test message has been received, and then query spamassassin.org (or whatever) through some other protocol. Hell, make the database of received email addresses accessible through a CGI script and make it HTTP. The database then says what the address of the current user is. While writing this completely crazy idea up, I've already thought of three of four reasons why it can't possibly work. Oh well. -- Greg Ward - software developer [EMAIL PROTECTED] MEMS Exchange http://www.mems-exchange.org _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk