Re: [E-devel] imap/biff

2005-12-03 Thread Morten Nilsen

Tilman Sauerbeck wrote:

Morten Nilsen [2005-12-02 06:23]:
With the recent checkin of the gadget stuff in CVS, I suddenly got this idea to 
implement a gadget that tells you of new mail in a more clean way than the 
current alternative does..


The current alternative is as clean as it can be.


well, embrace uses edb ... I just wrote a patch to convert to using 
ecore_config..


untested (but compiled) patch attached

Cheers,
--
Morten
Index: configure.ac
===
RCS file: /cvsroot/enlightenment/misc/embrace/configure.ac,v
retrieving revision 1.18
diff -u -r1.18 configure.ac
--- configure.ac13 Oct 2005 22:13:14 -  1.18
+++ configure.ac4 Dec 2005 03:56:04 -
@@ -107,9 +107,6 @@
 AC_PATH_GENERIC(ecore, , ,
AC_MSG_ERROR(Cannot find ecore: Is ecore-config in path?))
 
-AC_PATH_GENERIC(edb, , ,
-   AC_MSG_ERROR(Cannot find edb: Is edb-config in path?))
-
 AC_PATH_GENERIC(evas, , ,
AC_MSG_ERROR(Cannot find evas: Is evas-config in path?))
 
Index: data/create_embrace_cfg.sh
===
RCS file: /cvsroot/enlightenment/misc/embrace/data/create_embrace_cfg.sh,v
retrieving revision 1.6
diff -u -r1.6 create_embrace_cfg.sh
--- data/create_embrace_cfg.sh  29 Jan 2005 14:51:36 -  1.6
+++ data/create_embrace_cfg.sh  4 Dec 2005 03:56:04 -
@@ -1,8 +1,8 @@
 #!/bin/sh
 
 NAME=embrace
-CONFIGPATH=~/.e/apps/embrace
-DB=$CONFIGPATH/$NAME.db
+CONFIGPATH=~/.e/apps/$NAME
+DB=$CONFIGPATH/$NAME.eet
 
 # generic mandatory attributes:
 # * title
@@ -20,30 +20,30 @@
 
 mkdir -p $CONFIGPATH
 
-edb_ed $DB add /$NAME/theme str "default"
-edb_ed $DB add /$NAME/num_mailboxes int 4
+ecore_config $DB set /$NAME/theme str "default"
+ecore_config $DB set /$NAME/num_mailboxes int 4
 
