* Shut off hostname resolution when dealing with Unix domain sockets
[citadel.git] / citadel / routines2.c
index d2629cd36efcd300fc2d6f3a0c4ecb452766e5ec..d4e07c9292291e75c1eb6eb69ff50c53bb732e7f 100644 (file)
@@ -623,7 +623,7 @@ void read_bio(void)
 void do_system_configuration(void)
 {
        char buf[256];
-       char sc[23][256];
+       char sc[25][256];
        int expire_mode = 0;
        int expire_value = 0;
        int a;
@@ -637,7 +637,7 @@ void do_system_configuration(void)
        if (buf[0] == '1') {
                a = 0;
                while (serv_gets(buf), strcmp(buf, "000")) {
-                       if (a < 23)
+                       if (a < 25)
                                strcpy(&sc[a][0], buf);
                        ++a;
                }
@@ -695,6 +695,8 @@ void do_system_configuration(void)
        strprompt("Minimum number of worker threads", &sc[21][0], 3);
        strprompt("Maximum number of worker threads", &sc[22][0], 3);
        strprompt("Server-to-server networking password", &sc[15][0], 19);
+       strprompt("POP3 server port (-1 to disable)", &sc[23][0], 5);
+       strprompt("SMTP server port (-1 to disable)", &sc[24][0], 5);
 
 
        /* Expiry settings */
@@ -733,7 +735,7 @@ void do_system_configuration(void)
                serv_puts("CONF set");
                serv_gets(buf);
                if (buf[0] == '4') {
-                       for (a = 0; a < 23; ++a)
+                       for (a = 0; a < 25; ++a)
                                serv_puts(&sc[a][0]);
                        serv_puts("000");
                }