X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmsgbase.c;h=e1322aeaa00fea8a5ce5aa6d96873ced919bf48a;hb=89f56875555882a824fa8e3f64559ec817f44d3c;hp=f6cbf4b9e4974106385007cd13e8898cd4ea2a1c;hpb=bd86f88d8e986ac8ecb487fd9796fcf5b103ad37;p=citadel.git diff --git a/citadel/msgbase.c b/citadel/msgbase.c index f6cbf4b9e..e1322aeaa 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -848,6 +848,7 @@ void make_message( /* Don't confuse the poor folks if it's not routed mail. */ strcpy(dest_node, ""); + /* If net_type is M_BINARY, split out the destination node. */ if (net_type == M_BINARY) { strcpy(dest_node,NODENAME); @@ -878,7 +879,14 @@ void make_message( fprintf(fp,"A%s%c",fake_name,0); else fprintf(fp,"A%s%c",author->fullname,0); /* author */ - fprintf(fp,"O%s%c",CC->quickroom.QRname,0); /* room */ + + if (CC->quickroom.QRflags & QR_MAILBOX) { /* room */ + fprintf(fp,"O%s%c", &CC->quickroom.QRname[11], 0); + } + else { + fprintf(fp,"O%s%c",CC->quickroom.QRname,0); + } + fprintf(fp,"N%s%c",NODENAME,0); /* nodename */ fprintf(fp,"H%s%c",HUMANNODE,0); /* human nodename */