E CVS: mail devilhorns

2007-12-30 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
module.desktop 


Log Message:
Fix up module.desktop descriptions for new box width.

===
RCS file: /cvs/e/e_modules/mail/module.desktop,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- module.desktop  4 Nov 2007 15:36:52 -   1.3
+++ module.desktop  30 Dec 2007 19:49:24 -  1.4
@@ -2,5 +2,5 @@
 Type=Link
 Name=Mail
 Icon=e-module-mail
-Comment=hilightMail Gadget/hilightbrMail notification gadget. 
ChecksbrPOP3, IMAP, maildir, and mboxbrmailboxes.
-Comment[it]=hilightModulo Mail/hilightbrModulo per notificare l'arrivo 
dibrposta. Controlla caselle POP3,brIMAP, maildir e mbox.
+Comment=hilightMail Gadget/hilightbrbrMail notification gadget. Checks 
POP3, IMAP, maildir, and mbox mailboxes.
+Comment[it]=hilightModulo Mail/hilightbrbrModulo per notificare 
l'arrivo di posta. Controlla caselle POP3, IMAP, maildir e mbox.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-12-29 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap2.c 


Log Message:
Launch exe for imap2 when new mail is found;

===
RCS file: /cvs/e/e_modules/mail/imap2.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- imap2.c 7 Nov 2007 18:31:27 -   1.12
+++ imap2.c 30 Dec 2007 00:04:37 -  1.13
@@ -222,6 +222,11 @@
ic-server = NULL;
 
_mail_set_text (ic-data);
+
+   if ((ic-config-num_new  0) 
+(ic-config-use_exec)  (ic-config-exec))
+ _mail_start_exe (ic-config);
+
return 0;
 }
 



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-11-24 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.h e_mod_main.c 


Log Message:
Fix mail module for gadcon menu breakage.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_mod_main.h31 Oct 2007 13:57:13 -  1.16
+++ e_mod_main.h25 Nov 2007 05:21:55 -  1.17
@@ -43,7 +43,6 @@
 {
E_Module *module;
E_Config_Dialog *config_dialog;
-   E_Menu *menu;
Evas_List *instances;
Evas_List *items;
 };
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- e_mod_main.c12 Nov 2007 04:15:51 -  1.53
+++ e_mod_main.c25 Nov 2007 05:21:55 -  1.54
@@ -221,7 +221,7 @@
 
   if (!inst)
 return;
-  if ((ev-button == 3)  (!mail_config-menu))
+  if ((ev-button == 3)  (!inst-gcc-menu))
 {
   E_Menu *mn, *sn;
   E_Menu_Item *mi;
@@ -229,8 +229,6 @@
   char buf[1024];
 
   mn = e_menu_new ();
-  e_menu_post_deactivate_callback_set (mn, _mail_menu_cb_post, inst);
-  mail_config-menu = mn;
 
   if ((inst-ci-boxes)  (evas_list_count (inst-ci-boxes)  0))
{
@@ -276,7 +274,7 @@
 e_util_zone_current_get (e_manager_current_get
  ()), x + ev-output.x,
 y + ev-output.y, 1, 1,
-E_MENU_POP_DIRECTION_DOWN, ev-timestamp);
+E_MENU_POP_DIRECTION_AUTO, ev-timestamp);
   evas_event_feed_mouse_up (inst-gcc-gadcon-evas, ev-button,
EVAS_BUTTON_NONE, ev-timestamp, NULL);
 }
@@ -345,15 +343,6 @@
 }
 
 static void
-_mail_menu_cb_post (void *data, E_Menu * m)
-{
-  if (!mail_config-menu)
-return;
-  e_object_del (E_OBJECT (mail_config-menu));
-  mail_config-menu = NULL;
-}
-
-static void
 _mail_menu_cb_configure (void *data, E_Menu * m, E_Menu_Item * mi)
 {
   Instance *inst = data;
@@ -495,12 +484,6 @@
 
   if (mail_config-config_dialog)
 e_object_del (E_OBJECT (mail_config-config_dialog));
-  if (mail_config-menu)
-{
-  e_menu_post_deactivate_callback_set (mail_config-menu, NULL, NULL);
-  e_object_del (E_OBJECT (mail_config-menu));
-  mail_config-menu = NULL;
-}
   while (mail_config-items)
 {
   Config_Item *ci;



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-10-31 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c e_mod_main.c e_mod_main.h 


Log Message:
Make mail module work w/ recent api breakage.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- e_mod_config.c  16 Sep 2007 00:04:26 -  1.22
+++ e_mod_config.c  31 Oct 2007 13:57:13 -  1.23
@@ -47,7 +47,7 @@
   v-basic.apply_cfdata = _basic_apply_data;
   v-basic.create_widgets = _basic_create_widgets;
 
-  snprintf (buf, sizeof (buf), %s/module.edj,
+  snprintf (buf, sizeof (buf), %s/e-module-mail.edj,
e_module_dir_get (mail_config-module));
   con = e_container_current_get (e_manager_current_get ());
   cfd = e_config_dialog_new (con, D_(Mail Configuration), Mail, 
_e_modules_mail_config_dialog, buf, 0, v, ci);
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- e_mod_main.c16 Sep 2007 03:31:40 -  1.51
+++ e_mod_main.c31 Oct 2007 13:57:13 -  1.52
@@ -475,6 +475,7 @@
 
   mail_config-items = evas_list_append (mail_config-items, ci);
 }
+
   mail_config-module = m;
   e_gadcon_provider_register (_gc_class);
   return m;
@@ -563,14 +564,6 @@
 e_modapi_save (E_Module * m)
 {
   e_config_domain_save (module.mail, conf_edd, mail_config);
-  return 1;
-}
-
-EAPI int
-e_modapi_about (E_Module * m)
-{
-  e_module_dialog_show (m, D_(Enlightenment Mail Module),
-   D_(This is a module to notify when you have new 
mail.));
   return 1;
 }
 
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_mod_main.h16 Sep 2007 00:04:26 -  1.15
+++ e_mod_main.h31 Oct 2007 13:57:13 -  1.16
@@ -88,7 +88,6 @@
 EAPI void *e_modapi_init(E_Module *m);
 EAPI int   e_modapi_shutdown(E_Module *m);
 EAPI int   e_modapi_save(E_Module *m);
-EAPI int   e_modapi_about(E_Module *m);
 
 void _config_mail_module(Config_Item *ci);
 void _mail_config_updated(Config_Item *ci);



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-04-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
configure.in 


Log Message:
Pkg-config patches from Lutin.

===
RCS file: /cvs/e/e_modules/mail/configure.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- configure.in25 Mar 2007 01:35:27 -  1.10
+++ configure.in25 Apr 2007 09:20:43 -  1.11
@@ -101,22 +101,9 @@
 #AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
 #AC_SUBST(dlopen_libs)
 
-AC_ARG_WITH(edje-config,
-[  --with-edje-config=EDJE_CONFIG  use edje-config specified ],
-[
-  EDJE_CONFIG=$withval;
-  echo using $EDJE_CONFIG for edje-config;
-/
-],[
-  PROG=edje-config;
-  AC_PATH_PROG(EDJE_CONFIG, $PROG, , $PATH)
-])
-edje_cflags=`$EDJE_CONFIG --cflags`
-edje_libs=`$EDJE_CONFIG --libs`
-AC_SUBST(edje_cflags)
-AC_SUBST(edje_libs)
+PKG_CHECK_MODULES(EDJE, [edje = 0.5.0])
 
-edje_cc=`$EDJE_CONFIG --prefix`/bin/edje_cc
+edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
 AC_ARG_WITH(edje-cc,
 [  --with-edje-cc=PATH  specify a specific path to edje_cc],
 [
@@ -124,7 +111,7 @@
   edje_cc=$v
   echo   Enlightenment edje_cc explicitly set to $edje_cc;
 ],[
-  edje_cc=`$EDJE_CONFIG --prefix`/bin/edje_cc
+  edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
 ])
 AC_SUBST(edje_cc)
 



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-04-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
ABOUT-NLS 


Log Message:
Pretty standard patch set from Lutin for recent pkg-config changes in EFL...
committing in bulk.

===
RCS file: /cvs/e/e_modules/mail/ABOUT-NLS,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ABOUT-NLS   26 Aug 2006 19:27:18 -  1.1
+++ ABOUT-NLS   25 Apr 2007 09:22:06 -  1.2
@@ -1,8 +1,8 @@
 Notes on the Free Translation Project
 *
 
-   Free software is going international!  The Free Translation Project
-is a way to get maintainers of free software, translators, and users all
+Free software is going international!  The Free Translation Project is
+a way to get maintainers of free software, translators, and users all
 together, so that will gradually become able to speak many languages.
 A few packages already provide translations for their messages.
 
@@ -25,7 +25,7 @@
 Quick configuration advice
 ==
 
-   If you want to exploit the full power of internationalization, you
+If you want to exploit the full power of internationalization, you
 should configure it using
 
  ./configure --with-included-gettext
@@ -48,10 +48,10 @@
 INSTALL Matters
 ===
 
-   Some packages are localizable when properly installed; the
-programs they contain can be made to speak your own native language.
-Most such packages use GNU `gettext'.  Other packages have their own
-ways to internationalization, predating GNU `gettext'.
+Some packages are localizable when properly installed; the programs
+they contain can be made to speak your own native language.  Most such
+packages use GNU `gettext'.  Other packages have their own ways to
+internationalization, predating GNU `gettext'.
 
By default, this package will be installed to allow translation of
 messages.  It will automatically detect whether the system already
@@ -98,7 +98,7 @@
 Using This Package
 ==
 
-   As a user, if your language has been installed for this package, you
+As a user, if your language has been installed for this package, you
 only have to set the `LANG' environment variable to the appropriate
 `LL_CC' combination.  Here `LL' is an ISO 639 two-letter language code,
 and `CC' is an ISO 3166 two-letter country code.  For example, let's
@@ -131,6 +131,13 @@
 read translations in German than English for when Swedish is not
 available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
 
+   Special advice for Norwegian users: The language code for Norwegian
+bokma*l changed from `no' to `nb' recently (in 2003).  During the
+transition period, while some message catalogs for this language are
+installed under `nb' and some older ones under `no', it's recommended
+for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
+older translations are used.
+
In the `LANGUAGE' environment variable, but not in the `LANG'
 environment variable, `LL_CC' combinations can be abbreviated as `LL'
 to denote the language's main dialect.  For example, `de' is equivalent
@@ -140,7 +147,7 @@
 Translating Teams
 =
 
-   For the Free Translation Project to be a success, we need interested
+For the Free Translation Project to be a success, we need interested
 people who like their own language and write it well, and who are also
 able to synergize with other translators speaking the same language.
 Each translation team has its own mailing list.  The up-to-date list of
@@ -170,16 +177,559 @@
 Available Packages
 ==
 
-   Languages are not equally supported in all packages.  The following
-matrix shows the current state of internationalization, as of April
-2005.  The matrix shows, in regard of each package, for which languages
+Languages are not equally supported in all packages.  The following
+matrix shows the current state of internationalization, as of January
+2004.  The matrix shows, in regard of each package, for which languages
 PO files have been submitted to translation coordination, with a
 translation percentage of at least 50%.
 
- Ready PO filesen fr ja de bg es fi pl pt ru
- +---+
- enlightenment   | [] [] [] [] [] [] [] [] [] [] |
-
+ Ready PO files   af am ar az be bg bs ca cs da de el en en_GB eo es
+++
+ a2ps   | [] [] [] []|
+ aegis  |   ()   |
+ ant-phone  |   ()   |
+ anubis ||
+ ap-utils   ||
+ aspell  

E CVS: mail devilhorns

2007-03-31 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
autogen.sh 


Log Message:
Add autopoint for mail module.

===
RCS file: /cvs/e/e_modules/mail/autogen.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- autogen.sh  26 Aug 2006 19:27:18 -  1.2
+++ autogen.sh  31 Mar 2007 22:14:18 -  1.3
@@ -5,6 +5,7 @@
 
 touch README
 
+echo Running autopoint... ; autopoint -f || :
 echo Running aclocal... ; aclocal $ACLOCAL_FLAGS || exit 1
 echo Running autoheader... ; autoheader || exit 1
 echo Running autoconf... ; autoconf || exit 1



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-01-15 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.h imap.c 


Log Message:
Corrected header file changes that were missing in the patch.
Revert imap.c to use the patched code from rephorm, thanks mate :)

===
RCS file: /cvs/e/e_modules/mail/imap.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- imap.h  13 Jun 2006 12:24:07 -  1.2
+++ imap.h  16 Jan 2007 03:36:45 -  1.3
@@ -20,7 +20,7 @@
 {
Ecore_Con_Server *server;
Evas_List *clients;
-   ImapClient *current;
+   Evas_List *current;
int cmd;
ImapState state;
void *data;
===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- imap.c  15 Jan 2007 10:26:15 -  1.15
+++ imap.c  16 Jan 2007 03:36:45 -  1.16
@@ -286,10 +286,10 @@
  if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
_mail_start_exe (ic-config);
 
- is-current = is-clients-next-data;
+ is-current = is-clients-next;
  if (is-current)
{
- if (is-current)
+ if (is-current-data)
  is-state = IMAP_STATE_SERVER_READY;
  else
  _mail_imap_server_logout (is);



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-01-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Make mail module build again.

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- imap.c  12 Jan 2007 01:23:56 -  1.14
+++ imap.c  15 Jan 2007 10:26:15 -  1.15
@@ -57,11 +57,9 @@
  ic-config-port, NULL);
  ic-server-cmd = 0;
}
+  is-current = ic;
}
}
-  is-current = is-clients;
-  if (!is-current) break;
-  ic = is-current-data;
 }
 }
 
@@ -108,8 +106,7 @@
   if (is-data_handler)
ecore_event_handler_del (is-data_handler);
   iservers = evas_list_remove_list (iservers, iservers);
-  free (is);
-  is = NULL;
+   E_FREE(is);
 }
 }
 
@@ -261,7 +258,7 @@
 }
 
   if (!is-current) return 0;
-  ic = is-current-data;
+  ic = is-current;
   is-state++;
 
   switch (is-state)
@@ -289,10 +286,10 @@
  if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
_mail_start_exe (ic-config);
 
- is-current = is-current-next;
+ is-current = is-clients-next-data;
  if (is-current)
{
- if (is-current-data)
+ if (is-current)
  is-state = IMAP_STATE_SERVER_READY;
  else
  _mail_imap_server_logout (is);



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2007-01-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Patch from rephorm to make imap work again, Thanks mate :)

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- imap.c  15 Sep 2006 17:20:17 -  1.13
+++ imap.c  12 Jan 2007 01:23:56 -  1.14
@@ -59,8 +59,9 @@
}
}
}
-  is-current = evas_list_nth (is-clients, 0);
-  ic = is-current;
+  is-current = is-clients;
+  if (!is-current) break;
+  ic = is-current-data;
 }
 }
 
@@ -259,7 +260,8 @@
}
 }
 
-  ic = is-current;
+  if (!is-current) return 0;
+  ic = is-current-data;
   is-state++;
 
   switch (is-state)
@@ -287,29 +289,18 @@
  if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
_mail_start_exe (ic-config);
 
- is-clients = is-clients-next;
- if (is-clients)
+ is-current = is-current-next;
+ if (is-current)
{
- is-current = is-clients-data;
- if (is-current)
-   {
- ic = is-current;
+ if (is-current-data)
  is-state = IMAP_STATE_SERVER_READY;
-   }
  else
-   {
  _mail_imap_server_logout (is);
- ic = NULL;
-   }
}
  else
-   {
  _mail_imap_server_logout (is);
- ic = NULL;
-   }
}
-  if (!ic)
-   break;
+  break;
 default:
   break;
 }



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-11-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c 


