From 7e44b069ee1c7efddc7231abc56b2a7a408ea390 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 10 Dec 2023 13:33:03 +0100 Subject: Deleted check_emailaddr() --- FICS/utils.c | 24 +----------------------- FICS/utils.h | 2 +- 2 files changed, 2 insertions(+), 24 deletions(-) (limited to 'FICS') diff --git a/FICS/utils.c b/FICS/utils.c index 3233c11..cd3daec 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -21,6 +21,7 @@ name email yy/mm/dd Change Richard Nash 93/10/22 Created Markus Uhlin 23/12/10 Fixed compiler warnings (plus more) + Markus Uhlin 23/12/10 Deleted check_emailaddr() */ #include "stdinclude.h" @@ -104,29 +105,6 @@ PUBLIC char *nextword(char *str) return eatwhite(eatword(str)); } -/* check_the_email_address function: */ -/* -PUBLIC int check_emailaddr(char *email) -{ - int qbuflen; - char qabuf[5120]; - - if ((email = strchr(email, '@')) == NULL) - return 2; - email++; - - res_init(); - _res.options = (RES_INIT | RES_RECURSE); - if ((qbuflen = res_mkquery(QUERY, email, C_IN, T_ANY, NULL, 0, NULL, qabuf, sizeof(qabuf))) == -1) - return 1; - - if (res_send(qabuf, qbuflen, qabuf, sizeof(qabuf)) == -1) - return 1; - - return (_getshort(qabuf + 6) ? 0 : 2); -} -*/ - PUBLIC int mail_string_to_address(char *addr, char *subj, char *str) { char com[1000]; diff --git a/FICS/utils.h b/FICS/utils.h index fbb573f..e7f6182 100644 --- a/FICS/utils.h +++ b/FICS/utils.h @@ -21,6 +21,7 @@ name email yy/mm/dd Change Richard Nash 93/10/22 Created Markus Uhlin 23/12/10 Renamed strdup() to xstrdup() + Markus Uhlin 23/12/10 Deleted check_emailaddr() */ #ifndef _UTILS_H @@ -57,7 +58,6 @@ extern char *eattailwhite( ); /* Returns the next word in a given string >eatwhite(eatword(foo))< */ extern char *nextword( ); -extern int check_emailaddr(char *); extern int mail_string_to_address(); extern int mail_string_to_user(); extern int mail_file_to_address(char *, char *, char *); -- cgit v1.2.3