31 |
node->next = NULL; |
node->next = NULL; |
32 |
node->server[0] = node->username[0] = node->password[0] = 0; |
node->server[0] = node->username[0] = node->password[0] = 0; |
33 |
node->port = 143; |
node->port = 143; |
34 |
|
#ifdef SSL_TLS |
35 |
|
node->ssl = SSL_DISABLED; |
36 |
|
#endif |
37 |
node->mboxes = NULL; |
node->mboxes = NULL; |
38 |
} |
} |
39 |
|
|
97 |
printf("debug: PORT: %d\n", node->port); |
printf("debug: PORT: %d\n", node->port); |
98 |
#endif |
#endif |
99 |
} |
} |
100 |
|
#ifdef SSL_TLS |
101 |
|
if (match[5].rm_so != -1) { |
102 |
|
if (match[4].rm_so == -1) |
103 |
|
node->port = 993; |
104 |
|
|
105 |
|
if (strcasestr(line + match[5].rm_so, "ssl3")) |
106 |
|
node->ssl = SSL_SSL_V3; |
107 |
|
else if (strcasestr(line + match[5].rm_so, "tls1")) |
108 |
|
node->ssl = SSL_TLS_V1; |
109 |
|
else |
110 |
|
node->ssl = SSL_SSL_V2; |
111 |
|
} |
112 |
|
#endif |
113 |
append_account(node); |
append_account(node); |
114 |
cur_acct = node; |
cur_acct = node; |
115 |
|
|
552 |
|
|
553 |
|
|
554 |
/* |
/* |
555 |
* Go through the mailbox-group tree, and free the memory of each node. |
* Go through the mailbox-group tree, and free the allocated memory of |
556 |
|
* each node. |
557 |
*/ |
*/ |
558 |
void destroy_mboxgrp(mboxgrp_t * node) |
void destroy_mboxgrp(mboxgrp_t * node) |
559 |
{ |
{ |