Log Message:
Use e_widget_entry_password_set to make entry field use astericks.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_mod_config_box.c  20 Sep 2006 22:12:18 -  1.16
+++ e_mod_config_box.c  5 Nov 2006 21:34:38 -   1.17
@@ -232,6 +232,7 @@
   ob = e_widget_label_add (evas, D_(Password:));
   e_widget_frametable_object_append (of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
   ob = e_widget_entry_add (evas, cfdata-pass);
+  e_widget_entry_password_set (ob, 1);
   e_widget_frametable_object_append (of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
 
   cfdata-new_path_label = e_widget_label_add (evas, D_(New Mail Path:));



-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-10-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
mail.edc 


Log Message:
Color class for mail module.

===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- mail.edc9 Aug 2006 07:30:56 -   1.15
+++ mail.edc11 Oct 2006 20:53:21 -  1.16
@@ -74,6 +74,7 @@
   state: default 0.0;
   color: 255 255 255 255;
   color3: 0 0 0 32;
+  color_class: module_label;
   visible: 0;
   rel1 
 {



-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-09-20 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c e_mod_main.c e_mod_main.h mbox.c mbox.h 


Log Message:
Patches from Nikolas Arend for parsing Thunderbird/Mozilla style mbox files,
allowing mbox accounts to be permantently monitored, checked manually, or at
every check interval.

Thanks :)

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_mod_config_box.c  15 Sep 2006 17:20:17 -  1.15
+++ e_mod_config_box.c  20 Sep 2006 22:12:18 -  1.16
@@ -7,6 +7,7 @@
   int type;
   int use_exec;
   char *port;
+  int monitor;
   int ssl;
int local;
   char *host;
@@ -24,6 +25,7 @@
   Evas_Object *new_path_entry;
   Evas_Object *cur_path_label;
   Evas_Object *cur_path_entry;
+  Evas_Object *monitor_check;
 };
 
 static void *_create_data (E_Config_Dialog * cfd);
@@ -34,6 +36,7 @@
  E_Config_Dialog_Data * cfdata);
 static void _type_cb_change (void *data, Evas_Object * obj);
 static void _use_exec_cb_change (void *data, Evas_Object * obj);
+static void _monitor_cb_change (void *data, Evas_Object * obj);
 
 static E_Config_Dialog *prev_dlg;
 static Config_Item *mail_ci;
@@ -69,6 +72,7 @@
   if (!cb)
 {
   cfdata-type = 0;
+  cfdata-monitor = 1;
   cfdata-ssl = 0;
   cfdata-use_exec = 0;
cfdata-local = 0;
@@ -81,6 +85,7 @@
 cfdata-name = strdup (cb-name);
 
   cfdata-type = cb-type;
+  cfdata-monitor = cb-monitor;
   cfdata-ssl = cb-ssl;
   cfdata-use_exec = cb-use_exec;
cfdata-local = cb-local;
@@ -170,8 +175,23 @@
   e_widget_framelist_object_append (of, ob);
   ob = e_widget_radio_add (evas, D_(Mbox), 3, rg);
   e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
-  e_widget_framelist_object_append (of, ob);
-  e_widget_list_object_append (o, of, 1, 1, 0.5);
+  e_widget_framelist_object_append (of, ob); 
+  cfdata-monitor_check = e_widget_check_add (evas, D_(Monitor Mbox file 
permanently),
+  (cfdata-monitor));
+  e_widget_on_change_hook_set (cfdata-monitor_check, _monitor_cb_change, 
cfdata);
+  if (cfdata-type == 3)
+{
+  e_widget_check_checked_set (cfdata-monitor_check, cfdata-monitor);
+  e_widget_disabled_set (cfdata-monitor_check, 0);
+}
+  else
+{
+  e_widget_check_checked_set (cfdata-monitor_check, 0);
+  e_widget_disabled_set (cfdata-monitor_check, 1);
+}
+  e_widget_framelist_object_append (of, cfdata-monitor_check);
+
+  e_widget_list_object_append (o, of, 1, 1, 0.5); 
 
   of = e_widget_frametable_add (evas, D_(Port Settings), 1);
 
@@ -257,6 +277,7 @@
   cb = E_NEW (Config_Box, 1);
   cb-type = 0;
   cb-port = 110;
+  cb-monitor = 1;
   cb-ssl = 0;
cb-local = 0;
   is_new = 1;
@@ -271,10 +292,12 @@
 
   cb-type = cfdata-type;
   cb-port = atoi (cfdata-port);
+  cb-monitor = cfdata-monitor;
   cb-ssl = cfdata-ssl;
cb-local = cfdata-local;

   cb-use_exec = cfdata-use_exec;
+
   if (cb-exec)
 evas_stringshare_del (cb-exec);
   if (cfdata-exec != NULL)
@@ -318,11 +341,14 @@
 cb-cur_path = evas_stringshare_add ();
 
   if (!is_new)
-e_config_save_queue ();
+{
+  e_config_save_queue ();
+  _mail_mbox_check_monitors ();
+}
 
   if (is_new)
 {
-//  cfd-data = cb;
+/*   cfd-data = cb; */
   mail_ci-boxes = evas_list_append (mail_ci-boxes, cb);
   e_config_save_queue ();
   _mail_box_added (mail_ci-id, cb-name);
@@ -333,6 +359,17 @@
 }
 
 static void
+_monitor_cb_change (void *data, Evas_Object * obj)
+{
+  E_Config_Dialog_Data *cfdata;
+
+  cfdata = data;
+  if (cfdata-type == MAIL_TYPE_MBOX)
+{
+}
+}
+
+static void
 _type_cb_change (void *data, Evas_Object * obj)
 {
   E_Config_Dialog_Data *cfdata;
@@ -383,6 +420,17 @@
   e_widget_disabled_set (cfdata-cur_path_label, 0);
   e_widget_disabled_set (cfdata-cur_path_entry, 0);
   e_widget_entry_text_set (cfdata-port_entry, );
+}
+
+  if (cfdata-type == 3)
+{
+  e_widget_check_checked_set (cfdata-monitor_check, 1);
+  e_widget_disabled_set (cfdata-monitor_check, 0);
+}
+  else
+{
+  e_widget_check_checked_set (cfdata-monitor_check, 0);
+  e_widget_disabled_set (cfdata-monitor_check, 1);
 }
 }
 
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- e_mod_main.c17 Sep 2006 14:47:52 -  1.39
+++ e_mod_main.c20 Sep 2006 22:12:18 -  1.40
@@ -71,7 +71,7 @@
   Mail *mail;
   Config_Item *ci;
   Evas_List *l, *j;
-  int have_pop = 0, have_imap = 0;
+  int have_pop = 0, have_imap = 0, have_mbox = 0;
 
   inst = E_NEW (Instance, 1);
   ci = _mail_config_item_get 

E CVS: mail devilhorns

2006-09-15 Thread Enlightenment CVS
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.h12 Jun 2006 10:03:52 -  1.7
+++ e_mod_main.h15 Sep 2006 17:20:17 -  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.c30 Aug 2006 20:06:27 -  1.37
+++ e_mod_main.c15 Sep 2006 17:20:17 -  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 -  1.12
+++ imap.c  15 Sep 2006 17:20:17 -  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 -  1.14
+++ e_mod_config_box.c  15 Sep 2006 17:20:17 -  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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-09-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
Added make uninstall rule

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- Makefile.am 26 Aug 2006 19:27:18 -  1.10
+++ Makefile.am 2 Sep 2006 12:39:05 -   1.11
@@ -47,3 +47,5 @@
 
 clean-local:
 rm -rf *.edj *~
+uninstall:
+   rm -rf $(datadir)



-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-09-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c 


Log Message:
Allow mail check minimum to be 30 seconds, with 30 second change intervals.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_mod_config.c  26 Aug 2006 19:27:18 -  1.17
+++ e_mod_config.c  3 Sep 2006 01:56:35 -   1.18
@@ -95,7 +95,7 @@
   ob = e_widget_label_add (evas, D_(Check Interval));
   e_widget_framelist_object_append (of, ob);
   ob =
-e_widget_slider_add (evas, 1, 0, D_(%2.0f minutes), 1.0, 60.0, 1.0, 0,
+e_widget_slider_add (evas, 1, 0, D_(%2.0f minutes), 0.5, 60.0, 0.5, 0,
 (cfdata-check_time), NULL, 100);
   e_widget_framelist_object_append (of, ob);
   e_widget_list_object_append (o, of, 1, 1, 0.5);



-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-08-30 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Make sure to delete the check_timer on shutdown or else seggy. Thanks Tene :)

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- e_mod_main.c26 Aug 2006 19:27:18 -  1.36
+++ e_mod_main.c30 Aug 2006 20:06:27 -  1.37
@@ -151,6 +151,9 @@
 
   inst = gcc-data;
 
+   if (inst-check_timer)
+ ecore_timer_del(inst-check_timer);
+   
   evas_object_event_callback_del (inst-mail_obj, EVAS_CALLBACK_MOUSE_DOWN,
  _mail_cb_mouse_down);
   evas_object_event_callback_del (inst-mail_obj, EVAS_CALLBACK_MOUSE_IN,



-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
configure.in 


Log Message:
Fix minor oversight with x86_64 libdir. Thanks Sebastian

===
RCS file: /cvs/e/e_modules/mail/configure.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- configure.in25 Jul 2006 03:52:02 -  1.5
+++ configure.in25 Jul 2006 13:31:57 -  1.6
@@ -81,7 +81,7 @@
 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, ${HOME}/.e/e/modules/${PACKAGE}, 
Package installed data destination)
 datadir=${HOME}/.e/e/modules/${PACKAGE}
 else
-AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, 
${libdir}/lib/enlightenment/modules/${PACKAGE}, Package installed data 
destination)
+AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, 
${libdir}/enlightenment/modules/${PACKAGE}, Package installed data 
destination)
 datadir=${libdir}/enlightenment/modules/${PACKAGE}
 fi
  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-24 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
configure.in 


Log Message:
Bad Marcus, no cookie :) . Fixed x86_64 install patch.

===
RCS file: /cvs/e/e_modules/mail/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- configure.in25 Jul 2006 01:39:09 -  1.4
+++ configure.in25 Jul 2006 03:52:02 -  1.5
@@ -81,7 +81,7 @@
 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, ${HOME}/.e/e/modules/${PACKAGE}, 
Package installed data destination)
 datadir=${HOME}/.e/e/modules/${PACKAGE}
 else
-AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, 
${prefix}/lib/enlightenment/modules/${PACKAGE}, Package installed data 
destination)
+AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, 
${libdir}/lib/enlightenment/modules/${PACKAGE}, Package installed data 
destination)
 datadir=${libdir}/enlightenment/modules/${PACKAGE}
 fi
  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-19 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Fix potential segfault when setting mail text. Thanks boneyfrog :)

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_mod_main.c17 Jul 2006 23:59:13 -  1.32
+++ e_mod_main.c19 Jul 2006 17:07:02 -  1.33
@@ -590,16 +590,20 @@
   ci = _mail_config_item_get (inst-gcc-id);
   if (!ci)
 return;
-  for (l = ci-boxes; l; l = l-next)
-{
-  Config_Box *cb;
-
-  cb = l-data;
-  if (!cb)
-   continue;
-  count += cb-num_new;
-}
 
+   if (ci-boxes) 
+ {
+   for (l = ci-boxes; l; l = l-next)
+ {
+Config_Box *cb;
+
+cb = l-data;
+if (!cb)
+  continue;
+count += cb-num_new;
+ }
+ }
+   
   if (count  0)
 {
   snprintf (buf, sizeof (buf), %d, count);
@@ -608,8 +612,8 @@
 }
   else
 {
-  edje_object_signal_emit (inst-mail-mail_obj, no_mail, );
-  edje_object_part_text_set (inst-mail-mail_obj, new_label, );
+   edje_object_part_text_set (inst-mail-mail_obj, new_label, );
+   edje_object_signal_emit (inst-mail-mail_obj, no_mail, );
 }
 }
 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-19 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Only need to set checking state if we have pop or imap.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- e_mod_main.c19 Jul 2006 17:07:02 -  1.33
+++ e_mod_main.c19 Jul 2006 17:29:32 -  1.34
@@ -545,8 +545,6 @@
   if (!ci-boxes)
 return 1;
 
-  edje_object_signal_emit (inst-mail-mail_obj, check_mail, );
-
   for (l = ci-boxes; l; l = l-next)
 {
   Config_Box *cb;
@@ -568,11 +566,15 @@
  break;
}
 }
-  if (have_imap)
-_mail_imap_check_mail (inst);
-  if (have_pop)
-_mail_pop_check_mail (inst);
-  return 1;
+
+   if ((have_imap) || (have_pop))
+ edje_object_signal_emit (inst-mail-mail_obj, check_mail, );
+ 
+   if (have_imap)
+ _mail_imap_check_mail (inst);
+   if (have_pop)
+ _mail_pop_check_mail (inst);
+   return 1;
 }
 
 void



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
Mail module now does make distcheck correctly.
Make install does not install needless pngs anymore.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Makefile.am 10 Jul 2006 15:52:51 -  1.6
+++ Makefile.am 14 Jul 2006 17:56:48 -  1.7
@@ -8,9 +8,11 @@
 # data files for the module
 filesdir =  $(datadir)
 
-files_DATA = newmail.png module_icon.png module.eap mail.edj
+files_DATA = module_icon.png \
+   module.eap \
+   mail.edj
 
-EXTRA_DIST = $(files_DATA) mail.edc VeraBd.ttf
+EXTRA_DIST = $(files_DATA)
 
 # the module .so file
 INCLUDES = -I. \
@@ -32,12 +34,10 @@
 
 module_la_LIBADD   = @e_libs@
 module_la_LDFLAGS  = -module -avoid-version
-module_la_DEPENDENCIES = $(top_builddir)/config.h
+module_la_DEPENDENCIES = $(top_builddir)/config.h $(top_builddir)/mail.edj
 
-mail.edj: Makefile mail.edc
-$(EDJE_CC) $(EDJE_FLAGS) \
-$(top_srcdir)/mail.edc \
-$(top_builddir)/mail.edj
+%.edj:  %.edc
+   $(EDJE_CC) $(EDJE_FLAGS) $ $@
 
 clean-local:
 rm -rf *.edj *~




-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
make distcheck should be ok now. Distribute the edc and autogen.sh also.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- Makefile.am 14 Jul 2006 17:56:48 -  1.7
+++ Makefile.am 14 Jul 2006 18:27:50 -  1.8
@@ -12,7 +12,12 @@
module.eap \
mail.edj
 
-EXTRA_DIST = $(files_DATA)
+EXTRA_DIST = $(files_DATA) \
+   mail.edc \
+   checking.png \
+   newmail.png \
+   VeraBd.ttf \
+   autogen.sh
 
 # the module .so file
 INCLUDES = -I. \




-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
Remove autogen.sh from make distcheck.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- Makefile.am 14 Jul 2006 18:27:50 -  1.8
+++ Makefile.am 14 Jul 2006 18:53:41 -  1.9
@@ -16,8 +16,7 @@
mail.edc \
checking.png \
newmail.png \
-   VeraBd.ttf \
-   autogen.sh
+   VeraBd.ttf
 
 # the module .so file
 INCLUDES = -I. \




-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
Fix makefile.am for make distcheck.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- Makefile.am 27 Jun 2006 02:02:52 -  1.4
+++ Makefile.am 10 Jul 2006 15:10:42 -  1.5
@@ -1,7 +1,9 @@
 MAINTAINERCLEANFILES = Makefile.in mkinstalldirs
 
 EDJE_CC = @edje_cc@
-EDJE_FLAGS = -v
+EDJE_FLAGS = -v \
+-id $(top_srcdir) \
+-fd $(top_srcdir)
 
 # data files for the module
 filesdir =  $(datadir)
@@ -34,8 +36,8 @@
 
 mail.edj: Makefile mail.edc
 $(EDJE_CC) $(EDJE_FLAGS) \
-mail.edc \
-mail.edj
+$(top_srcdir)/mail.edc \
+$(top_builddir)/mail.edj
 
 clean-local:
 rm -rf *.edj *~




