char buf[256];
int passes = 0;
char sourcealias[1024];
+ int msgtype = 0;
safestrncpy(sourcealias, source, sizeof(sourcealias) );
* a few times, in case we accidentally hit an alias loop
*/
strcpy(sourcealias, user);
- alias(user);
+ msgtype = alias(user);
+ lprintf(9, "msgtype for <%s> is %d\n", msgtype, user);
if ( (strcasecmp(user, sourcealias)) && (++passes < 3) )
goto REALIAS;
strcpy(destuser, user);
strcpy(desthost, node);
- return(rfc822_address_invalid); /* unknown error */
+ if (msgtype == MES_BINARY) return(rfc822_address_on_citadel_network);
+ return(rfc822_address_nonlocal);
}