Commit Graph

13 Commits

Author SHA1 Message Date
Adrian C. (anrxc) 77d1a0ba2f gmail: switch to ~/.netrc for login storage
Login information is now kept in the ~/.netrc file, which should be
readable only by the owner. This should solve futher problems with
unquoted characters addressed in the last commit. The format of the
~/.netrc file is as follows (also documented in the README):
machine mail.google.com login user password pass
2010-03-10 21:59:15 +01:00
Adrian C. (anrxc) 1c0cefff8b gmail: don't break on non-escaped chars, quote login 2010-03-10 21:25:51 +01:00
Adrian C. (anrxc) 24f23fa072 gmail: reworked feed handling and changed username format
Nothing hard coded in the worker now. Feeds are together with user
data, easily swaped. Feeds are not widget args because user needs to
modify the file for login data anyway. No progress toward safer
storage, Kwallet looks promising but dbus handling is hell - what of
non KDE users? Every other script, including much praised checkgmail
has plain text login. Nobody cares?
2010-02-12 00:33:07 +01:00
Adrian C. (anrxc) 15dd6ea287 vicious: update copyright 2010-01-02 21:21:54 +01:00
Adrian C. (anrxc) 896df4dd98 De-obfuscate e-mail address 2009-11-04 23:39:38 +01:00
Adrian C. (anrxc) 44d943d024 gmail: add scrolling support and truncate control
Same as the mpd widget. No argument, string is returned in
full. Number enables truncate. Table enables scrolling.
2009-11-03 01:34:48 +01:00
Adrian C. (anrxc) 0d73f6d8ae Ensure returned numbers are of type number
Thanks to Felix for bringing this to my attention. Obviously there was
already a safety net for feeding progressbars and graphs... and while
this makes for a good coding practice it's not a big deal. We have
widgets of type textbox for one, and a lot of string concatenation
happens. Strings are formatted, markup is applied...
2009-10-26 20:32:48 +01:00
Adrian C. (anrxc) 4602ca2fa5 Lots of coding style changes 2009-10-05 00:10:47 +02:00
Adrian C. (anrxc) f99a74b7c8 gmail: count all unread messages
Widget now uses the Gmail unread tag to get a list of all unread
messages, not only the Inbox. The auth argument was removed, and login
information should now be placed directly in the widget (and file made
read-only by user) until a safer storage is introduced.
2009-10-01 12:08:39 +02:00
Adrian C. (anrxc) b0f737ea56 Rewrote all headers 2009-09-29 22:33:19 +02:00
Adrian C. (anrxc) 2a5126f4f0 General cleanup 2009-09-14 17:25:23 +02:00
Adrian C. (anrxc) 1603b5fe82 Curl connect timeout 1s, max time 3s 2009-09-10 17:04:41 +02:00
Adrian C. (anrxc) 161607e517 Gmail widget included
Widget returns the count of new and subject of last e-mail in a Gmail
inbox. Use ${count} and ${subject} in the format string to retrieve
the values. Widget takes a table with login information as an
argument.

I don't like how gmail widgets handle sensitive data but I gave in
seeing how popular they are. Better storing and handling of login
information would be in order but this isn't Python and I'm out of
ideas. For now use it on your own responsability, I would suggest to
set login info directly in the widget and file as read-only by user.
2009-09-08 22:46:59 +02:00