-edb_ed $DB add /$NAME/mailbox1/title str "inbox"
-edb_ed $DB add /$NAME/mailbox1/path str "~/Mail/inbox"
-edb_ed $DB add /$NAME/mailbox1/type str "maildir"
-
-edb_ed $DB add /$NAME/mailbox2/title str "e-cvs"
-edb_ed $DB add /$NAME/mailbox2/path str "~/Mail/enlightenment-cvs"
-edb_ed $DB add /$NAME/mailbox2/type str "mbox"
-
-edb_ed $DB add /$NAME/mailbox3/title str "my pop3 box"
-edb_ed $DB add /$NAME/mailbox3/host str "foo.bar.com"
-edb_ed $DB add /$NAME/mailbox3/port int 123
-edb_ed $DB add /$NAME/mailbox3/type str "pop3"
-edb_ed $DB add /$NAME/mailbox3/user str "myuser"
-edb_ed $DB add /$NAME/mailbox3/pass str "mypass"
-edb_ed $DB add /$NAME/mailbox3/ssl int 1 
-
-edb_ed $DB add /$NAME/mailbox4/title str "my imap mailbox"
-edb_ed $DB add /$NAME/mailbox4/host str "foo.bar.com"
-edb_ed $DB add /$NAME/mailbox4/port int 143
-edb_ed $DB add /$NAME/mailbox4/type str "imap"
-edb_ed $DB add /$NAME/mailbox4/user str "myuser"
-edb_ed $DB add /$NAME/mailbox4/pass str "mypass"
-edb_ed $DB add /$NAME/mailbox4/path str "path.to.mailbox"
-edb_ed $DB add /$NAME/mailbox4/ssl int 1
+ecore_config $DB set /$NAME/mailbox1/title str "inbox"
+ecore_config $DB set /$NAME/mailbox1/path str "~/Mail/inbox"
+ecore_config $DB set /$NAME/mailbox1/type str "maildir"
+
+ecore_config $DB set /$NAME/mailbox2/title str "e-cvs"
+ecore_config $DB set /$NAME/mailbox2/path str "~/Mail/enlightenment-cvs"
+ecore_config $DB set /$NAME/mailbox2/type str "mbox"
+
+ecore_config $DB set /$NAME/mailbox3/title str "my pop3 box"
+ecore_config $DB set /$NAME/mailbox3/host str "foo.bar.com"
+ecore_config $DB set /$NAME/mailbox3/port int 123
+ecore_config $DB set /$NAME/mailbox3/type str "pop3"
+ecore_config $DB set /$NAME/mailbox3/user str "myuser"
+ecore_config $DB set /$NAME/mailbox3/pass str "mypass"
+ecore_config $DB set /$NAME/mailbox3/ssl int 1 
+
+ecore_config $DB set /$NAME/mailbox4/title str "my imap mailbox"
+ecore_config $DB set /$NAME/mailbox4/host str "foo.bar.com"
+ecore_config $DB set /$NAME/mailbox4/port int 143
+ecore_config $DB set /$NAME/mailbox4/type str "imap"
+ecore_config $DB set /$NAME/mailbox4/user str "myuser"
+ecore_config $DB set /$NAME/mailbox4/pass str "mypass"
+ecore_config $DB set /$NAME/mailbox4/path str "path.to.mailbox"
+ecore_config $DB set /$NAME/mailbox4/ssl int 1
Index: src/Makefile.am
===
RCS file: /cvsroot/enlightenment/misc/embrace/src/Makefile.am,v
retrieving revision 1.13
diff -u -r1.13 Makefile.am
--- src/Makefile.am 8 Oct 2005 15:09:37 -   1.13
+++ src/Makefile.am 4 Dec 2005 03:56:05 -
@@ -5,7 +5,6 @@
 AM_CFLAGS = -I./include \
 @ENLIGHTENMENT_CFLAGS@ \
 @ECORE_CFLAGS@  \
-@EDB_CFLAGS@\
 @EVAS_CFLAGS@   \
 @EDJE_CFLAGS@   \
 @ESMART_CFLAGS@
@@ -15,7 +14,6 @@
 embrace_SOURCES = main.c
 
 embrace_LDADD = @ECORE_LIBS@  \
-@EDB_LIBS@\
 @EVAS_LIBS@   \
 @EDJE_LIBS@   \
 @ESMART_LIBS@ \
Index: src/include/embrace_plugin.h
==

Re: [E-devel] imap/biff

2005-12-03 Thread Tilman Sauerbeck
Morten Nilsen [2005-12-02 06:23]:
> With the recent checkin of the gadget stuff in CVS, I suddenly got this idea 
> to 
> implement a gadget that tells you of new mail in a more clean way than the 
> current alternative does..

The current alternative is as clean as it can be.

Cheers,
Tilman


pgpxLV0mzFPrJ.pgp
Description: PGP signature


Re: [E-devel] imap/biff

2005-12-02 Thread Morten Nilsen

dan sinclair wrote:
and as for lists.. ecore_config does, in a sense.. just group items into 
folders..


Yes, you can do this, it's also a pain as you need to track the number of items 
you have and all that sutff. Woudl be nicer if ecore_Config supported it 
natively.


not very troublesome to save an int to the parent of the "items"

but sure, native lists would be nice.. I just guess "someone" need to 
implement them :)


I don't like the look of embrace.. What I want is something to integrate 
with the desktop.. and I want to get to know the EFL


Embrace is edje themeable.


I'm no designer. I am incapable of making something nice-looking .. even 
to my own eyes..


Also, when I say "something to integrate with the desktop" I don't mean 
"something that can be made to fit the current theme by creating a theme 
for it" ;)


speaking of themes.. I'm having some issues.. my favourite theme, gant, 
has teeny titlebars .. I'm guess it was caused by "0 0.5" being changed 
to "0.5 0.5"

