Fixed pseudo for internet areas
This commit is contained in:
parent
50bf39660f
commit
f332ab3c06
@ -12,8 +12,10 @@ ______________________________________________________________________
|
||||
Notes for GoldED+ 1.1.5, /snapshot/
|
||||
______________________________________________________________________
|
||||
|
||||
- Fixed pseudo in Internet areas.
|
||||
|
||||
- Partially fixed ATTRIBSEMAIL and ATTRIBSNEWS operation. They still
|
||||
not affected to the areas defined as such through the AREAISEMAIL
|
||||
not affected the areas defined as such through the AREAISEMAIL
|
||||
and AREAISNEWS and if no ATTRIBUTES defined in the Random System
|
||||
group. It seems will never been fixed but will rather documented as
|
||||
a feature.
|
||||
|
@ -908,8 +908,12 @@ bool guserbase::lookup_addressbook(GMsg* msg, char* name, char* aka, bool browse
|
||||
|
||||
void guserbase::build_pseudo(GMsg* msg, char* name, char* aka, bool direction) {
|
||||
|
||||
if(*msg->iaddr and isuucp(name))
|
||||
strcpy(direction ? msg->pseudoto : msg->pseudofrom, strlword(msg->iaddr, " @."));
|
||||
if(*msg->iaddr and isuucp(name)) {
|
||||
if(direction)
|
||||
strcpy(msg->pseudoto, strlword(msg->iaddr, " @."));
|
||||
else
|
||||
strcpy(msg->pseudofrom, strlword(msg->iorig, " @."));
|
||||
}
|
||||
else
|
||||
strcpy(direction ? msg->pseudoto : msg->pseudofrom, strlword(name, " @."));
|
||||
|
||||
@ -965,9 +969,9 @@ void build_pseudo(GMsg* msg, bool direction) {
|
||||
char buf[128];
|
||||
|
||||
if(direction)
|
||||
p.build_pseudo(msg, strbtrim(msg->To()), msg->dest.make_string(buf));
|
||||
p.build_pseudo(msg, strbtrim(msg->To()), AA->isinternet() ? msg->iaddr : msg->dest.make_string(buf));
|
||||
else
|
||||
p.build_pseudo(msg, strbtrim(msg->By()), msg->orig.make_string(buf), false);
|
||||
p.build_pseudo(msg, strbtrim(msg->By()), AA->isinternet() ? msg->iorig : msg->orig.make_string(buf), false);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user