-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
Fix typo. Should distribute mail.edc, not mount.edc. Doh :( . Thanks Lut1n.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Makefile.am 10 Jul 2006 15:10:42 -  1.5
+++ Makefile.am 10 Jul 2006 15:52:51 -  1.6
@@ -10,7 +10,7 @@
 
 files_DATA = newmail.png module_icon.png module.eap mail.edj
 
-EXTRA_DIST = $(files_DATA) mount.edc VeraBd.ttf
+EXTRA_DIST = $(files_DATA) mail.edc VeraBd.ttf
 
 # the module .so file
 INCLUDES = -I. \




-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c e_mod_main.c imap.c mbox.c mdir.c pop.c 


Log Message:
Avoid dangling pointers after call to free.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- e_mod_config.c  3 Jul 2006 07:37:32 -   1.12
+++ e_mod_config.c  10 Jul 2006 17:56:27 -  1.13
@@ -73,6 +73,7 @@
if (!mail_config) return;
mail_config-config_dialog = NULL;
free(cfdata);
+   cfdata = NULL;
 }
 
 static Evas_Object *
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- e_mod_main.c2 Jul 2006 19:06:09 -   1.29
+++ e_mod_main.c10 Jul 2006 17:56:27 -  1.30
@@ -143,6 +143,7 @@
mail_config-instances = evas_list_remove(mail_config-instances, inst);
_mail_free(inst-mail);
free(inst);
+   inst = NULL;
 }
 
 static void
@@ -415,10 +416,12 @@
 if (cb-exec) evas_stringshare_del(cb-exec);
 ci-boxes = evas_list_remove_list(ci-boxes, ci-boxes);
 free(cb);
+cb = NULL;
  }
if (ci-id) evas_stringshare_del(ci-id);
mail_config-items = evas_list_remove_list(mail_config-items, 
mail_config-items);
free(ci);
+   ci = NULL;
  }
_mail_imap_shutdown();
_mail_pop_shutdown();
@@ -481,6 +484,7 @@
 {
evas_object_del(mail-mail_obj);
free(mail);
+   mail = NULL;
 }
 
 static int 
===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- imap.c  13 Jun 2006 16:06:30 -  1.9
+++ imap.c  10 Jul 2006 17:56:27 -  1.10
@@ -78,7 +78,6 @@
 void
 _mail_imap_shutdown() 
 {
-
if (!iservers) return;
while (iservers) 
  {
@@ -93,6 +92,7 @@
  ecore_event_handler_del(is-data_handler);
iservers = evas_list_remove_list(iservers, iservers);
free(is);
+   is = NULL;
  }
 }
 
===
RCS file: /cvs/e/e_modules/mail/mbox.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- mbox.c  13 Jun 2006 12:24:07 -  1.4
+++ mbox.c  10 Jul 2006 17:56:27 -  1.5
@@ -44,6 +44,7 @@
  ecore_file_monitor_del(mb-monitor);
mboxes = evas_list_remove(mboxes, mb);
free(mb);
+   mb = NULL;
break;
  }
 }
@@ -61,6 +62,7 @@
  ecore_file_monitor_del(mb-monitor);
mboxes = evas_list_remove_list(mboxes, mboxes);
free(mb);
+   mb = NULL;
  }
 }
 
===
RCS file: /cvs/e/e_modules/mail/mdir.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- mdir.c  13 Jun 2006 12:24:07 -  1.4
+++ mdir.c  10 Jul 2006 17:56:27 -  1.5
@@ -43,6 +43,7 @@
if (mc-config != cb) continue;
mdirs = evas_list_remove(mdirs, mc);
free(mc);
+   mc = NULL;
break;
  }
 }
@@ -60,6 +61,7 @@
  ecore_file_monitor_del(mc-monitor);
mdirs = evas_list_remove_list(mdirs, mdirs);
free(mc);
+   mc = NULL;
  }
 }
 
===
RCS file: /cvs/e/e_modules/mail/pop.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- pop.c   13 Jun 2006 12:24:07 -  1.4
+++ pop.c   10 Jul 2006 17:56:27 -  1.5
@@ -101,6 +101,7 @@
  ecore_event_handler_del(pc-data_handler);
pclients = evas_list_remove_list(pclients, pclients);
free(pc);
+   pc = NULL;
  }
 }
 




-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Make all active e_modules work with the new e_module_dialog_show function
change(s). If you get errors building these, update e17/apps/e .

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- e_mod_main.c20 Jun 2006 21:56:38 -  1.28
+++ e_mod_main.c2 Jul 2006 19:06:09 -   1.29
@@ -454,7 +454,7 @@
 EAPI int
 e_modapi_about(E_Module *m) 
 {
-   e_module_dialog_show(D_(Enlightenment Mail Module), 
+   e_module_dialog_show(m, D_(Enlightenment Mail Module), 
D_(This is a module to notify when you have new 
mail.));
return 1;
 }



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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c 


Log Message:
Missed an module_dialog_show here.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_mod_config_box.c  13 Jun 2006 12:24:07 -  1.9
+++ e_mod_config_box.c  2 Jul 2006 19:10:15 -   1.10
@@ -230,11 +230,7 @@
int is_new = 0;
 
if (cfdata-name == NULL) 
- {
-   e_module_dialog_show(_(Enlightenment Mail Module),
-_(You must enter a name for this mailbox.));
-   return 0;
- }
+ return 0;

cb = cfd-data;
if (!cb) 



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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-07-02 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c 


Log Message:
Update some e_modules to use module icons in their config dialogs.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_mod_config.c  11 Jun 2006 17:41:42 -  1.11
+++ e_mod_config.c  3 Jul 2006 07:37:32 -   1.12
@@ -31,6 +31,7 @@
E_Config_Dialog *cfd;
E_Config_Dialog_View *v;
E_Container *con;
+   char buf[4096];

v = E_NEW(E_Config_Dialog_View, 1);
if (!v) return;
@@ -39,9 +40,10 @@
v-free_cfdata = _free_data;
v-basic.apply_cfdata = _basic_apply_data;
v-basic.create_widgets = _basic_create_widgets;
-   
+
+   snprintf(buf, sizeof(buf), %s/module.eap, 
e_module_dir_get(mail_config-module));
con = e_container_current_get(e_manager_current_get());
-   cfd = e_config_dialog_new(con, _(Mail Configuration), NULL, 0, v, ci);
+   cfd = e_config_dialog_new(con, _(Mail Configuration), buf, 0, v, ci);
mail_config-config_dialog = cfd;
 }
 



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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-26 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 


Log Message:
Do not need to link against the math library.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 11 Jun 2006 17:41:42 -  1.3
+++ Makefile.am 27 Jun 2006 02:02:52 -  1.4
@@ -28,7 +28,7 @@
 mdir.h mdir.c \
 mbox.h mbox.c
 
-module_la_LIBADD   = @e_libs@ -lm
+module_la_LIBADD   = @e_libs@
 module_la_LDFLAGS  = -module -avoid-version
 module_la_DEPENDENCIES = $(top_builddir)/config.h
 



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=lnkkid=120709bid=263057dat=121642
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-16 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
COPYING 
Added Files:
COPYING-PLAIN 


Log Message:
License fix for mail module to Bsd.

===
RCS file: /cvs/e/e_modules/mail/COPYING,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- COPYING 7 Jun 2006 19:43:59 -   1.1
+++ COPYING 16 Jun 2006 15:41:54 -  1.2
@@ -1,340 +1,28 @@
-   GNU GENERAL PUBLIC LICENSE
-  Version 2, June 1991
+Copyright (C) 2000 Christopher Michael and various contributors (see AUTHORS)
 
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-   Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-   GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The Program, below,
-refers to any such program or work, and a work based on the Program
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term modification.)  Each licensee is addressed as you.
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this 

E CVS: mail devilhorns

2006-06-16 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
COPYING 


Log Message:
Oops, mail should be GPL as it uses some embrace code.

===
RCS file: /cvs/e/e_modules/mail/COPYING,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- COPYING 16 Jun 2006 15:41:54 -  1.2
+++ COPYING 16 Jun 2006 16:12:00 -  1.3
@@ -1,28 +1,340 @@
-Copyright (C) 2000 Christopher Michael and various contributors (see AUTHORS)
+   GNU GENERAL PUBLIC LICENSE
+  Version 2, June 1991
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the Software), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies of the Software and its Copyright notices. In addition publicly
-documented acknowledgment must be given that this software has been used if no
-source code of this software is made available publicly. This includes
-acknowledgments in either Copyright notices, Manuals, Publicity and Marketing
-documents or any documentation provided with any product containing this
-software. This License does not apply to any software that links to the
-libraries provided by this software (statically or dynamically), but only to
-the software provided.
-
-Please see the COPYING.PLAIN for a plain-english explanation of this notice
-and it's intent.
-
-THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+   Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any

E CVS: mail devilhorns

2006-06-16 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Removed Files:
COPYING-PLAIN 


Log Message:
Remove the copying-plain bsd file.





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-16 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
mail.edc 


Log Message:
Better aligning of the new mail count.

===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- mail.edc15 Jun 2006 13:05:53 -  1.13
+++ mail.edc16 Jun 2006 16:31:12 -  1.14
@@ -76,23 +76,24 @@
   visible: 0;
   rel1 
 {
-   relative: 0.0 0.0;
-   offset: 0 0;
+   relative: 0.5 0.5;
+   offset: 4 0;
to: logo;
 }
   rel2 
 {
-   relative: 1.0 1.0;
-   offset: -1 -1;
+   relative: 0.5 1.0;
+   offset: 4 -1;
to: logo;
 }
   text 
 {
text: ;
font: VeraBold;
-   size: 16;
+   size: 14;
min: 1 1;
-   align: 1.0 0.5;
+   align: 0.5 0.5;
+   text_class: module_large;
 }
}
  description 




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-15 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c mail.edc module.eap module_icon.png newmail.png 
Added Files:
checking.png 


Log Message:
Better icons.
Add a checking state to show it's doing something.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- e_mod_main.c13 Jun 2006 13:19:11 -  1.26
+++ e_mod_main.c15 Jun 2006 13:05:53 -  1.27
@@ -490,6 +490,9 @@

ci = _mail_config_item_get(inst-gcc-id);
if (!ci-boxes) return 1;
+
+   edje_object_signal_emit(inst-mail-mail_obj, check_mail, );
+   
for (l = ci-boxes; l; l = l-next) 
  {
Config_Box *cb;
===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- mail.edc12 Jun 2006 20:45:10 -  1.12
+++ mail.edc15 Jun 2006 13:05:53 -  1.13
@@ -6,6 +6,7 @@
 {
image: module_icon.png COMP;
image: newmail.png COMP;
+   image: checking.png COMP;
 }
 
 collections
@@ -50,7 +51,16 @@
 {
normal: newmail.png;
 }
-   } 
+   }
+ description 
+   {
+  state: checking 0.0;
+  inherit: default 0.0;
+  image 
+{
+   normal: checking.png;
+}
+   }
   }
 part 
   {
@@ -126,6 +136,14 @@
  name: go_new;
  signal: new_mail;
  action: STATE_SET new 0.0;
+ transition: SINUSOIDAL 0.5;
+ target: logo;
+  }
+program 
+  {
+ name: go_check;
+ signal: check_mail;
+ action: STATE_SET checking 0.0;
  transition: SINUSOIDAL 0.5;
  target: logo;
   }
===
RCS file: /cvs/e/e_modules/mail/module.eap,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
Binary files /tmp/cvsqwmpyO and /tmp/cvsrnUEsw differ
===
RCS file: /cvs/e/e_modules/mail/module_icon.png,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
Binary files /tmp/cvsoWANlN and /tmp/cvshUAAhv differ
===
RCS file: /cvs/e/e_modules/mail/newmail.png,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
Binary files /tmp/cvsEdW2vQ and /tmp/cvs9lXoty differ




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c e_mod_main.c imap.c imap.h mbox.c mdir.c 
pop.c 


Log Message:
Icon and label should now properly reflect new mail count from all mailboxes.
HandyAndE, let me know if your imap works with this or not.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_config_box.c  13 Jun 2006 01:30:29 -  1.8
+++ e_mod_config_box.c  13 Jun 2006 12:24:07 -  1.9
@@ -244,8 +244,8 @@
cb-port = 110;
cb-ssl = 0;
is_new = 1;
- }
-   
+ }  
+ 
if (cb-name) evas_stringshare_del(cb-name);
if (cfdata-name != NULL)
  cb-name = evas_stringshare_add(cfdata-name);
@@ -291,14 +291,13 @@
  cb-cur_path = evas_stringshare_add(cfdata-cur_path);
else
  cb-cur_path = evas_stringshare_add();
-   
-   e_config_save_queue();
 
-   _mail_box_config_updated(prev_dlg);
+   if (!is_new)
+ e_config_save_queue();
 