(that's a totally unfounded and wild guess, so don't hold me to it ;)
also, some themes (I don't use) seem to have empty labels in the menu.. 
and some are missing radio-button state indicator (like default)


I'm writing a module for a specific use-case.. however.. adding support 
for other sources than imap shouldn't be that much work, given the notes 
above.. but my primary interest is getting IMAP biff.


Fair enough. But in that case, don't start bashing embrace, just say what your 
doing.


what? and be civil? where's the fun in that? ;)

--
Morten


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


RE: Re: [E-devel] imap/biff

2005-12-02 Thread dan sinclair

> 
> and as for lists.. ecore_config does, in a sense.. just group items into 
> folders..

Yes, you can do this, it's also a pain as you need to track the number of items 
you have and all that sutff. Woudl be nicer if ecore_Config supported it 
natively.


> 
> I don't like the look of embrace.. What I want is something to integrate 
> with the desktop.. and I want to get to know the EFL

Embrace is edje themeable.

 
> 
> I'm writing a module for a specific use-case.. however.. adding support 
> for other sources than imap shouldn't be that much work, given the notes 
> above.. but my primary interest is getting IMAP biff.
> 

Fair enough. But in that case, don't start bashing embrace, just say what your 
doing.

dan









---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread Morten Nilsen

dan sinclair wrote:
replacing the #defines with ecore_config is less than 10 lines of code 
unless I'm forgetting something..




Ecore config dosen't handle lists as far as I know. If you want more then one 
server in there your boned. Maybe your system dosnen't handle this, but your 
coding yourself into a corner.


nope.. doesn't.. code just connects to one imap server and talks to it..
shouldn't take much code to wrap the server connection code to support 
multiple servers though..


basically, I suppose it would largely involve moving most of the code in 
main() to a setup_imap function or something like that..


I'm nowhere near the corner.. I just wrote a basic IMAP-biff.. mostly 
for testing purposes..


I tried looking at libc-client (uwimap) but the documentation nearly 
made my head implode..


and as for lists.. ecore_config does, in a sense.. just group items into 
folders..


what I want is something that only displays folders with mail, and scans 
all folders on the imap. my code doesn't need anything beside username, 
password and server address.




So, why not update embrace and make this an option. Have it scan all folders on 
the imap server if you set the flag?


I don't like the look of embrace.. What I want is something to integrate 
with the desktop.. and I want to get to know the EFL


I forward my main address to my local address ([EMAIL PROTECTED]) 
and then access it through imap..
 
Yes, but not everyone does this. If you want it to be generic for everyone to use the you'll need to support it.


I'm writing a module for a specific use-case.. however.. adding support 
for other sources than imap shouldn't be that much work, given the notes 
above.. but my primary interest is getting IMAP biff.


--
Morten


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


RE: Re: [E-devel] imap/biff

2005-12-02 Thread dan sinclair
> replacing the #defines with ecore_config is less than 10 lines of code 
> unless I'm forgetting something..
> 

Ecore config dosen't handle lists as far as I know. If you want more then one 
server in there your boned. Maybe your system dosnen't handle this, but your 
coding yourself into a corner.


> what I want is something that only displays folders with mail, and scans 
> all folders on the imap. my code doesn't need anything beside username, 
> password and server address.
> 

So, why not update embrace and make this an option. Have it scan all folders on 
the imap server if you set the flag?



> I forward my main address to my local address ([EMAIL PROTECTED]) 
> and then access it through imap..


Yes, but not everyone does this. If you want it to be generic for everyone to 
use the you'll need to support it.


dan







---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread Morten Nilsen

Nathan Ingersoll wrote:

On 12/2/05, Morten Nilsen <[EMAIL PROTECTED]> wrote:


if embrace is the app I think it is, this iswhy I won't even consider
using it;
- have to manually set up which mailboxes to watch.


only frontend needs implementation (and config, but that's super easy)


Right now you have a hardcoded server, username and password. These require
a recompile for each mailbox you would want to monitor. This definitely
falls into the "manually setting up mailboxes" category. I don't see how you
plan to implement config in such a "super easy" way that it's not similar to
embrace in the end. The only complicated thing about the embrace config is
that it can support multiple monitoring sources, if it were limited to a
single source it's the same case you currently have.


replacing the #defines with ecore_config is less than 10 lines of code 
unless I'm forgetting something..


what I want is something that only displays folders with mail, and scans 
all folders on the imap. my code doesn't need anything beside username, 
password and server address.



I don't really care about pop/mbox/etc .. besides, who uses that crap

these days anyway? ;)



Most people still use POP3 directly or indirectly. ISP's tend to put quota's
on their user accounts, so using IMAP is not an option for long. There are
also a lot of users that use fetchmail to pull their mail from the server,
run it through procmail and then save in mbox format on their local system.
With embrace I monitored 3 accounts (IMAP, POP3 and mbox) and 3 mailing list
mailboxes and the config was not that difficult.



I forward my main address to my local address ([EMAIL PROTECTED]) 
and then access it through imap..


and besides, I'm doing this to learn.. not to get mail notification up 
and running asap..


--
Morten


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread Nathan Ingersoll
On 12/2/05, Morten Nilsen <[EMAIL PROTECTED]> wrote:
if embrace is the app I think it is, this iswhy I won't even considerusing it;- have to manually set up which mailboxes to watch.
only frontend needs implementation (and config, but that's super easy)Right now you have a hardcoded server, username and password. These require a recompile for each mailbox you would want to monitor. This definitely falls into the "manually setting up mailboxes" category. I don't see how you plan to implement config in such a "super easy" way that it's not similar to embrace in the end. The only complicated thing about the embrace config is that it can support multiple monitoring sources, if it were limited to a single source it's the same case you currently have.
I don't really care about pop/mbox/etc .. besides, who uses that crapthese days anyway? ;)
Most people still use POP3 directly or indirectly. ISP's tend to put quota's on their user accounts, so using IMAP is not an option for long. There are also a lot of users that use fetchmail to pull their mail from the server, run it through procmail and then save in mbox format on their local system. With embrace I monitored 3 accounts (IMAP, POP3 and mbox) and 3 mailing list mailboxes and the config was not that difficult.



Re: [E-devel] imap/biff

2005-12-02 Thread Morten Nilsen

David Seikel wrote:

On Fri, 02 Dec 2005 15:35:31 +0100 Morten Nilsen <[EMAIL PROTECTED]>
wrote:

I don't really care about pop/mbox/etc .. besides, who uses that crap 
these days anyway? ;)


Anybody with a mail account that doesn't support IMAP.  Things like
yahoo and gmail generally only support POP.


what? there are people out there who don't have their own mailserver? :O

--
Morten
ps: ";)" means I was kidding


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread Morten Nilsen

Ramkumar R wrote:

I don't really care about pop/mbox/etc .. besides, who uses that crap
these days anyway? ;)


