It's main merit is it's small, around 5.5KB, and it could be less if I'd remove script comments, xml indentations etc...
I wanted to use only stock Puppy tools such as gtkdialog3, Glade to design interfaces and gtrayicon. I live tested it only on Wary 030, Quirky 1.2 and Puppeee RC 7 at the moment.
Usage is pretty staightforward, on first run:
- Fill settings dialog that comes up with your username and password (they will be saved unencrypted in ~/.tinygmc file)
- Set time interval (0 = checks only when you deactivate then reactivate tray icon)
- Set max number of messages to preview (to avoid huge dialogs)
- Set if you want it to run at Startup (will place a symlink in ~/Startup)
Periodically a gtkdialog appears with unread mail notifications, clicking on a preview opens the mail in default browser.
Red icon in tray = periodic check is activated
Grayed icon in tray = periodic check is deactivated
All the sed part that parses the xml feed belongs to potong (thanks for all the tips)
If anyone wants to give a look at the code and suggest improvements I'll be glad, please consider I'm a noob in bash/linux.
---------------------
For older versions of puppy like 3.01 the good vovchik has made a retro version of tinygmc 0.0.3, you can download it here
Changelog:
version 0.0.3 (bugfixes):
- creating correct symlink to gtrayicon
- added -k (insecure) option to connect to SSL site without certificates to avoid problems with some, maybe buggy, versions of curl
- Waits for internet connection before checking (v.0.0.1 failed first check on Startup)
- Added "last message time" tooltip hovering on each notification dialog entry
- No more notifications if no new messages since last dialog: if you closed it you already read it! When you want to see what's unread simply deactivate / reactivate tray icon (a.k.a. double click). I find working this way is way less annoying than seeing the same headings every xx minutes.