if (is_new) 
  {
-   cfd-data = cb;
+// cfd-data = cb;
mail_ci-boxes = evas_list_append(mail_ci-boxes, cb);
e_config_save_queue();
_mail_box_added(mail_ci-id, cb-name);
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- e_mod_main.c12 Jun 2006 20:45:10 -  1.24
+++ e_mod_main.c13 Jun 2006 12:24:07 -  1.25
@@ -7,7 +7,7 @@
  * it under the terms of version 2 of the GNU General Public License as
  * published by the Free Software Foundation.
  *
- * This program is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it cwill be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  * GNU General Public License for more details.
@@ -487,7 +487,6 @@
int have_imap = 0, have_pop = 0;

if (!inst) return 1;
-   inst-count = 0;

ci = _mail_config_item_get(inst-gcc-id);
if (!ci-boxes) return 1;
@@ -520,13 +519,29 @@
 _mail_set_text(void *data) 
 {
Instance *inst = data;
+   Config_Item *ci;
+   Evas_List *l;
char buf[1024];
+   int count = 0;

if (!inst) return;
+
+   ci = _mail_config_item_get(inst-gcc-id);
+   if (!ci) return;
+   for (l = ci-boxes; l; l = l-next) 
+ {
+   Config_Box *cb;
+   
+   cb = l-data;
+   if (!cb) continue;
+   count += cb-num_new;
+ }
+
+   printf(Count: %i\n, count);

-   if (inst-count  0) 
+   if (count  0) 
  {
-   snprintf(buf, sizeof(buf), %d, inst-count);
+   snprintf(buf, sizeof(buf), %d, count);
edje_object_part_text_set(inst-mail-mail_obj, new_label, buf);
edje_object_signal_emit(inst-mail-mail_obj, new_mail, );
  }
===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- imap.c  12 Jun 2006 20:45:10 -  1.4
+++ imap.c  13 Jun 2006 12:24:07 -  1.5
@@ -182,7 +182,6 @@
 {
Ecore_Con_Event_Server_Del *ev = event;
ImapServer *is;
-   Instance *inst;

is = _mail_imap_server_get(ev-server);
if (!is) return 1;
@@ -194,10 +193,6 @@

ecore_con_server_del(is-server);
is-server = NULL;
-
-   inst = is-data;
-   inst-count += is-count;
-   _mail_set_text(inst);

return 0;
 }
@@ -208,7 +203,6 @@
Ecore_Con_Event_Server_Data *ev = event;
ImapServer *is;
ImapClient *ic;
-   Instance *inst;
int len, num = 0, total = 0;
char in[1024], out[1024], *spc;
size_t slen;
@@ -256,9 +250,10 @@
   case IMAP_STATE_STATUS_OK:
if (sscanf(in, * STATUS %*s (MESSAGES %i UNSEEN %i), total, num) == 
2) 
  {
-is-count += num;
 ic-config-num_new = num;
 ic-config-num_total = total;
+_mail_set_text(is-data);
+
 if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
   _mail_start_exe(ic-config);
 
===
RCS file: /cvs/e/e_modules/mail/imap.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- imap.h  11 Jun 2006 17:37:53 -  1.1
+++ imap.h  13 Jun 2006 12:24:07 -  1.2
@@ -21,7 +21,7 @@
Ecore_Con_Server *server;
Evas_List *clients;
ImapClient *current;
-   int cmd, count;
+   int cmd;
ImapState state;
void *data;

===
RCS file: /cvs/e/e_modules/mail/mbox.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 

E CVS: mail devilhorns

2006-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Remove a printf.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- e_mod_main.c13 Jun 2006 12:24:07 -  1.25
+++ e_mod_main.c13 Jun 2006 13:19:11 -  1.26
@@ -536,8 +536,6 @@
if (!cb) continue;
count += cb-num_new;
  }
-
-   printf(Count: %i\n, count);

if (count  0) 
  {




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Traverse the imap client list correctly.

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- imap.c  13 Jun 2006 12:24:07 -  1.5
+++ imap.c  13 Jun 2006 13:39:55 -  1.6
@@ -259,24 +259,15 @@
 
 is-clients = evas_list_next(is-clients);
 if (is-clients) 
-  {  
+  {
  is-current = is-clients-data;
- if (is-current) 
-   {
-  ic = is-current;
-  is-state = IMAP_STATE_SERVER_READY;
-   }
- else 
-   {
-  _mail_imap_server_logout(is);
-  ic = NULL;
-   }
+ is-state = IMAP_STATE_SERVER_READY;
   }
 else 
   {
  _mail_imap_server_logout(is);
- ic = NULL;  
-  } 
+ ic = NULL;
+  }
  }
if (!ic) break;
   default:




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Imap Should work again, cannot test it here tho.

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- imap.c  13 Jun 2006 13:39:55 -  1.6
+++ imap.c  13 Jun 2006 14:50:28 -  1.7
@@ -41,8 +41,8 @@
{
   if (ecore_con_ssl_available_get()  (ic-config-ssl))
 type |= ECORE_CON_USE_SSL;
-  ic-server-server = ecore_con_server_connect(type, 
ic-config-host, ic-config-port, NULL);
   ic-server-state = IMAP_STATE_DISCONNECTED;
+  ic-server-server = ecore_con_server_connect(type, 
ic-config-host, ic-config-port, NULL);
   ic-server-cmd = 0;
}
   }
@@ -122,9 +122,6 @@
Evas_List *l, *j;
int found = 0;

-   cb = data;
-   if (!cb) return NULL;
-
if ((!iservers) || (evas_list_count(iservers) = 0)) 
  {
is = E_NEW(ImapServer, 1);
@@ -154,6 +151,7 @@
  }
if (!found) 
  {
+   cb = data;
ic = E_NEW(ImapClient, 1);
ic-config = cb;
ic-server = is;
@@ -194,6 +192,7 @@
ecore_con_server_del(is-server);
is-server = NULL;

+   _mail_set_text(is-data);
return 0;
 }
 
@@ -252,7 +251,6 @@
  {
 ic-config-num_new = num;
 ic-config-num_total = total;
-_mail_set_text(is-data);
 
 if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
   _mail_start_exe(ic-config);
@@ -261,7 +259,16 @@
 if (is-clients) 
   {
  is-current = is-clients-data;
- is-state = IMAP_STATE_SERVER_READY;
+ if (is-current) 
+   {
+  ic = is-current;
+  is-state = IMAP_STATE_SERVER_READY;
+   }
+ else 
+   {
+  _mail_imap_server_logout(is);
+  ic = NULL;  
+   }
   }
 else 
   {




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Third and Final attemp at imap working again. It does work again now with
multiple accounts.

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- imap.c  13 Jun 2006 14:50:28 -  1.7
+++ imap.c  13 Jun 2006 15:59:19 -  1.8
@@ -16,6 +16,7 @@
 {
Ecore_Con_Type type = ECORE_CON_REMOTE_SYSTEM;
Evas_List *l, *j;
+   ImapClient *ic;   
 
for (l = iservers; l; l = l-next) 
  {
@@ -34,8 +35,6 @@
 
 for (j = is-clients; j; j = j-next) 
   {
- ImapClient *ic;
- 
  ic = j-data;
  if (!ic-server-server) 
{
@@ -48,6 +47,7 @@
   }
  }
is-current = evas_list_nth(is-clients, 0);
+   ic = is-current;
  }
 }
 
@@ -121,6 +121,9 @@
Config_Box *cb;
Evas_List *l, *j;
int found = 0;
+
+   cb = data;
+   if (!cb) return;

if ((!iservers) || (evas_list_count(iservers) = 0)) 
  {
@@ -151,7 +154,6 @@
  }
if (!found) 
  {
-   cb = data;
ic = E_NEW(ImapClient, 1);
ic-config = cb;
ic-server = is;
@@ -255,7 +257,7 @@
 if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
   _mail_start_exe(ic-config);
 
-is-clients = evas_list_next(is-clients);
+is-clients = is-clients-next;
 if (is-clients) 
   {
  is-current = is-clients-data;




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Forgot the icon updating function call for when new mail arrives. Doh !

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- imap.c  13 Jun 2006 15:59:19 -  1.8
+++ imap.c  13 Jun 2006 16:06:30 -  1.9
@@ -253,7 +253,8 @@
  {
 ic-config-num_new = num;
 ic-config-num_total = total;
-
+_mail_set_text(is-data);
+
 if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
   _mail_start_exe(ic-config);
 




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
imap.c 


Log Message:
Make imap update the text and icon.

===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- imap.c  12 Jun 2006 10:03:52 -  1.2
+++ imap.c  12 Jun 2006 20:21:28 -  1.3
@@ -207,6 +207,7 @@
Ecore_Con_Event_Server_Data *ev = event;
ImapServer *is;
ImapClient *ic;
+   Instance *inst;
int len, num = 0, total = 0;
char in[1024], out[1024], *spc;
size_t slen;
@@ -257,6 +258,9 @@
 is-count += num;
 ic-config-num_new = num;
 ic-config-num_total = total;
+inst = is-data;
+inst-count = num;
+_mail_set_text(inst); 
 if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
   _mail_start_exe(ic-config);
 




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
mail.edc imap.c pop.c mdir.c mbox.c e_mod_main.c 


Log Message:
Fix centering label in the module.
Reset mail count to zero on call to check mail so that we only get total of
new mail. During checks, add new mail count to the total.

===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- mail.edc12 Jun 2006 10:03:52 -  1.11
+++ mail.edc12 Jun 2006 20:45:10 -  1.12
@@ -16,32 +16,10 @@
max: 128 128;
parts
  {
-part 
-  {
- name: clip;
- type: RECT;
- mouse_events: 1;
- description 
-   {
-  state: default 0.0;
-  color: 255 255 255 255;
-  rel1 
-{
-   relative: 0.0 0.0;
-   offset: 0 0;
-}
-  rel2 
-{
-   relative: 1.0 1.0;
-   offset: -1 -1;
-}
-   }
-  }
 part
   {
  name:  logo;
  type: IMAGE;
- clip_to: clip;
  mouse_events: 1;
  description
{
@@ -78,14 +56,13 @@
   {
  name: new_label;
  type: TEXT;
- clip_to: clip;
- effect: SOFT_SHADOW;
+ effect: OUTLINE_SOFT_SHADOW;
  mouse_events: 1;
  description 
{
   state: default 0.0;
-  color: 0 0 0 255;
-  color3: 255 255 255 42;
+  color: 255 255 255 255;
+  color3: 0 0 0 32;
   visible: 0;
   rel1 
 {
@@ -103,10 +80,9 @@
 {
text: ;
font: VeraBold;
-   size: 14;
+   size: 16;
min: 1 1;
-   align: 0.5 0.5;
-   text_class: module_large;
+   align: 1.0 0.5;
 }
}
  description 
@@ -114,8 +90,6 @@
   state: visible 0.0;
   inherit: default 0.0;
   visible: 1;
-  color: 0 0 0 255;
-  color3: 255 255 255 42;
}
   }
  }
===
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- imap.c  12 Jun 2006 20:21:28 -  1.3
+++ imap.c  12 Jun 2006 20:45:10 -  1.4
@@ -194,8 +194,9 @@

ecore_con_server_del(is-server);
is-server = NULL;
+
inst = is-data;
-   inst-count = is-count;
+   inst-count += is-count;
_mail_set_text(inst);

return 0;
@@ -258,9 +259,6 @@
 is-count += num;
 ic-config-num_new = num;
 ic-config-num_total = total;
-inst = is-data;
-inst-count = num;
-_mail_set_text(inst); 
 if ((num  0)  (ic-config-use_exec)  (ic-config-exec))
   _mail_start_exe(ic-config);
 
===
RCS file: /cvs/e/e_modules/mail/pop.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- pop.c   12 Jun 2006 10:03:52 -  1.2
+++ pop.c   12 Jun 2006 20:45:10 -  1.3
@@ -192,7 +192,7 @@
 pc-config-num_new = num;
 pc-config-num_total = num;
  }
-   inst-count = num;
+   inst-count += num;
_mail_pop_client_quit(pc);
if ((num  0)  (pc-config-use_exec)  (pc-config-exec))
  _mail_start_exe(pc-config);
===
RCS file: /cvs/e/e_modules/mail/mdir.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- mdir.c  12 Jun 2006 10:03:52 -  1.2
+++ mdir.c  12 Jun 2006 20:45:10 -  1.3
@@ -75,8 +75,9 @@
 
mc-config-num_total = _mail_mdir_get_files(mc-config-cur_path);
mc-config-num_new = _mail_mdir_get_files(mc-config-new_path);
+
inst = mc-data;
-   inst-count = mc-config-num_new;
+   inst-count += mc-config-num_new;
_mail_set_text(inst);
if ((mc-config-num_new  0)  

E CVS: mail devilhorns

2006-06-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c 


Log Message:
When switching type to Imap, default the New Path entry to Inbox for users
that do not know their default Imap path.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_config_box.c  11 Jun 2006 17:44:39 -  1.5
+++ e_mod_config_box.c  12 Jun 2006 20:52:15 -  1.6
@@ -329,6 +329,7 @@
e_widget_disabled_set(cfdata-cur_path_label, 1);
e_widget_disabled_set(cfdata-cur_path_entry, 1);
e_widget_entry_text_set(cfdata-cur_path_entry, );
+   e_widget_entry_text_set(cfdata-new_path_entry, _(Inbox));
e_widget_entry_text_set(cfdata-port_entry, 143);
cfdata-port = strdup(143);
  }




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
module_icon.png module.eap newmail.png 


Log Message:
Crop extra space from icons.


===
RCS file: /cvs/e/e_modules/mail/module_icon.png,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
Binary files /tmp/cvs97wwjR and /tmp/cvsBWu01h differ
===
RCS file: /cvs/e/e_modules/mail/module.eap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
Binary files /tmp/cvsBjUroV and /tmp/cvstKIq9l differ
===
RCS file: /cvs/e/e_modules/mail/newmail.png,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
Binary files /tmp/cvsXH5F4T and /tmp/cvs369eRk differ




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c 


Log Message:
Fix translation problem in box config. gettext returns authors and other
junk on _() so replace with .

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_config_box.c  9 Jun 2006 10:00:36 -   1.3
+++ e_mod_config_box.c  11 Jun 2006 13:20:35 -  1.4
@@ -179,7 +179,7 @@
 
ob = e_widget_label_add(evas, _(Use SSL:));
e_widget_frametable_object_append(of, ob, 0, 1, 1, 1, 0, 0, 1, 0);   
-   ob = e_widget_check_add(evas, _(), (cfdata-ssl));
+   ob = e_widget_check_add(evas, , (cfdata-ssl));
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);





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
.cvsignore 


Log Message:
added object files to ignore

===
RCS file: /cvs/e/e_modules/mail/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- .cvsignore  7 Jun 2006 19:43:59 -   1.1
+++ .cvsignore  11 Jun 2006 17:36:44 -  1.2
@@ -22,3 +22,4 @@
 *.edj
 *.spec
 *.tar.gz
+*.o




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Added Files:
mbox.c mbox.h mdir.c mdir.h imap.c imap.h pop.c pop.h 


Log Message:
Added new mail code, split into different source files for easier fixes and
patches.





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
configure.in 


Log Message:
Version Bump for new split version.

===
RCS file: /cvs/e/e_modules/mail/configure.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- configure.in8 Jun 2006 20:20:36 -   1.2
+++ configure.in11 Jun 2006 17:38:23 -  1.3
@@ -7,7 +7,7 @@
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE(mail, 0.0.2)
+AM_INIT_AUTOMAKE(mail, 0.0.3)
 AM_CONFIG_HEADER(config.h)
 
 AC_ISC_POSIX




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c e_mod_main.h e_mod_config.c Makefile.am mail.edc 


Log Message:
Split mail checking code into seperate files for easier fixes.

When checking imap servers, if accounts use the same server, then only
connect once and check all the boxes for this server. Englebass, I think
this is what you meant :)

Some edc changes.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- e_mod_main.c10 Jun 2006 18:05:08 -  1.21
+++ e_mod_main.c11 Jun 2006 17:41:42 -  1.22
@@ -17,40 +17,23 @@
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#include sys/types.h
-#include dirent.h
 #include e.h
-#include Ecore.h
-#include Ecore_Con.h
-#include Ecore_File.h
 #include e_mod_main.h
-
-typedef enum 
-{
-   STATE_DISCONNECTED,
- STATE_CONNECTED,
- STATE_SERVER_READY,
- STATE_LOGGED_IN, 
- STATE_USER_OK,
- STATE_PASS_OK,
- STATE_STATUS_OK
-} State;
+#include imap.h
+#include pop.h
+#include mdir.h
+#include mbox.h
 
 typedef struct _Instance Instance;
 typedef struct _Mail Mail;
-typedef struct _Mailbox Mailbox;
 
 struct _Instance 
 {
E_Gadcon_Client *gcc;
Evas_Object *mail_obj;
Mail *mail;
+   Ecore_Exe *exe;
Ecore_Timer *check_timer;
-   Evas_List *mboxes;
-
-   Ecore_Event_Handler *add_handler;
-   Ecore_Event_Handler *del_handler;
-   Ecore_Event_Handler *data_handler;
 };
 
 struct _Mail
@@ -59,21 +42,6 @@
Evas_Object *mail_obj;
 };
 
-struct _Mailbox 
-{
-   Instance *inst;
-   Config_Box *config;
-   int state;
-   int cmd;
-   int has_mail;
-   int num_new;
-   int num_total;
-   Ecore_Con_Server *server;
-   Ecore_File_Monitor *monitor;
-   Ecore_Exe *exe;   
-   Ecore_Event_Handler *exit_handler;
-};
-
 /* Func Protos for Gadcon */
 static E_Gadcon_Client *_gc_init(E_Gadcon *gc, const char *name, const char 
*id, const char *style);
 static void _gc_shutdown(E_Gadcon_Client *gcc);
@@ -92,17 +60,7 @@
 static Mail *_mail_new(Evas *evas);
 static void _mail_free(Mail *mail);
 static int _mail_cb_check(void *data);
-static int _mail_server_add(void *data, int type, void *event);
-static int _mail_server_del(void *data, int type, void *event);
-static int _mail_server_data(void *data, int type, void *event);
-static int _mail_parse_pop(void *data, void *data2);
-static int _mail_parse_imap(void *data, void *data2);
-static void _mail_mbox_check(void *data, Ecore_File_Monitor *monitor, 
Ecore_File_Event event, const char *path);
-static void _mail_mdir_check(void *data, Ecore_File_Monitor *monitor, 
Ecore_File_Event event, const char *path);
-static int _mail_mdir_get_files(const char *path);
-static void _mail_set_text(void *data);
 static int _mail_cb_exe_exit(void *data, int type, void *event);
-static Mailbox *_mail_find_mailbox(void *data, void *data2);
 
 static E_Config_DD *conf_edd = NULL;
 static E_Config_DD *conf_item_edd = NULL;
@@ -110,6 +68,8 @@
 
 Config *mail_config = NULL;
 
+static Ecore_Event_Handler *exit_handler;
+
 static const E_Gadcon_Client_Class _gc_class = 
 {
GADCON_CLIENT_CLASS_VERSION,
@@ -119,13 +79,11 @@
 static E_Gadcon_Client *
 _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style) 
 {
-   Evas_Object *o;
E_Gadcon_Client *gcc;
Instance *inst;
Mail *mail;
Config_Item *ci;
-   Evas_List *l;
-   char buf[4096];
+   Evas_List *l, *j;

inst = E_NEW(Instance, 1);
ci = _mail_config_item_get(id);
@@ -135,15 +93,14 @@
mail-inst = inst;
inst-mail = mail;

-   o = mail-mail_obj;
-   gcc = e_gadcon_client_new(gc, name, id, style, o);
+   gcc = e_gadcon_client_new(gc, name, id, style, mail-mail_obj);
gcc-data = inst;
inst-gcc = gcc;
-   inst-mail_obj = o;
+   inst-mail_obj = mail-mail_obj;
 
-   evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, 
_mail_cb_mouse_down, inst);
-   evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_IN, 
_mail_cb_mouse_in, inst);
-   evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_OUT, 
_mail_cb_mouse_out, inst);
+   evas_object_event_callback_add(inst-mail_obj, EVAS_CALLBACK_MOUSE_DOWN, 
_mail_cb_mouse_down, inst);
+   evas_object_event_callback_add(inst-mail_obj, EVAS_CALLBACK_MOUSE_IN, 
_mail_cb_mouse_in, inst);
+   evas_object_event_callback_add(inst-mail_obj, EVAS_CALLBACK_MOUSE_OUT, 
_mail_cb_mouse_out, inst);
 
if (ci-show_label)
  edje_object_signal_emit(inst-mail_obj, label_active, );
@@ -151,41 +108,36 @@
  edje_object_signal_emit(inst-mail_obj, label_passive, );
 
mail_config-instances = evas_list_append(mail_config-instances, inst);
-   
-   if (!ci-boxes) return gcc;
-  
-   for (l = ci-boxes; l; l = l-next) 
+   for (l = mail_config-items; l; l = l-next) 
  {
-   

E CVS: mail devilhorns

2006-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c 


Log Message:
Remove old unused passwd change callback function.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_config_box.c  11 Jun 2006 13:20:35 -  1.4
+++ e_mod_config_box.c  11 Jun 2006 17:44:39 -  1.5
@@ -11,7 +11,6 @@
char *host;
char *user;
char *pass;
-   char *pass_cp;
char *new_path;
char *cur_path;
char *exec;
@@ -32,7 +31,6 @@
 static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data 
*cfdata);
 static void _type_cb_change(void *data, Evas_Object *obj);
 static void _use_exec_cb_change(void *data, Evas_Object *obj);
-static void _passwd_cb_change(void *data, Evas_Object *obj);
 
 static E_Config_Dialog *prev_dlg;
 static Config_Item *mail_ci;
@@ -92,12 +90,8 @@
if (cb-user)
  cfdata-user = strdup(cb-user);
if (cb-pass)
- {
-   cfdata-pass = strdup(cb-pass);
-   cfdata-pass_cp = strdup(cb-pass);
-   for (ptr = cfdata-pass; *ptr; ptr++) 
- *ptr = '*';
- }
+ cfdata-pass = strdup(cb-pass);
+ 
if (cb-new_path)
  cfdata-new_path = strdup(cb-new_path);
if (cb-cur_path)
@@ -124,7 +118,6 @@
E_FREE(cfdata-host);
E_FREE(cfdata-user);
E_FREE(cfdata-pass);
-   E_FREE(cfdata-pass_cp);
E_FREE(cfdata-new_path);
E_FREE(cfdata-cur_path);
E_FREE(cfdata-exec);
@@ -202,8 +195,6 @@
ob = e_widget_label_add(evas, _(Password:));
e_widget_frametable_object_append(of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
ob = e_widget_entry_add(evas, cfdata-pass);
-   //e_widget_entry_password_set(ob, 1);
-   e_widget_entry_on_change_callback_set(ob, _passwd_cb_change, cfdata);
e_widget_frametable_object_append(of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
 
cfdata-new_path_label = e_widget_label_add(evas, _(New Mail Path:));
@@ -283,7 +274,7 @@
 
if (cb-pass) evas_stringshare_del(cb-pass);
if (cfdata-pass != NULL)
- cb-pass = evas_stringshare_add(cfdata-pass_cp);
+ cb-pass = evas_stringshare_add(cfdata-pass);
else
  cb-pass = evas_stringshare_add();

@@ -360,45 +351,4 @@
e_widget_disabled_set(cfdata-exec_entry, !cfdata-use_exec);
if (!cfdata-use_exec)
  e_widget_entry_text_set(cfdata-exec_entry, );
-}
-
-static void 
-_passwd_cb_change(void *data, Evas_Object *obj) 
-{
-   E_Config_Dialog_Data*cfdata;
-   int i;
-   char *ptr;
-   
-   cfdata = data;
-
-   if (!cfdata-pass[0])
- {
-   E_FREE(cfdata-pass_cp);
-   cfdata-pass_cp = strdup();
-   return;
- }
-
-   if (strlen(cfdata-pass)  strlen(cfdata-pass_cp))
- {
-   for (i = 0; i  strlen(cfdata-pass_cp); i++)
- cfdata-pass[i] = cfdata-pass_cp[i];
-   E_FREE(cfdata-pass_cp);
-   cfdata-pass_cp = strdup(cfdata-pass);
- }
-   else if (strlen(cfdata-pass)  strlen(cfdata-pass_cp))
- {
-   cfdata-pass_cp[strlen(cfdata-pass)] = 0;
-   E_FREE(cfdata-pass);
-   cfdata-pass = strdup(cfdata-pass_cp);
- }
-   else
- {
-   E_FREE(cfdata-pass);
-   cfdata-pass = strdup(cfdata-pass_cp);
- }
-
-   for (ptr = cfdata-pass; *ptr; ptr++) 
- *ptr = '*';
-   
-   e_widget_entry_text_set(obj, cfdata-pass);
 }




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c mail.edc 


Log Message:
Multiple Fixes:
 - Stop changing icons when we check the mail and only set to new
mail icon if we actually have mail. Thanks HandAndE :)
 - Only create one ecore_con_server to handle all accounts. Thanks
englebass :)

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_mod_main.c9 Jun 2006 08:38:11 -   1.16
+++ e_mod_main.c10 Jun 2006 12:35:33 -  1.17
@@ -21,6 +21,7 @@
 #include dirent.h
 #include e.h
 #include Ecore.h
+#include Ecore_Con.h
 #include Ecore_File.h
 #include e_mod_main.h
 
@@ -63,14 +64,10 @@
int has_mail;
int num_new;
int num_total;
-   
-   Ecore_Exe *exe;   
Ecore_Con_Server *server;
-   Ecore_Event_Handler *add_handler;
-   Ecore_Event_Handler *del_handler;
-   Ecore_Event_Handler *data_handler;
Ecore_File_Monitor *monitor;
-   Ecore_Event_Handler *exit_handler;   
+   Ecore_Exe *exe;   
+   Ecore_Event_Handler *exit_handler;
 };
 
 /* Func Protos for Gadcon */
