From: Wilfried Göesgens Date: Sun, 3 Aug 2008 18:38:23 +0000 (+0000) Subject: * remove Dave's SYS_ users from the addressbookpopup, since you don't want to send... X-Git-Tag: v7.86~2054 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=95749fd514c4e6041e3117f20f0d7b461dc379cc * remove Dave's SYS_ users from the addressbookpopup, since you don't want to send them emails --- diff --git a/webcit/addressbook_popup.c b/webcit/addressbook_popup.c index 230e09dc3..6cfb5b5c3 100644 --- a/webcit/addressbook_popup.c +++ b/webcit/addressbook_popup.c @@ -118,6 +118,10 @@ void display_address_book_inner_div() { if (buf[0] == '1') while(len = serv_getln(buf, sizeof buf), strcmp(buf, "000")) { Name = (char*) malloc(len + 1); len = extract_token(Name, buf, 0, '|', len + 1); + if((len > 5) && (strncmp(Name, "SYS_", 4) == 0)) { + free(Name); + continue; + } Put(List, Name, len, Name, NULL); }