doesn't work with WWIV netmail
This commit is contained in:
parent
467adf78c5
commit
fe197a13c3
18
mail_menu.c
18
mail_menu.c
@ -145,7 +145,6 @@ int msg_is_to(char *addressed_to, char *address, int type, int rn, int msgconf)
|
|||||||
|
|
||||||
int msg_is_from(char *addressed_from, char *address, int type, int rn, int msgconf) {
|
int msg_is_from(char *addressed_from, char *address, int type, int rn, int msgconf) {
|
||||||
char *myname;
|
char *myname;
|
||||||
char *wwiv_addressee;
|
|
||||||
struct fido_addr *orig;
|
struct fido_addr *orig;
|
||||||
int j;
|
int j;
|
||||||
if (rn) {
|
if (rn) {
|
||||||
@ -155,23 +154,6 @@ int msg_is_from(char *addressed_from, char *address, int type, int rn, int msgco
|
|||||||
myname = strdup(gUser->loginname);
|
myname = strdup(gUser->loginname);
|
||||||
}
|
}
|
||||||
if (type == NETWORK_WWIV) {
|
if (type == NETWORK_WWIV) {
|
||||||
wwiv_addressee = strdup(addressed_from);
|
|
||||||
for (j=1;j<strlen(addressed_from);j++) {
|
|
||||||
if (wwiv_addressee[j] == '(' || wwiv_addressee[j] == '#') {
|
|
||||||
wwiv_addressee[j-1] = '\0';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strcasecmp(myname, wwiv_addressee) == 0) {
|
|
||||||
// name match
|
|
||||||
if (conf.mail_conferences[msgconf]->wwivnode == atoi(address)) {
|
|
||||||
free(wwiv_addressee);
|
|
||||||
free(myname);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
free(wwiv_addressee);
|
|
||||||
free(myname);
|
free(myname);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (type == NETWORK_FIDO) {
|
} else if (type == NETWORK_FIDO) {
|
||||||
|
Reference in New Issue
Block a user