@@ -101,11 +98,16 @@
 static int _mail_mdir_get_files(const char *path);
 static void _mail_set_text(void *data);
 static int _mail_cb_exe_exit(void *data, int type, void *event);
+static Mailbox *_mail_find_mailbox(void *data, void *data2);
 
 static E_Config_DD *conf_edd = NULL;
 static E_Config_DD *conf_item_edd = NULL;
 static E_Config_DD *conf_box_edd = NULL;
 
+static Ecore_Event_Handler *add_handler;
+static Ecore_Event_Handler *del_handler;
+static Ecore_Event_Handler *data_handler;
+
 Config *mail_config = NULL;
 
 static const E_Gadcon_Client_Class _gc_class = 
@@ -147,11 +149,18 @@
  edje_object_signal_emit(inst-mail_obj, label_active, );
else
  edje_object_signal_emit(inst-mail_obj, label_passive, );
-   
+
mail_config-instances = evas_list_append(mail_config-instances, inst);
 
-   if (!ci-boxes) return gcc;
+   if (!add_handler)
+ add_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, 
_mail_server_add, inst);
+   if (!del_handler)
+ del_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, 
_mail_server_del, inst);
+   if (!data_handler)
+ data_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, 
_mail_server_data, inst);

+   if (!ci-boxes) return gcc;
+  
for (l = ci-boxes; l; l = l-next) 
  {
Mailbox *mb;
@@ -161,9 +170,9 @@
mb = E_NEW(Mailbox, 1);
mb-inst = inst;
mb-config = cb;
-   mb-server = NULL;
mb-state = STATE_DISCONNECTED;
mb-cmd = 0;
+   mb-server = NULL;
inst-mboxes = evas_list_append(inst-mboxes, mb);
 
if (cb-type == MAIL_TYPE_MDIR) 
@@ -185,19 +194,23 @@
 {
Instance *inst;

+   if (add_handler) ecore_event_handler_del(add_handler);
+   if (data_handler) ecore_event_handler_del(data_handler);
+   if (del_handler) ecore_event_handler_del(del_handler);
+
inst = gcc-data;
if (inst-check_timer) ecore_timer_del(inst-check_timer);
+
while (inst-mboxes) 
  {
Mailbox *mb;

mb = inst-mboxes-data;
if (mb-monitor) ecore_file_monitor_del(mb-monitor);
-   if (mb-add_handler) ecore_event_handler_del(mb-add_handler);
-   if (mb-data_handler) ecore_event_handler_del(mb-data_handler);
-   if (mb-del_handler) ecore_event_handler_del(mb-del_handler);
if (mb-server) ecore_con_server_del(mb-server);
mb-server = NULL;
+   mb-cmd = 0;
+   mb-state = STATE_DISCONNECTED;
inst-mboxes = evas_list_remove_list(inst-mboxes, inst-mboxes);
free(mb);
  }
@@ -239,17 +252,12 @@
 static void
 _mail_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info) 
 {
-   Instance *inst;
-   Evas_Event_Mouse_Down *ev;
-   Config_Item *ci;
+   Instance *inst = data;
+   Evas_Event_Mouse_Down *ev = event_info;
Evas_List *l;

-   inst = data;
if (!inst) return;

-   ci = _mail_config_item_get(inst-gcc-id);
-   
-   ev = event_info;
if ((ev-button == 3)  (!mail_config-menu))
  {
E_Menu *mn, *sn;
@@ -305,26 +313,26 @@
  ev-timestamp);
evas_event_feed_mouse_up(inst-gcc-gadcon-evas, ev-button, 
EVAS_BUTTON_NONE, ev-timestamp, NULL);
  }
-   else if ((ev-button == 1)  (inst)) 
+   else if (ev-button == 1) 
  _mail_cb_check(inst); 
 }
 
 static void 
 _mail_cb_mouse_in(void *data, Evas *e, Evas_Object *obj, void *event_info) 
 {
-   Instance *inst;
+   Instance *inst = data;

-   inst = data;
+   if (!inst) return;
edje_object_signal_emit(inst-mail_obj, label_active, );
 }
 
 static void 
 _mail_cb_mouse_out(void *data, Evas *e, Evas_Object *obj, void *event_info) 
 {
-   Instance *inst;
+   Instance *inst = data;
Config_Item 

E CVS: mail devilhorns

2006-06-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Make event handlers be per instance. This fixes a problem on shutdown when
trying to delete the event handlers.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_mod_main.c10 Jun 2006 12:35:33 -  1.17
+++ e_mod_main.c10 Jun 2006 14:12:26 -  1.18
@@ -47,6 +47,10 @@
Mail *mail;
Ecore_Timer *check_timer;
Evas_List *mboxes;
+
+   Ecore_Event_Handler *add_handler;
+   Ecore_Event_Handler *del_handler;
+   Ecore_Event_Handler *data_handler;
 };
 
 struct _Mail
@@ -104,10 +108,6 @@
 static E_Config_DD *conf_item_edd = NULL;
 static E_Config_DD *conf_box_edd = NULL;
 
-static Ecore_Event_Handler *add_handler;
-static Ecore_Event_Handler *del_handler;
-static Ecore_Event_Handler *data_handler;
-
 Config *mail_config = NULL;
 
 static const E_Gadcon_Client_Class _gc_class = 
@@ -152,12 +152,12 @@
 
mail_config-instances = evas_list_append(mail_config-instances, inst);
 
-   if (!add_handler)
- add_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, 
_mail_server_add, inst);
-   if (!del_handler)
- del_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, 
_mail_server_del, inst);
-   if (!data_handler)
- data_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, 
_mail_server_data, inst);
+   if (!inst-add_handler)
+ inst-add_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, 
_mail_server_add, inst);
+   if (!inst-del_handler)
+ inst-del_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, 
_mail_server_del, inst);
+   if (!inst-data_handler)
+ inst-data_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, 
_mail_server_data, inst);

if (!ci-boxes) return gcc;
   
@@ -193,12 +193,12 @@
 _gc_shutdown(E_Gadcon_Client *gcc) 
 {
Instance *inst;
-   
-   if (add_handler) ecore_event_handler_del(add_handler);
-   if (data_handler) ecore_event_handler_del(data_handler);
-   if (del_handler) ecore_event_handler_del(del_handler);
 
inst = gcc-data;
+   
+   if (inst-add_handler) ecore_event_handler_del(inst-add_handler);
+   if (inst-data_handler) ecore_event_handler_del(inst-data_handler);
+   if (inst-del_handler) ecore_event_handler_del(inst-del_handler);
if (inst-check_timer) ecore_timer_del(inst-check_timer);
 
while (inst-mboxes) 




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c mail.edc 


Log Message:
If we have no mail, clear all the text when setting no mail icon.
Center the mail count in the edc.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_mod_main.c10 Jun 2006 14:12:26 -  1.18
+++ e_mod_main.c10 Jun 2006 14:43:13 -  1.19
@@ -952,8 +952,12 @@

if (count  0)
  edje_object_signal_emit(inst-mail-mail_obj, new_mail, );
-   else
- edje_object_signal_emit(inst-mail-mail_obj, no_mail, ); 
+   else 
+ {
+   edje_object_signal_emit(inst-mail-mail_obj, no_mail, );
+   edje_object_part_text_set(inst-mail-mail_obj, name, );
+   edje_object_part_text_set(inst-mail-mail_obj, new_label, );
+ }
 }
 
 static int 
===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- mail.edc10 Jun 2006 12:35:33 -  1.8
+++ mail.edc10 Jun 2006 14:43:13 -  1.9
@@ -105,7 +105,7 @@
font: VeraBold;
size: 10;
min: 1 1;
-   align: 1.0 0.5;
+   align: 0.5 0.5;
text_class: module_normal;
 }
}




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Some code cleanup:
 - When creating new mailboxes in config, create the server handlers if
needed.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_mod_main.c10 Jun 2006 14:43:13 -  1.19
+++ e_mod_main.c10 Jun 2006 17:59:30 -  1.20
@@ -151,13 +151,6 @@
  edje_object_signal_emit(inst-mail_obj, label_passive, );
 
mail_config-instances = evas_list_append(mail_config-instances, inst);
-
-   if (!inst-add_handler)
- inst-add_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, 
_mail_server_add, inst);
-   if (!inst-del_handler)
- inst-del_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, 
_mail_server_del, inst);
-   if (!inst-data_handler)
- inst-data_handler = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, 
_mail_server_data, inst);

if (!ci-boxes) return gcc;
   
