Fix bug in private mail
This commit is contained in:
parent
db48225539
commit
b95435d3f5
@ -261,8 +261,8 @@ struct msg_headers *read_message_headers(int msgconf, int msgarea, struct user_r
|
|||||||
JAM_DelSubPacket(jsp);
|
JAM_DelSubPacket(jsp);
|
||||||
|
|
||||||
if (jmh.Attribute & MSG_PRIVATE) {
|
if (jmh.Attribute & MSG_PRIVATE) {
|
||||||
if (!msg_is_to(gUser, jamm->to, jamm->daddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf) &&
|
if (!msg_is_to(user, jamm->to, jamm->daddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf) &&
|
||||||
!msg_is_from(gUser, jamm->from, jamm->oaddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf)) {
|
!msg_is_from(user, jamm->from, jamm->oaddress, conf.mail_conferences[msgconf]->nettype, conf.mail_conferences[msgconf]->realnames, msgconf)) {
|
||||||
|
|
||||||
if (jamm->subject != NULL) {
|
if (jamm->subject != NULL) {
|
||||||
free(jamm->subject);
|
free(jamm->subject);
|
||||||
|
@ -295,7 +295,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
|
|||||||
free(replyid);
|
free(replyid);
|
||||||
}
|
}
|
||||||
JAM_CloseMB(jb);
|
JAM_CloseMB(jb);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
body = (char *)malloc(jmh.TxtLen);
|
body = (char *)malloc(jmh.TxtLen);
|
||||||
|
Reference in New Issue
Block a user