Add keep/delete config to pop3 client
authorArt Cancro <ajc@citadel.org>
Mon, 29 Oct 2007 17:12:35 +0000 (17:12 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 29 Oct 2007 17:12:35 +0000 (17:12 +0000)
webcit/roomops.c

index ae8490bdf81db5c37dfb2a6b8f534eafad9acb9b..80c8e4e1447c74e75ddcc582fbc59017733e52a2 100644 (file)
@@ -1776,6 +1776,8 @@ void display_editroom(void)
                wprintf(_("User name"));
                wprintf("</td><td>");
                wprintf(_("Password"));
+               wprintf("</td><td>");
+               wprintf(_("Keep messages on server?"));
                wprintf("</td></tr>");
 
                serv_puts("GNET");
@@ -1798,6 +1800,8 @@ void display_editroom(void)
 
                                wprintf("<td>*****</td>");              /* Don't show the password */
 
+                               wprintf("<td>%s</td>", extract_int(buf, 4) ? _("Yes") : _("No"));
+
                                wprintf("<td>");
                                wprintf(" <a href=\"netedit&cmd=remove&tab=feeds&line=pop3client|");
                                urlescputs(recp);
@@ -1824,6 +1828,9 @@ void display_editroom(void)
                wprintf("<input type=\"password\" id=\"add_as_pop3pass\" NAME=\"line_pop3pass\">\n");
                wprintf("</td>");
                wprintf("<td>");
+               wprintf("<input type=\"checkbox\" id=\"add_as_pop3keep\" NAME=\"line_pop3keep\" VALUE=\"1\">");
+               wprintf("</td>");
+               wprintf("<td>");
                wprintf("<input type=\"submit\" NAME=\"add_button\" VALUE=\"%s\">", _("Add"));
                wprintf("</td></tr>");
                wprintf("</form></table>\n");
@@ -2584,6 +2591,8 @@ void netedit(void) {
                strcat(line, bstr("line_pop3user"));
                strcat(line, "|");
                strcat(line, bstr("line_pop3pass"));
+               strcat(line, "|");
+               strcat(line, atoi(bstr("line_pop3keep")) ? "1" : "0" );
                strcat(line, bstr("suffix"));
        }
        else if (!IsEmptyStr(bstr("line"))) {