@@ -181,6 +174,13 @@
  mb-monitor = ecore_file_monitor_add(cb-new_path, _mail_mbox_check, 
mb);
else 
  {
+if (!inst-add_handler)
+  inst-add_handler = 
ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, _mail_server_add, inst);
+if (!inst-del_handler)
+  inst-del_handler = 
ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, _mail_server_del, inst);
+if (!inst-data_handler)
+  inst-data_handler = 
ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, _mail_server_data, inst);
+
 _mail_cb_check(inst);
 if (!inst-check_timer)
   inst-check_timer = ecore_timer_add((ci-check_time * 60.0), 
_mail_cb_check, inst);
@@ -1000,12 +1000,20 @@
   mb-state = STATE_DISCONNECTED;
   mb-cmd = 0;
   inst-mboxes = evas_list_append(inst-mboxes, mb);
+
   if (cb-type == MAIL_TYPE_MDIR) 
 mb-monitor = ecore_file_monitor_add(cb-new_path, 
_mail_mdir_check, mb);
   else if (cb-type == MAIL_TYPE_MBOX) 
 mb-monitor = ecore_file_monitor_add(cb-new_path, 
_mail_mbox_check, mb);
   else 
 {
+   if (!inst-add_handler)
+ inst-add_handler = 
ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, _mail_server_add, inst);
+   if (!inst-del_handler)
+ inst-del_handler = 
ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, _mail_server_del, inst);
+   if (!inst-data_handler)
+ inst-data_handler = 
ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, _mail_server_data, inst);
+
_mail_cb_check(inst);
if (!inst-check_timer)
  inst-check_timer = 
ecore_timer_add((ci-check_time * 60.0), _mail_cb_check, inst);
@@ -1041,10 +1049,12 @@
  cb = d-data;
  if ((cb-name)  (box_name)) 
{
-  if (!strcmp(cb-name, box_name))
-found = 1;
+  if (!strcmp(cb-name, box_name)) 
+{
+   found = 1;
+   break;
+}
}
- if (found) break;
   }
 if (found) 
   {
@@ -1057,6 +1067,7 @@
 (!strcmp(mb-config-name, cb-name))) 
 {
if (mb-monitor) 
ecore_file_monitor_del(mb-monitor);
+   if (mb-server) ecore_con_server_del(mb-server);
mb-server = NULL;
mb-state = STATE_DISCONNECTED;
mb-cmd = 0;




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Also make sure we delete the exe event handler is a mailbox is removed.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- e_mod_main.c10 Jun 2006 17:59:30 -  1.20
+++ e_mod_main.c10 Jun 2006 18:05:08 -  1.21
@@ -208,6 +208,8 @@
mb = inst-mboxes-data;
if (mb-monitor) ecore_file_monitor_del(mb-monitor);
if (mb-server) ecore_con_server_del(mb-server);
+   if (mb-exit_handler) ecore_event_handler_del(mb-exit_handler);
+   mb-exe = NULL;
mb-server = NULL;
mb-cmd = 0;
mb-state = STATE_DISCONNECTED;
@@ -1068,7 +1070,9 @@
 {
if (mb-monitor) 
ecore_file_monitor_del(mb-monitor);
if (mb-server) ecore_con_server_del(mb-server);
+   if (mb-exit_handler) 
ecore_event_handler_del(mb-exit_handler);
mb-server = NULL;
+   mb-exe = NULL;
mb-state = STATE_DISCONNECTED;
mb-cmd = 0;
inst-mboxes = evas_list_remove(inst-mboxes, mb);




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Changed label to now read #new/#total instead of New: #.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_mod_main.c8 Jun 2006 22:32:35 -   1.15
+++ e_mod_main.c9 Jun 2006 08:38:11 -   1.16
@@ -937,7 +937,7 @@
  {
 edje_object_part_text_set(inst-mail-mail_obj, name, cb-user);
 
-snprintf(buf, sizeof(buf), New: %d, mb-num_new);
+snprintf(buf, sizeof(buf), %d/%d, mb-num_new, mb-num_total);
 edje_object_part_text_set(inst-mail-mail_obj, new_label, buf);
 
 edje_object_signal_emit(inst-mail-mail_obj, new_mail, );




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config_box.c 


Log Message:
Free some chars on free_data.
Password field hack from desklock config until e_widget_entry supports
password type.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_config_box.c  8 Jun 2006 22:32:35 -   1.2
+++ e_mod_config_box.c  9 Jun 2006 10:00:36 -   1.3
@@ -11,6 +11,7 @@
char *host;
char *user;
char *pass;
+   char *pass_cp;
char *new_path;
char *cur_path;
char *exec;
@@ -31,6 +32,7 @@
 static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data 
*cfdata);
 static void _type_cb_change(void *data, Evas_Object *obj);
 static void _use_exec_cb_change(void *data, Evas_Object *obj);
+static void _passwd_cb_change(void *data, Evas_Object *obj);
 
 static E_Config_Dialog *prev_dlg;
 static Config_Item *mail_ci;
@@ -61,6 +63,7 @@
 _fill_data(Config_Box *cb, E_Config_Dialog_Data *cfdata) 
 {
char buf[1024];
+   char *ptr;

if (!cb) 
  {
@@ -89,7 +92,12 @@
if (cb-user)
  cfdata-user = strdup(cb-user);
if (cb-pass)
- cfdata-pass = strdup(cb-pass);
+ {
+   cfdata-pass = strdup(cb-pass);
+   cfdata-pass_cp = strdup(cb-pass);
+   for (ptr = cfdata-pass; *ptr; ptr++) 
+ *ptr = '*';
+ }
if (cb-new_path)
  cfdata-new_path = strdup(cb-new_path);
if (cb-cur_path)
@@ -111,6 +119,16 @@
 static void
 _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) 
 {
+   E_FREE(cfdata-name);
+   E_FREE(cfdata-port);
+   E_FREE(cfdata-host);
+   E_FREE(cfdata-user);
+   E_FREE(cfdata-pass);
+   E_FREE(cfdata-pass_cp);
+   E_FREE(cfdata-new_path);
+   E_FREE(cfdata-cur_path);
+   E_FREE(cfdata-exec);
+
free(cfdata);
 }
 
@@ -184,7 +202,8 @@
ob = e_widget_label_add(evas, _(Password:));
e_widget_frametable_object_append(of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
ob = e_widget_entry_add(evas, cfdata-pass);
-   e_widget_entry_password_set(ob, 1);
+   //e_widget_entry_password_set(ob, 1);
+   e_widget_entry_on_change_callback_set(ob, _passwd_cb_change, cfdata);
e_widget_frametable_object_append(of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
 
cfdata-new_path_label = e_widget_label_add(evas, _(New Mail Path:));
@@ -264,7 +283,7 @@
 
if (cb-pass) evas_stringshare_del(cb-pass);
if (cfdata-pass != NULL)
- cb-pass = evas_stringshare_add(cfdata-pass);
+ cb-pass = evas_stringshare_add(cfdata-pass_cp);
else
  cb-pass = evas_stringshare_add();

@@ -341,4 +360,45 @@
e_widget_disabled_set(cfdata-exec_entry, !cfdata-use_exec);
if (!cfdata-use_exec)
  e_widget_entry_text_set(cfdata-exec_entry, );
+}
+
+static void 
+_passwd_cb_change(void *data, Evas_Object *obj) 
+{
+   E_Config_Dialog_Data*cfdata;
+   int i;
+   char *ptr;
+   
+   cfdata = data;
+
+   if (!cfdata-pass[0])
+ {
+   E_FREE(cfdata-pass_cp);
+   cfdata-pass_cp = strdup();
+   return;
+ }
+
+   if (strlen(cfdata-pass)  strlen(cfdata-pass_cp))
+ {
+   for (i = 0; i  strlen(cfdata-pass_cp); i++)
+ cfdata-pass[i] = cfdata-pass_cp[i];
+   E_FREE(cfdata-pass_cp);
+   cfdata-pass_cp = strdup(cfdata-pass);
+ }
+   else if (strlen(cfdata-pass)  strlen(cfdata-pass_cp))
+ {
+   cfdata-pass_cp[strlen(cfdata-pass)] = 0;
+   E_FREE(cfdata-pass);
+   cfdata-pass = strdup(cfdata-pass_cp);
+ }
+   else
+ {
+   E_FREE(cfdata-pass);
+   cfdata-pass = strdup(cfdata-pass_cp);
+ }
+
+   for (ptr = cfdata-pass; *ptr; ptr++) 
+ *ptr = '*';
+   
+   e_widget_entry_text_set(obj, cfdata-pass);
 }




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Fix potential imap issue. Wrong state was getting set.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c7 Jun 2006 22:34:08 -   1.5
+++ e_mod_main.c8 Jun 2006 09:02:34 -   1.6
@@ -500,6 +500,7 @@
  type |= ECORE_CON_USE_SSL;
inst-server = ecore_con_server_connect(type, ci-host, ci-port, inst);
inst-state = STATE_DISCONNECTED;
+   inst-cmd = 0;
  }
return 1;
 }
@@ -543,6 +544,7 @@

ecore_con_server_del(inst-server);
inst-server = NULL;
+   inst-cmd = 0;
return 0;
 }
 
@@ -721,6 +723,7 @@
   case STATE_LOGGED_IN:
len = snprintf(out, sizeof(out), A%03i STATUS %s (MESSAGES 
UNSEEN)\r\n,++inst-cmd, ci-path);
ecore_con_server_send(inst-server, out, len);
+   inst-state = STATE_PASS_OK;
break;
   default:
break;




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Now state management should work as expected.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_mod_main.c8 Jun 2006 09:14:06 -   1.7
+++ e_mod_main.c8 Jun 2006 09:25:51 -   1.8
@@ -501,6 +501,7 @@
if (ci-use_ssl)
  type |= ECORE_CON_USE_SSL;
inst-server = ecore_con_server_connect(type, ci-host, ci-port, inst);
+   inst-state = STATE_CONNECTED;
  }
return 1;
 }
@@ -612,7 +613,10 @@
inst-server = NULL;
return 0;
  }
-   
+
+   if (inst-state == STATE_CONNECTED)
+ inst-state++;
+   
switch (inst-state) 
  {
   case STATE_SERVER_READY:
@@ -708,6 +712,9 @@
  } 
  }
 
+   if (inst-state == STATE_CONNECTED)
+ inst-state++;
+   
switch (inst-state) 
  {
   case STATE_SERVER_READY:




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c mail.edc 


Log Message:
Better labels for HandyAndE.. label will now show new/total, not seperate
labels for each.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_main.c8 Jun 2006 09:25:51 -   1.8
+++ e_mod_main.c8 Jun 2006 10:35:17 -   1.9
@@ -832,11 +832,8 @@
ci = _mail_config_item_get(inst-gcc-id);
edje_object_part_text_set(inst-mail-mail_obj, name, ci-user);

-   snprintf(buf, sizeof(buf), New: %d, n);
+   snprintf(buf, sizeof(buf), %d/%d, n, t);
edje_object_part_text_set(inst-mail-mail_obj, new_label, buf);
-   
-   snprintf(buf, sizeof(buf), Total: %d, t);
-   edje_object_part_text_set(inst-mail-mail_obj, total_label, buf);

if (n  0)
  edje_object_signal_emit(inst-mail-mail_obj, new_mail, );
===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- mail.edc7 Jun 2006 22:26:08 -   1.3
+++ mail.edc8 Jun 2006 10:35:17 -   1.4
@@ -161,50 +161,6 @@
   color3: 255 255 255 42;
}
   }
-part 
-  {
- name: total_label;
- type: TEXT;
- clip_to: clip;
- effect: SOFT_SHADOW;
- mouse_events: 0;
- description 
-   {
-  state: default 0.0;
-  color: 0 0 0 255;
-  color3: 255 255 255 42;
-  visible: 0;
-  rel1 
-{
-   relative: 0.0 0.6;
-   offset: 0 0;
-   to: logo;
-}
-  rel2 
-{
-   relative: 1.0 0.8;
-   offset: -1 -1;
-   to: logo;
-}
-  text 
-{
-   text: Total:;
-   font: VeraBold;
-   size: 9;
-   min: 1 1;
-   align: 1.0 0.5;
-   text_class: module_small;
-}
-   }
- description 
-   {
-  state: visible 0.0;
-  inherit: default 0.0;
-  visible: 1;
-  color: 0 0 0 255;
-  color3: 255 255 255 42;
-   }
-  }
  }
programs 
  {
@@ -217,7 +173,6 @@
  transition: SINUSOIDAL 0.5;
  target: name;
  target: new_label;
- target: total_label;
   }
 program 
   {
@@ -236,7 +191,6 @@
  transition: SINUSOIDAL 1.0;
  target: name;
  target: new_label;
- target: total_label;
   }
 program 
   {




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c 


Log Message:
Reenable new mail path for imap, it does use it after all.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_config.c  8 Jun 2006 09:30:49 -   1.4
+++ e_mod_config.c  8 Jun 2006 10:32:24 -   1.5
@@ -283,7 +283,7 @@
E_Config_Dialog_Data *cfdata;

cfdata = data;
-   if ((cfdata-type == 0) || (cfdata-type == 1))
+   if (cfdata-type == 0)
  {
e_widget_disabled_set(cfdata-new_path_label, 1);
e_widget_disabled_set(cfdata-new_path_entry, 1);
@@ -292,6 +292,14 @@
e_widget_entry_text_set(cfdata-new_path_entry, );
e_widget_entry_text_set(cfdata-cur_path_entry, );
  }
+   else if (cfdata-type == 1) 
+ {
+   e_widget_disabled_set(cfdata-new_path_label, 0);
+   e_widget_disabled_set(cfdata-new_path_entry, 0);   
+   e_widget_disabled_set(cfdata-cur_path_label, 1);
+   e_widget_disabled_set(cfdata-cur_path_entry, 1);
+   e_widget_entry_text_set(cfdata-cur_path_entry, );
+ }   
else if (cfdata-type == 3)
  {
e_widget_disabled_set(cfdata-new_path_label, 0);




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Use explicit state management rather than incrementing for both pop and imap.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_mod_main.c8 Jun 2006 09:02:34 -   1.6
+++ e_mod_main.c8 Jun 2006 09:14:06 -   1.7
@@ -493,14 +493,14 @@
 
if (inst-server) ecore_con_server_del(inst-server);
inst-server = NULL;
+   inst-state = STATE_DISCONNECTED;
+   inst-cmd = 0;

if ((ci-host)  (ci-port != 0)) 
  { 
if (ci-use_ssl)
  type |= ECORE_CON_USE_SSL;
inst-server = ecore_con_server_connect(type, ci-host, ci-port, inst);
-   inst-state = STATE_DISCONNECTED;
-   inst-cmd = 0;
  }
return 1;
 }
@@ -599,51 +599,55 @@
if (!strncmp(in, -ERR, 4)) 
  {
printf(ERROR: %s\n, in);
+   inst-state = STATE_DISCONNECTED;
+   ecore_con_server_del(inst-server);
+   inst-server = NULL;
return 0;
  }
else if (strncmp(in, +OK, 3)) 
  {
printf(Unexpected reply: %s\n, in);
+   inst-state = STATE_DISCONNECTED;
+   ecore_con_server_del(inst-server);
+   inst-server = NULL;
return 0;
  }

-   inst-state++;
-   if (inst-state == STATE_LOGGED_IN)
- inst-state = ++inst-state;
-   
switch (inst-state) 
  {
   case STATE_SERVER_READY:
len = snprintf(out, sizeof(out), USER %s\r\n, ci-user);
ecore_con_server_send(inst-server, out, len);
+   inst-state = STATE_USER_OK;
break;
   case STATE_USER_OK:
len = snprintf(out, sizeof(out), PASS %s\r\n, ci-pass);
ecore_con_server_send(inst-server, out, len);
+   inst-state = STATE_PASS_OK;
break;
   case STATE_PASS_OK:
len = snprintf(out, sizeof(out), STAT\r\n);
ecore_con_server_send(inst-server, out, len);
+   inst-state = STATE_STATUS_OK;
break;
   case STATE_STATUS_OK:
if (sscanf(in, +OK %i %i, num, size) == 2) 
+ _mail_set_text(inst, num, num); 
+   else
+ _mail_set_text(inst, 0, 0);
+   
+   inst-state = STATE_DISCONNECTED;
+   ecore_con_server_del(inst-server);
+   inst-server = NULL;
+   if ((ci-use_exec)  (ci-exec != NULL)) 
  {
-_mail_set_text(inst, num, num);
-inst-state = STATE_DISCONNECTED;
-ecore_con_server_del(inst-server);
-inst-server = NULL;
-if ((ci-use_exec)  (ci-exec != NULL)) 
+if (num = 0) break;
+if (!inst-exe) 
   {
- if (num = 0) break;
- if (!inst-exe) 
-   {
-  inst-exit_handler = 
ecore_event_handler_add(ECORE_EXE_EVENT_DEL, _mail_cb_exe_exit, inst);
-  inst-exe = ecore_exe_run(ci-exec, inst);
-   }
+ inst-exit_handler = 
ecore_event_handler_add(ECORE_EXE_EVENT_DEL, _mail_cb_exe_exit, inst);
+ inst-exe = ecore_exe_run(ci-exec, inst);
   }
  }
-   else
- _mail_set_text(inst, 0, 0);
break;
   default:
break;
@@ -689,6 +693,8 @@
 len = snprintf(out, sizeof(out), A%03i LOGOUT, ++inst-cmd);
 ecore_con_server_send(inst-server, out, len);
 printf(Imap Failure: %s\n, spc + 4);
+inst-state = STATE_DISCONNECTED;
+inst-cmd = 0;
 return 0;
  }
else if ((slen  6)  (!strncmp(spc + 1, BAD , 4))) 
@@ -696,34 +702,34 @@
 len = snprintf(out, sizeof(out), A%03i LOGOUT, ++inst-cmd);
 ecore_con_server_send(inst-server, out, len);
 printf(Imap Bad Command: %s\n, spc + 5);
+inst-state = STATE_DISCONNECTED;
+inst-cmd = 0;
 return 0;
  } 
  }
 
