/[imapfilter]/imapfilter/data.c
ViewVC logotype

Diff of /imapfilter/data.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by lefcha, Mon Oct 8 08:47:48 2001 UTC revision 1.12 by lefcha, Wed Oct 17 14:06:20 2001 UTC
# Line 31  void init_account(account_t * node) Line 31  void init_account(account_t * node)
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    
# Line 94  int set_account(char *line, regmatch_t * Line 97  int set_account(char *line, regmatch_t *
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    
# Line 536  void destroy_data(void) Line 552  void destroy_data(void)
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  {  {

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26