Check for new mail in subscribed areas
This commit is contained in:
parent
ed1b062420
commit
180c124b80
@ -137,7 +137,7 @@ Enter the conference number:
|
||||
%d. %s\r\n
|
||||
Enter the area number:
|
||||
\r\nInvalid area number!\r\n
|
||||
\r\nScan for new mail? (Y/N) :
|
||||
\r\nScan for new mail? (Y/N/S):
|
||||
\r\n\e[1;32m%d. %s\e[0m\r\n
|
||||
\e[1;37m --> %d. %s (%d new)\e[0m\r\n
|
||||
\r\n\e[0mTL: %dm :>
|
||||
|
@ -2590,7 +2590,7 @@ void mail_scan(struct user_record *user) {
|
||||
s_printf(get_string(139));
|
||||
c = s_getc();
|
||||
|
||||
if (tolower(c) == 'y') {
|
||||
if (tolower(c) == 'y' || tolower(c) == 's') {
|
||||
for (i=0;i<conf.mail_conference_count;i++) {
|
||||
if (conf.mail_conferences[i]->sec_level > user->sec_level) {
|
||||
continue;
|
||||
@ -2606,6 +2606,11 @@ void mail_scan(struct user_record *user) {
|
||||
if (conf.mail_conferences[i]->mail_areas[j]->read_sec_level > user->sec_level) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (tolower(c) == 's' && !msgbase_is_subscribed(i, j)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
jb = open_jam_base(conf.mail_conferences[i]->mail_areas[j]->path);
|
||||
if (!jb) {
|
||||
dolog("Unable to open message base");
|
||||
|
Reference in New Issue
Block a user