Great Circle Associates Majordomo-Users
(December 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Programming Assistance...
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Mon, 9 Dec 1996 09:28:18 -0600 (CST)
To: jseale @ website . com (WebSite)
Cc: Majordomo-Users @ GreatCircle . COM
In-reply-to: <32A9B193.354C@website.com> from "WebSite" at Dec 7, 96 10:04:03 am
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ WebSite writes: ]
> 
> I'm trying to implement majordomo on my server. I'm a fledgling perl
> programmer and really don't konw how to modify the following code. I
> have a form that sends a subscribe command to majordomo any time a
> person puts in a comment. My problem is that is a person only puts in
> fred and doesn't put in fred@aol.com my server appends it to read
> fred@website.com. I'd like to add a couple of lines to the perl
> script below to exclude @website.com from the "valid" e-mail
> addresses. Can you help me or send me in the right direction???
> 
> # figure out who's trying to subscribe, and check that it's a valid
> address
> local($subscriber) = join(" ", @_);
> if ($subscriber eq "") {
>        $subscriber = $reply_to;
>        }
> if (! &valid_addr($subscriber)) {
>        &squawk("subscribe: invalid address '$subscriber'");
>        return 0;
>        }

Apparently you're running 1.93, because 1.94 aborts on addresses without
a domain.

-- 
 Dave Wolfe



References:
Indexed By Date Previous: BOUNCE list-name: Admin Request
From: Ronald Hahm <hahm@cedarnet.org>
Next: Re: BOUNCE list-name: Admin Request
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Indexed By Thread Previous: Programming Assistance...
From: WebSite <jseale@website.com>
Next: virtual mailing list managers
From: Mahin Bahrami <mahin@ataraxia.websightz.com>

Google
 
Search Internet Search www.greatcircle.com