local mail from the system itself... cron jobs, debian update
notifications on my system... many others like this still use mbox!


that mail doesn't explicitly "use" mbox.. they use your systems mta.

all such mail is forwarded to my account on the imap box down in the 
cellar..


and one can just as well run an imapd on localhost :)

--
Morten


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread Ramkumar R
> I don't really care about pop/mbox/etc .. besides, who uses that crap
> these days anyway? ;)

local mail from the system itself... cron jobs, debian update
notifications on my system... many others like this still use mbox!

--
WARN_(accel)("msg null; should hang here to be win compatible\n");
   -- WINE source code


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread David Seikel
On Fri, 02 Dec 2005 15:35:31 +0100 Morten Nilsen <[EMAIL PROTECTED]>
wrote:

> I don't really care about pop/mbox/etc .. besides, who uses that crap 
> these days anyway? ;)

Anybody with a mail account that doesn't support IMAP.  Things like
yahoo and gmail generally only support POP.


pgpfOMCgOojCB.pgp
Description: PGP signature


Re: [E-devel] imap/biff

2005-12-02 Thread Morten Nilsen

Nathan Ingersoll wrote:

Have you looked into embrace in the misc module of CVS? It already uses edje


I believe I did some time ago..

if embrace is the app I think it is, this iswhy I won't even consider 
using it;

- have to manually set up which mailboxes to watch.


for it's theming and has support for a fair number of mail backends (POP3,
IMAP, SSL support, mbox, etc). This could be ported to a module and save you
some time implementing backends.


I have the backend all done up.. for imap both with and without ssl..

only frontend needs implementation (and config, but that's super easy)

I don't really care about pop/mbox/etc .. besides, who uses that crap 
these days anyway? ;)


Cheers,
--
Morten


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imap/biff

2005-12-02 Thread Nathan Ingersoll
Have you looked into embrace in the misc module of CVS? It already uses edje for it's theming and has support for a fair number of mail backends (POP3, IMAP, SSL support, mbox, etc). This could be ported to a module and save you some time implementing backends.