-   inst-state++;
switch (inst-state) 
  {
   case STATE_SERVER_READY:
len = snprintf(out, sizeof(out), A%03i LOGIN %s %s\r\n, ++inst-cmd, 
ci-user, ci-pass);
ecore_con_server_send(inst-server, out, len);
-   break;
-  case STATE_STATUS_OK:
-   if (sscanf(in, * STATUS %*s (MESSAGES %i UNSEEN %i), total, unread) 
== 2) 
- {
-_mail_set_text(inst, unread, total);
-inst-state = STATE_LOGGED_IN;
- }
-   else 
- {
-_mail_set_text(inst, 0, 0);
-len = snprintf(out, sizeof(out), A%03i LOGOUT, ++inst-cmd);
-ecore_con_server_send(inst-server, out, len);  
- }
+   inst-state = STATE_LOGGED_IN;
break;
   case STATE_LOGGED_IN:
len = snprintf(out, sizeof(out), A%03i STATUS %s (MESSAGES 
UNSEEN)\r\n,++inst-cmd, 

E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c 


Log Message:
Disable new mail path for imap, it's not used anyway.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_config.c  7 Jun 2006 22:14:24 -   1.3
+++ e_mod_config.c  8 Jun 2006 09:30:49 -   1.4
@@ -283,7 +283,7 @@
E_Config_Dialog_Data *cfdata;

cfdata = data;
-   if (cfdata-type == 0) 
+   if ((cfdata-type == 0) || (cfdata-type == 1))
  {
e_widget_disabled_set(cfdata-new_path_label, 1);
e_widget_disabled_set(cfdata-new_path_entry, 1);
@@ -292,7 +292,7 @@
e_widget_entry_text_set(cfdata-new_path_entry, );
e_widget_entry_text_set(cfdata-cur_path_entry, );
  }
-   else if ((cfdata-type == 1) || (cfdata-type == 3))
+   else if (cfdata-type == 3)
  {
e_widget_disabled_set(cfdata-new_path_label, 0);
e_widget_disabled_set(cfdata-new_path_entry, 0);




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Dont set mail count to 0 nor icon to no mail on every poll, just set them if
there is no mail.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_mod_main.c8 Jun 2006 10:35:17 -   1.9
+++ e_mod_main.c8 Jun 2006 11:01:00 -   1.10
@@ -586,8 +586,6 @@
if (!ev) return;
 
if ((!inst-server) || (inst-server != ev-server)) return;
-
-   _mail_set_text(inst, 0, 0);

ci = _mail_config_item_get(inst-gcc-id);

@@ -679,8 +677,6 @@
 
if ((!inst-server) || (inst-server != ev-server)) return;
 
-   _mail_set_text(inst, 0, 0);
-   
ci = _mail_config_item_get(inst-gcc-id);

len = sizeof(in) -1;




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
Makefile.am 
Added Files:
e_mod_config_box.c e_mod_config_box.h 
Removed Files:
e_mod_config.c e_mod_main.c e_mod_main.h mail.edc 


Log Message:
Too many conflicts during merge. Will readd the updated files.

===
RCS file: /cvs/e/e_modules/mail/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- Makefile.am 7 Jun 2006 19:43:59 -   1.1
+++ Makefile.am 8 Jun 2006 20:18:57 -   1.2
@@ -20,7 +20,9 @@
 pkg_LTLIBRARIES= module.la
 module_la_SOURCES  = e_mod_main.c \
 e_mod_main.h \
-e_mod_config.c
+e_mod_config.c \
+e_mod_config_box.h \
+e_mod_config_box.c
 
 module_la_LIBADD   = @e_libs@ -lm
 module_la_LDFLAGS  = -module -avoid-version




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Added Files:
e_mod_config.c e_mod_main.c e_mod_main.h mail.edc 


Log Message:
Ok, mail module can now do multiple accounts per instance.

Remove old module.mail.cfg before running or bad things will happen.





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
configure.in 


Log Message:
Version Bump for mail module.

===
RCS file: /cvs/e/e_modules/mail/configure.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- configure.in7 Jun 2006 19:43:59 -   1.1
+++ configure.in8 Jun 2006 20:20:36 -   1.2
@@ -7,7 +7,7 @@
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE(mail, 0.0.1)
+AM_INIT_AUTOMAKE(mail, 0.0.2)
 AM_CONFIG_HEADER(config.h)
 
 AC_ISC_POSIX




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c e_mod_main.c mail.edc 


Log Message:
Fix merge errors. Should build now.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_mod_config.c  8 Jun 2006 20:20:07 -   1.7
+++ e_mod_config.c  8 Jun 2006 20:37:03 -   1.8
@@ -18,7 +18,6 @@
 static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, 
E_Config_Dialog_Data *cfdata);
 static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data 
*cfdata);
 
-//static void _use_exec_cb_change(void *data, Evas_Object *obj);
 static void _load_boxes(E_Config_Dialog *cfd);
 static int  _ilist_header_exists(Evas_Object *il, const char *name);
 static void _ilist_cb_selected(void *data);
@@ -50,14 +49,7 @@
 _fill_data(Config_Item *ci, E_Config_Dialog_Data *cfdata) 
 {
cfdata-show_label = ci-show_label;
-   //cfdata-use_exec = ci-use_exec;
-
-   //cfdata-exec = NULL;
-   //if (ci-exec)
-   //  cfdata-exec = strdup(ci-exec);
-
cfdata-check_time = ci-check_time;
-
cfdata-boxes = ci-boxes;
 }
 
@@ -271,12 +263,7 @@
il = cfdata-il;
s = e_widget_ilist_selected_label_get(il);

- e_mod_config.c
for (l = ci-boxes; l; l = l-next) 
-===
-   cfdata = data;
-   if (cfdata-type == 0)
- 1.5
  {
Config_Box *cb;

@@ -288,7 +275,6 @@
 break;
  }
  }
- e_mod_config.c
 }
 
 static void 
@@ -310,25 +296,6 @@
s = e_widget_ilist_selected_label_get(il);

for (l = ci-boxes; l; l = l-next) 
-===
-   else if (cfdata-type == 1) 
- {
-   e_widget_disabled_set(cfdata-new_path_label, 0);
-   e_widget_disabled_set(cfdata-new_path_entry, 0);   
-   e_widget_disabled_set(cfdata-cur_path_label, 1);
-   e_widget_disabled_set(cfdata-cur_path_entry, 1);
-   e_widget_entry_text_set(cfdata-cur_path_entry, );
- }   
-   else if (cfdata-type == 3)
- {
-   e_widget_disabled_set(cfdata-new_path_label, 0);
-   e_widget_disabled_set(cfdata-new_path_entry, 0);
-   e_widget_disabled_set(cfdata-cur_path_label, 1);
-   e_widget_disabled_set(cfdata-cur_path_entry, 1);
-   e_widget_entry_text_set(cfdata-cur_path_entry, );
- }
-   else if (cfdata-type == 2) 
- 1.5
  {
Config_Box *cb;

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- e_mod_main.c8 Jun 2006 20:20:07 -   1.12
+++ e_mod_main.c8 Jun 2006 20:37:03 -   1.13
@@ -656,13 +656,6 @@
if (!ev) return;
if ((!mb-server) || (mb-server != ev-server)) return;
 
- e_mod_main.c
-===
-   if ((!inst-server) || (inst-server != ev-server)) return;
-   
-   ci = _mail_config_item_get(inst-gcc-id);
-   
- 1.10
len = sizeof(in) -1;
len = (((len)  (ev-size)) ? ev-size : len);
memcpy(in, ev-data, len);
@@ -758,13 +751,6 @@
if (!ev) return;
if ((!mb-server) || (mb-server != ev-server)) return;
 
- e_mod_main.c
-===
-   if ((!inst-server) || (inst-server != ev-server)) return;
-
-   ci = _mail_config_item_get(inst-gcc-id);
-   
- 1.10
len = sizeof(in) -1;
len = (((len)  (ev-size)) ? ev-size : len);
memcpy(in, ev-data, len);
@@ -936,21 +922,10 @@
inst = data;
if (!inst) return;
 
-   edje_object_part_text_set(inst-mail-mail_obj, name, );
-   
- e_mod_main.c
-   snprintf(buf, sizeof(buf), New: 0);
-===
-   snprintf(buf, sizeof(buf), %d/%d, n, t);
- 1.10
-   edje_object_part_text_set(inst-mail-mail_obj, new_label, buf);
- e_mod_main.c
+  edje_object_part_text_set(inst-mail-mail_obj, name, );
+  edje_object_signal_emit(inst-mail-mail_obj, no_mail, );
+  edje_object_part_text_set(inst-mail-mail_obj, new_label, );
 
-   snprintf(buf, sizeof(buf), Total: 0);
-   edje_object_part_text_set(inst-mail-mail_obj, total_label, buf);
-
-   edje_object_signal_emit(inst-mail-mail_obj, no_mail, );
-   
for (l = inst-mboxes; l; l = l-next) 
  {
Mailbox *mb;
@@ -965,21 +940,11 @@
 snprintf(buf, sizeof(buf), New: %d, mb-num_new);
 edje_object_part_text_set(inst-mail-mail_obj, new_label, buf);
 
-snprintf(buf, sizeof(buf), Total: %d, mb-num_total);
-edje_object_part_text_set(inst-mail-mail_obj, total_label, 
buf);
-
 edje_object_signal_emit(inst-mail-mail_obj, new_mail, );
 
 break;
  }
  }
-===
-   
-   if (n  0)
- edje_object_signal_emit(inst-mail-mail_obj, new_mail, );
-   else
- edje_object_signal_emit(inst-mail-mail_obj, no_mail, );   
- 1.10
 }
 
 static int 
===
RCS file: 

E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
May help to actually return the mail counts instead of always 0, doh :)

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_main.c8 Jun 2006 20:37:03 -   1.13
+++ e_mod_main.c8 Jun 2006 21:05:33 -   1.14
@@ -909,7 +909,7 @@
  }
   
ecore_list_destroy(l);
-   return 0;
+   return i;
 }
 
 static void 




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-08 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c e_mod_config_box.c e_mod_main.c e_mod_main.h 


Log Message:
Many fixes:
 -Fix config dialog to allow changing current path for maildir.
 -When add/del accounts, setup those accounts to get new mail.
 -Mailbox list in menu now reflects accounts that have been add/del.
 

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_config.c  8 Jun 2006 20:37:03 -   1.8
+++ e_mod_config.c  8 Jun 2006 22:32:35 -   1.9
@@ -242,6 +242,7 @@
 
ci = cfd-data;
cfdata = cfd-cfdata;
+
_config_box(ci, NULL, cfd);
 }
 
@@ -303,8 +304,7 @@
if (!cb-name) continue;
if (!strcmp(s, cb-name)) 
  {
-ci-boxes = evas_list_remove(ci-boxes, cb);
-e_config_save_queue();
+_mail_box_deleted(ci-id, cb-name);
 break;
  }
  }
===
RCS file: /cvs/e/e_modules/mail/e_mod_config_box.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_config_box.c  8 Jun 2006 20:18:57 -   1.1
+++ e_mod_config_box.c  8 Jun 2006 22:32:35 -   1.2
@@ -33,6 +33,7 @@
 static void _use_exec_cb_change(void *data, Evas_Object *obj);
 
 static E_Config_Dialog *prev_dlg;
+static Config_Item *mail_ci;
 
 void 
 _config_box(Config_Item *ci, Config_Box *cb, E_Config_Dialog *mcfd) 
@@ -45,16 +46,7 @@
if (!v) return;
 
prev_dlg = mcfd;
-   
-   if (!cb) 
- {
-   cb = E_NEW(Config_Box, 1);
-   cb-type = 0;
-   cb-port = 110;
-   cb-ssl = 0;
-   ci-boxes = evas_list_append(ci-boxes, cb);
-   e_config_save_queue();
- }   
+   mail_ci = ci;

v-create_cfdata = _create_data;
v-free_cfdata = _free_data;
@@ -70,6 +62,16 @@
 {
char buf[1024];

+   if (!cb) 
+ {
+   cfdata-type = 0;
+   cfdata-ssl = 0;
+   cfdata-use_exec = 0;
+   snprintf(buf, sizeof(buf), 110);
+   cfdata-port = strdup(buf);
+   return;
+ }
+   
if (cb-name)
  cfdata-name = strdup(cb-name);
 
@@ -199,7 +201,7 @@
e_widget_frametable_object_append(of, cfdata-cur_path_label, 0, 5, 1, 1, 
0, 0, 1, 0);
cfdata-cur_path_entry = e_widget_entry_add(evas, cfdata-cur_path);
e_widget_frametable_object_append(of, cfdata-cur_path_entry, 1, 5, 1, 1, 
0, 0, 1, 0);
-   if ((cfdata-type == 0) || (cfdata-type == 2)) 
+   if ((cfdata-type == 1) || (cfdata-type == 3)) 
  {
e_widget_disabled_set(cfdata-cur_path_label, 1);
e_widget_disabled_set(cfdata-cur_path_entry, 1);
@@ -213,8 +215,7 @@
 _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) 
 {
Config_Box *cb;
-   
-   cb = cfd-data;
+   int is_new = 0;
 
if (cfdata-name == NULL) 
  {
@@ -223,6 +224,16 @@
return 0;
  }

+   cb = cfd-data;
+   if (!cb) 
+ {
+   cb = E_NEW(Config_Box, 1);
+   cb-type = 0;
+   cb-port = 110;
+   cb-ssl = 0;
+   is_new = 1;
+ }
+   
if (cb-name) evas_stringshare_del(cb-name);
if (cfdata-name != NULL)
  cb-name = evas_stringshare_add(cfdata-name);
@@ -271,6 +282,15 @@

e_config_save_queue();
 
+   _mail_box_config_updated(prev_dlg);
+
+   if (is_new) 
+ {
+   mail_ci-boxes = evas_list_append(mail_ci-boxes, cb);
+   e_config_save_queue();
+   _mail_box_added(mail_ci-id, cb-name);
+ }
+   
_mail_box_config_updated(prev_dlg);
return 1;
 }
===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_mod_main.c8 Jun 2006 21:05:33 -   1.14
+++ e_mod_main.c8 Jun 2006 22:32:35 -   1.15
@@ -958,6 +958,112 @@
ecore_event_handler_del(mb-exit_handler);
 }
 
