Enlightenment CVS committal Author : devilhorns Project : e_modules Module : mail
Dir : e_modules/mail Modified Files: e_mod_main.h e_mod_main.c imap.c e_mod_config_box.c Log Message: Add a local option for imap to make ecore_con able to use local imap servers, not just remote. =================================================================== RCS file: /cvs/e/e_modules/mail/e_mod_main.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_mod_main.h 12 Jun 2006 10:03:52 -0000 1.7 +++ e_mod_main.h 15 Sep 2006 17:20:17 -0000 1.8 @@ -58,6 +58,7 @@ int type; int port; + unsigned char local; unsigned char ssl; const char *host; const char *user; =================================================================== RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -3 -r1.37 -r1.38 --- e_mod_main.c 30 Aug 2006 20:06:27 -0000 1.37 +++ e_mod_main.c 15 Sep 2006 17:20:17 -0000 1.38 @@ -357,6 +357,7 @@ E_CONFIG_VAL (D, T, type, INT); E_CONFIG_VAL (D, T, port, INT); E_CONFIG_VAL (D, T, ssl, UCHAR); + E_CONFIG_VAL (D, T, local, UCHAR); E_CONFIG_VAL (D, T, host, STR); E_CONFIG_VAL (D, T, user, STR); E_CONFIG_VAL (D, T, pass, STR); =================================================================== RCS file: /cvs/e/e_modules/mail/imap.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- imap.c 17 Jul 2006 23:59:13 -0000 1.12 +++ imap.c 15 Sep 2006 17:20:17 -0000 1.13 @@ -14,9 +14,9 @@ void _mail_imap_check_mail (void *data) { - Ecore_Con_Type type = ECORE_CON_REMOTE_SYSTEM; - Evas_List *l, *j; - ImapClient *ic; + Ecore_Con_Type type; + Evas_List *l, *j; + ImapClient *ic; for (l = iservers; l; l = l->next) { @@ -44,7 +44,12 @@ ic = j->data; if (!ic->server->server) { - if (ecore_con_ssl_available_get () && (ic->config->ssl)) + if (ic->config->local) + type = ECORE_CON_LOCAL_SYSTEM; + else + type = ECORE_CON_REMOTE_SYSTEM; + + if (ecore_con_ssl_available_get () && (ic->config->ssl)) type |= ECORE_CON_USE_SSL; ic->server->state = IMAP_STATE_DISCONNECTED; ic->server->server = =================================================================== RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- e_mod_config_box.c 26 Aug 2006 19:27:18 -0000 1.14 +++ e_mod_config_box.c 15 Sep 2006 17:20:17 -0000 1.15 @@ -8,6 +8,7 @@ int use_exec; char *port; int ssl; + int local; char *host; char *user; char *pass; @@ -70,6 +71,7 @@ cfdata->type = 0; cfdata->ssl = 0; cfdata->use_exec = 0; + cfdata->local = 0; snprintf (buf, sizeof (buf), "110"); cfdata->port = strdup (buf); return; @@ -81,7 +83,8 @@ cfdata->type = cb->type; cfdata->ssl = cb->ssl; cfdata->use_exec = cb->use_exec; - + cfdata->local = cb->local; + snprintf (buf, sizeof (buf), "%d", cb->port); cfdata->port = strdup (buf); @@ -183,8 +186,13 @@ ob = e_widget_entry_add (evas, &cfdata->port); cfdata->port_entry = ob; e_widget_frametable_object_append (of, ob, 1, 1, 1, 1, 0, 0, 1, 0); - e_widget_list_object_append (o, of, 1, 1, 0.5); + ob = e_widget_label_add (evas, D_("Local:")); + e_widget_frametable_object_append (of, ob, 0, 2, 1, 1, 0, 0, 1, 0); + ob = e_widget_check_add (evas, "", &(cfdata->local)); + e_widget_frametable_object_append (of, ob, 1, 2, 1, 1, 0, 0, 1, 0); + e_widget_list_object_append (o, of, 1, 1, 0.5); + of = e_widget_frametable_add (evas, D_("Mailbox Settings"), 1); ob = e_widget_label_add (evas, D_("Name:")); e_widget_frametable_object_append (of, ob, 0, 0, 1, 1, 0, 0, 1, 0); @@ -250,6 +258,7 @@ cb->type = 0; cb->port = 110; cb->ssl = 0; + cb->local = 0; is_new = 1; } @@ -263,6 +272,8 @@ cb->type = cfdata->type; cb->port = atoi (cfdata->port); cb->ssl = cfdata->ssl; + cb->local = cfdata->local; + cb->use_exec = cfdata->use_exec; if (cb->exec) evas_stringshare_del (cb->exec); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs