From: Javi <ja...@gs...> - 2004-04-04 22:42:40
|
Hi all. While the official e-mail plugin is been ported to N.G, I've wrote my own simple mail plugin, based on the "pop3check" code from http://sourceforge.net/projects/pop3check. It only supports POP3, but I've spent more time writing it than I spent writing MySQL's one :0 For it to work, I just added to my lcd4linux.conf: Plugin mail{ server1 ''foo.server1.com user1 'foo1' password1 'secret1' #port is optional, if none specified 110 will be used port1 110 server2 ''foo.server2.com user2 'foo2' password2 'secret2' port2 110 #etc... } #To get Account1 num. of mails: Widget Email { class 'Text' expression getMail(1) prefix 'mail' width 8 precision 0 align 'R' update minute } POP3 accounts are stored dinamically, so you can use as much accounts as you want, just edit source code and change "#define MAX_NUM_ACCOUNTS 3" Hope it helps someone till official pluging will be released :) B.R Javi. |