diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 13:33:03 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 13:33:03 +0100 |
commit | 7e44b069ee1c7efddc7231abc56b2a7a408ea390 (patch) | |
tree | 7ac687f7ae970e2499939a8fdce1aaa487ad63b4 | |
parent | b72c48f1da2c2e07bf89526e62099b3d34243d2c (diff) |
Deleted check_emailaddr()
-rw-r--r-- | FICS/utils.c | 24 | ||||
-rw-r--r-- | FICS/utils.h | 2 |
2 files changed, 2 insertions, 24 deletions
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 *); |