+void
+_mail_box_added(const char *ci_name, const char *box_name) 
+{
+   Evas_List *l, *b;
+   
+   for (l = mail_config-instances; l; l = l-next) 
+ {
+   Instance *inst;
+   Config_Item *ci;
+   
+   inst = l-data;
+   ci = _mail_config_item_get(inst-gcc-id);
+   if ((ci-id)  (!strcmp(ci-id, ci_name))) 
+ {
+for (b = ci-boxes; b; b = b-next) 
+  {
+ Config_Box *cb;
+ 
+ cb = b-data;
+ if ((cb-name)  (!strcmp(cb-name, box_name))) 
+   {
+  Mailbox *mb;
+
+  mb = E_NEW(Mailbox, 1);
+  mb-inst = inst;
+  mb-config = cb;
+  mb-server = NULL;
+  mb-state = STATE_DISCONNECTED;
+  mb-cmd = 0;
+   

E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail




Log Message:
Directory /cvs/e/e_modules/mail added to the repository





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Added Files:
.cvsignore AUTHORS COPYING ChangeLog INSTALL Makefile.am NEWS 
README TODO VeraBd.ttf autogen.sh config.h.in configure.in 
e_mod_config.c e_mod_main.c e_mod_main.h mail.edc module.eap 
module_icon.png newmail.png 


Log Message:
Added mail module based on embrace code (Thanks Tilman :) )

Can check pop3, imap, mailbox, and mdir.
Needs testing with imap, mailbox and mdir.

Edc needs some work, I'm not entirely happy with it, but the module is in
for testing and feedback.





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Can only check mail via click if it's pop or imap.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_main.c7 Jun 2006 19:43:59 -   1.1
+++ e_mod_main.c7 Jun 2006 21:15:06 -   1.2
@@ -131,7 +131,7 @@
gcc-data = inst;
inst-gcc = gcc;
inst-mail_obj = o;
-
+   
if (ci-type == MAIL_TYPE_MDIR) 
  inst-monitor = ecore_file_monitor_add(ci-path, _mail_mdir_check, inst);
else if (ci-type == MAIL_TYPE_MBOX) 
@@ -247,7 +247,8 @@
  ev-timestamp);
evas_event_feed_mouse_up(inst-gcc-gadcon-evas, ev-button, 
EVAS_BUTTON_NONE, ev-timestamp, NULL);
  }
-   else if ((ev-button == 1)  (inst))
+   else if ((ev-button == 1)  (inst)  
+   ((ci-type == 0) || (ci-type == 1)))
  _mail_cb_check(inst);
 }
 
@@ -796,8 +797,6 @@
inst = data;
if (!inst) return;
 
-   printf(New: %d\n, n);
-   
ci = _mail_config_item_get(inst-gcc-id);
edje_object_part_text_set(inst-mail-mail_obj, name, ci-user);





___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c e_mod_main.c e_mod_main.h 


Log Message:
Added port and ssl as a config option.
Removed some frees in e_mod_config that may have been causing segfaults.

Users will need to remove old module config.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_config.c  7 Jun 2006 19:43:59 -   1.1
+++ e_mod_config.c  7 Jun 2006 21:47:57 -   1.2
@@ -5,6 +5,7 @@
 {
int show_label;
int use_exec;
+   int use_ssl;
int type;
double check_time;

@@ -14,6 +15,7 @@
char *pass;
char *path;
char *path_current;
+   char *port;

Evas_Object *new_path_label;
Evas_Object *new_path_entry;
@@ -55,12 +57,15 @@
 static void
 _fill_data(Config_Item *ci, E_Config_Dialog_Data *cfdata) 
 {
+   char buf[1024];
+   
cfdata-host = NULL;
cfdata-user = NULL;
cfdata-pass = NULL;
cfdata-exec = NULL;
cfdata-path = NULL;
cfdata-path_current = NULL;
+   cfdata-port = NULL;

if (ci-host)
  cfdata-host = strdup(ci-host);
@@ -79,6 +84,10 @@
cfdata-type = ci-type;
cfdata-use_exec = ci-use_exec;
cfdata-check_time = ci-check_time;
+   cfdata-use_ssl = ci-use_ssl;
+   
+   snprintf(buf, sizeof(buf), %d, ci-port);
+   cfdata-port = strdup(buf);
 }
 
 static void *
@@ -98,12 +107,6 @@
 {
if (!mail_config) return;
mail_config-config_dialog = NULL;
-   free(cfdata-host);
-   free(cfdata-user);
-   free(cfdata-pass);
-   free(cfdata-exec);
-   free(cfdata-path);
-   free(cfdata-path_current);
free(cfdata);
 }
 
@@ -154,26 +157,34 @@
e_widget_list_object_append(o, of, 1, 1, 0.5);   

of = e_widget_frametable_add(evas, _(Mailbox Settings), 1);
-   ob = e_widget_label_add(evas, _(Mail Host:));
+   ob = e_widget_label_add(evas, _(Port:));
e_widget_frametable_object_append(of, ob, 0, 0, 1, 1, 0, 0, 1, 0);
-   ob = e_widget_entry_add(evas, cfdata-host);
+   ob = e_widget_entry_add(evas, cfdata-port);
e_widget_frametable_object_append(of, ob, 1, 0, 1, 1, 0, 0, 1, 0);
 
-   ob = e_widget_label_add(evas, _(Username:));
+   ob = e_widget_check_add(evas, _(Use SSL), (cfdata-use_ssl));
e_widget_frametable_object_append(of, ob, 0, 1, 1, 1, 0, 0, 1, 0);
+
+   ob = e_widget_label_add(evas, _(Mail Host:));
+   e_widget_frametable_object_append(of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
+   ob = e_widget_entry_add(evas, cfdata-host);
+   e_widget_frametable_object_append(of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
+
+   ob = e_widget_label_add(evas, _(Username:));
+   e_widget_frametable_object_append(of, ob, 0, 4, 1, 1, 0, 0, 1, 0);
ob = e_widget_entry_add(evas, cfdata-user);
-   e_widget_frametable_object_append(of, ob, 1, 1, 1, 1, 0, 0, 1, 0);
+   e_widget_frametable_object_append(of, ob, 1, 4, 1, 1, 0, 0, 1, 0);
 
ob = e_widget_label_add(evas, _(Password:));
-   e_widget_frametable_object_append(of, ob, 0, 2, 1, 1, 0, 0, 1, 0);
+   e_widget_frametable_object_append(of, ob, 0, 5, 1, 1, 0, 0, 1, 0);
ob = e_widget_entry_add(evas, cfdata-pass);
e_widget_entry_password_set(ob, 1);
-   e_widget_frametable_object_append(of, ob, 1, 2, 1, 1, 0, 0, 1, 0);
+   e_widget_frametable_object_append(of, ob, 1, 5, 1, 1, 0, 0, 1, 0);

cfdata-new_path_label = e_widget_label_add(evas, _(New Mail Path:));
-   e_widget_frametable_object_append(of, cfdata-new_path_label, 0, 3, 1, 1, 
0, 0, 1, 0);
+   e_widget_frametable_object_append(of, cfdata-new_path_label, 0, 6, 1, 1, 
0, 0, 1, 0);
cfdata-new_path_entry = e_widget_entry_add(evas, cfdata-path);
-   e_widget_frametable_object_append(of, cfdata-new_path_entry, 1, 3, 1, 1, 
0, 0, 1, 0);
+   e_widget_frametable_object_append(of, cfdata-new_path_entry, 1, 6, 1, 1, 
0, 0, 1, 0);
if (cfdata-type == 0) 
  {
e_widget_disabled_set(cfdata-new_path_label, 1);
@@ -181,9 +192,9 @@
  }
 
cfdata-cur_path_label = e_widget_label_add(evas, _(Current Mail Path:));
-   e_widget_frametable_object_append(of, cfdata-cur_path_label, 0, 4, 1, 1, 
0, 0, 1, 0);
+   e_widget_frametable_object_append(of, cfdata-cur_path_label, 0, 7, 1, 1, 
0, 0, 1, 0);
cfdata-cur_path_entry = e_widget_entry_add(evas, cfdata-path_current);
-   e_widget_frametable_object_append(of, cfdata-cur_path_entry, 1, 4, 1, 1, 
0, 0, 1, 0);
+   e_widget_frametable_object_append(of, cfdata-cur_path_entry, 1, 7, 1, 1, 
0, 0, 1, 0);
if ((cfdata-type == 0) || (cfdata-type == 2)) 
  {
e_widget_disabled_set(cfdata-cur_path_label, 1);
@@ -201,37 +212,37 @@

ci = cfd-data;
 
-   if (ci-host) evas_stringshare_del(ci-host);
+   evas_stringshare_del(ci-host);
if (cfdata-host != NULL)
  ci-host = evas_stringshare_add(cfdata-host);
else
  ci-host = evas_stringshare_add();
 
-   if (ci-user) 

E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
mail.edc 


Log Message:
Reversed text colors for Hawkwind :)

===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- mail.edc7 Jun 2006 19:43:59 -   1.1
+++ mail.edc7 Jun 2006 22:08:47 -   1.2
@@ -83,8 +83,8 @@
  description 
{
   state: default 0.0;
-  color: 255 255 255 255;
-  color3: 0 0 0 42;
+  color: 0 0 0 255;
+  color3: 255 255 255 42;
   visible: 0;
   rel1 
 {
@@ -113,8 +113,8 @@
   state: visible 0.0;
   inherit: default 0.0;
   visible: 1;
-  color: 255 255 255 255;
-  color3: 0 0 0 42;
+  color: 0 0 0 255;
+  color3: 255 255 255 42;
}
   }
 part 
@@ -127,8 +127,8 @@
  description 
{
   state: default 0.0;
-  color: 255 255 255 255;
-  color3: 0 0 0 42;
+  color: 0 0 0 255;
+  color3: 255 255 255 42;
   visible: 0;
   rel1 
 {
@@ -157,8 +157,8 @@
   state: visible 0.0;
   inherit: default 0.0;
   visible: 1;
-  color: 255 255 255 255;
-  color3: 0 0 0 42;
+  color: 0 0 0 255;
+  color3: 255 255 255 42;
}
   }
 part 
@@ -171,8 +171,8 @@
  description 
{
   state: default 0.0;
-  color: 255 255 255 255;
-  color3: 0 0 0 42;
+  color: 0 0 0 255;
+  color3: 255 255 255 42;
   visible: 0;
   rel1 
 {
@@ -201,8 +201,8 @@
   state: visible 0.0;
   inherit: default 0.0;
   visible: 1;
-  color: 255 255 255 255;
-  color3: 0 0 0 42;
+  color: 0 0 0 255;
+  color3: 255 255 255 42;
}
   }
  }




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_config.c 


Log Message:
Fix a segfault when applying config.

===
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_config.c  7 Jun 2006 21:47:57 -   1.2
+++ e_mod_config.c  7 Jun 2006 22:14:24 -   1.3
@@ -212,37 +212,37 @@

ci = cfd-data;
 
-   evas_stringshare_del(ci-host);
+   if (ci-host) evas_stringshare_del(ci-host);
if (cfdata-host != NULL)
  ci-host = evas_stringshare_add(cfdata-host);
else
  ci-host = evas_stringshare_add();
 
-   evas_stringshare_del(ci-user);
+   if (ci-user) evas_stringshare_del(ci-user);
if (cfdata-user != NULL)
  ci-user = evas_stringshare_add(cfdata-user);
else
  ci-user = evas_stringshare_add();
 
-   evas_stringshare_del(ci-pass);
+   if (ci-pass) evas_stringshare_del(ci-pass);
if (cfdata-pass != NULL)
  ci-pass = evas_stringshare_add(cfdata-pass);
else
  ci-pass = evas_stringshare_add();
 
-   evas_stringshare_del(ci-path);
+   if (ci-path) evas_stringshare_del(ci-path);
if (cfdata-path != NULL)
  ci-path = evas_stringshare_add(cfdata-path);
else
  ci-path = evas_stringshare_add();
 
-   evas_stringshare_del(ci-path_current);
+   if (ci-path_current) evas_stringshare_del(ci-path_current);
if (cfdata-path_current != NULL)
  ci-path_current = evas_stringshare_add(cfdata-path_current);
else
  ci-path_current = evas_stringshare_add();
 
-   evas_stringshare_del(ci-exec);   
+   if (ci-exec) evas_stringshare_del(ci-exec);   
if (cfdata-exec != NULL)
  ci-exec = evas_stringshare_add(cfdata-exec);
else




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Don't launch exec unless there is new mail.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_main.c7 Jun 2006 21:47:57 -   1.3
+++ e_mod_main.c7 Jun 2006 22:20:21 -   1.4
@@ -629,6 +629,7 @@
 _mail_set_text(inst, num, num);
 if ((ci-use_exec)  (ci-exec != NULL)) 
   {
+ if (num = 0) break;
  if (!inst-exe) 
{
   inst-exit_handler = 
ecore_event_handler_add(ECORE_EXE_EVENT_DEL, _mail_cb_exe_exit, inst);
@@ -850,11 +851,9 @@
if (!inst-gcc-id) continue;
if (!strcmp(inst-gcc-id, ci-id)) 
  {
+if (inst-check_timer) ecore_timer_del(inst-check_timer);
 if ((ci-type == 0) || (ci-type == 1)) 
-  {
- if (inst-check_timer) ecore_timer_del(inst-check_timer);
- inst-check_timer = ecore_timer_add((ci-check_time * 60.0), 
_mail_cb_check, inst);
-  }
+  inst-check_timer = ecore_timer_add((ci-check_time * 60.0), 
_mail_cb_check, inst);
 
 if (ci-show_label)
   edje_object_signal_emit(inst-mail_obj, label_active, );
@@ -863,5 +862,4 @@
 break;
  }
  }
-   
 }




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
mail.edc 


Log Message:
Better text positions.

===
RCS file: /cvs/e/e_modules/mail/mail.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- mail.edc7 Jun 2006 22:08:47 -   1.2
+++ mail.edc7 Jun 2006 22:26:08 -   1.3
@@ -88,7 +88,7 @@
   visible: 0;
   rel1 
 {
-   relative: 0.0 0.90;
+   relative: 0.0 0.9;
offset: 0 0;
to: logo;
 }
@@ -132,13 +132,13 @@
   visible: 0;
   rel1 
 {
-   relative: 0.0 0.0;
+   relative: 0.0 0.3;
offset: 0 0;
to: logo;
 }
   rel2 
 {
-   relative: 1.0 0.6;
+   relative: 1.0 0.5;
offset: -1 -1;
to: logo;
 }
@@ -176,13 +176,13 @@
   visible: 0;
   rel1 
 {
-   relative: 0.5 0.0;
+   relative: 0.0 0.6;
offset: 0 0;
to: logo;
 }
   rel2 
 {
-   relative: 0.5 1.0;
+   relative: 1.0 0.8;
offset: -1 -1;
to: logo;
 }




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: mail devilhorns

2006-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir : e_modules/mail


Modified Files:
e_mod_main.c 


Log Message:
Make sure we disconnect on pop completion, or thunderbird causes Mailbox
Locked messages.

===
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.c7 Jun 2006 22:20:21 -   1.4
+++ e_mod_main.c7 Jun 2006 22:34:08 -   1.5
@@ -627,6 +627,9 @@
if (sscanf(in, +OK %i %i, num, size) == 2) 
  {
 _mail_set_text(inst, num, num);
+inst-state = STATE_DISCONNECTED;
+ecore_con_server_del(inst-server);
+inst-server = NULL;
 if ((ci-use_exec)  (ci-exec != NULL)) 
   {
  if (num = 0) break;




___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs