Fiddling with unread messages
This commit is contained in:
parent
e5a07a3a25
commit
1b661f4f5b
@ -3587,7 +3587,6 @@ int new_messages(struct user_record *user, int conference, int area) {
|
|||||||
free(jb);
|
free(jb);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (conf.mail_conferences[conference]->mail_areas[area]->type == TYPE_NETMAIL_AREA) {
|
|
||||||
msghs = read_message_headers(conference, area, user, 0);
|
msghs = read_message_headers(conference, area, user, 0);
|
||||||
if (msghs != NULL) {
|
if (msghs != NULL) {
|
||||||
if (msghs->msg_count > 0) {
|
if (msghs->msg_count > 0) {
|
||||||
@ -3596,11 +3595,6 @@ int new_messages(struct user_record *user, int conference, int area) {
|
|||||||
free_message_headers(msghs);
|
free_message_headers(msghs);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
count = jbh.ActiveMsgs;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (jlr.HighReadMsg < jbh.ActiveMsgs) {
|
|
||||||
if (conf.mail_conferences[conference]->mail_areas[area]->type == TYPE_NETMAIL_AREA) {
|
|
||||||
msghs = read_message_headers(conference, area, user, 0);
|
msghs = read_message_headers(conference, area, user, 0);
|
||||||
if (msghs != NULL) {
|
if (msghs != NULL) {
|
||||||
if (msghs->msg_count > 0) {
|
if (msghs->msg_count > 0) {
|
||||||
@ -3610,10 +3604,6 @@ int new_messages(struct user_record *user, int conference, int area) {
|
|||||||
}
|
}
|
||||||
free_message_headers(msghs);
|
free_message_headers(msghs);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
count = jbh.ActiveMsgs - jlr.HighReadMsg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
JAM_CloseMB(jb);
|
JAM_CloseMB(jb);
|
||||||
free(jb);
|
free(jb);
|
||||||
|
Reference in New Issue
Block a user