enkore
ff519fbde0
Remove shebangs and coding tags
2015-06-17 10:32:10 +02:00
enkore
4383a34446
mail: fix incorrect specification of settings
2015-06-05 13:25:25 +02:00
facetoe
7fa5c10787
Added keyring_backend to the settings tuple.
2015-02-13 19:53:08 +08:00
facetoe
9324f06a3c
Added keyring_backend variable.
2015-02-01 09:31:13 +08:00
Matthieu Coudron
a26d20dcd2
Merge branch 'master' of https://github.com/enkore/i3pystatus into multiple_mail_accounts and removal of some old comments
2015-01-08 23:16:55 +01:00
Matthieu Coudron
b9e23b18a7
Add the possibility to display per backend unread mail along with the total number of unread mails (default). The displayed backend can be set via callbacks (on mousewheel events by default)
2015-01-06 00:41:35 +01:00
Matthieu Coudron
ff2794fa3d
WIP
2015-01-05 19:46:32 +01:00
Matthieu Coudron
d31cc380ef
Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 .
...
This commit removes and replaces all the old methods 'on_*' by settings
with the same name. The old methods were renamed into more explicit names that can be used for the callbacks like "next_song","mute" etc...
For instance, you can test with:
status.register("clock",
format=[
("Format 0",'Europe/London'),
("%a %-d Format 1",'Europe/Dublin'),
"%a %-d %b %X format 2",
("%a %-d %b %X format 3", 'Europe/Paris'),
],
on_leftclick= ["urxvtc"] , # launch urxvtc on left click
on_rightclick= ["scroll_format", 2] , # update format by steps of 2
log_level=logging.DEBUG,
)
This way much code could be removed from other modules, though I did it only for the clock module here.
2014-12-20 15:30:41 +01:00
Matthieu Coudron
a480701ee6
Added doc for unread method in mail/__init__/py + make sure that db is closed before deleting the notmuch db object
2014-12-19 14:31:10 +01:00
Matthieu Coudron
cb80f133d7
Simple fix for notmuch database not in sync
2014-12-18 22:02:27 +01:00
Matthieu Coudron
9e3f128a15
This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now).
...
Also adds a test for the function run_through_shell
2014-12-18 18:42:58 +01:00
Matthieu Coudron
69c1cd6460
Various pep8 and comments removal + converted shell module to use run_through_shell command
2014-12-18 00:26:24 +01:00
Matthieu Coudron
bc15eb4e6b
i3pystatus creates a logger that can be imported via import i3pystatus.logger . Thus when modules enable the 'enable_log' setting, it should log i3pystatus errors to a file called '.i3pystatus-<pid>'. This commit only solves the case when email_client was called in the email module and would output things into stderr/stdout.
2014-12-17 23:39:10 +01:00
enkore
3b3b716307
PEP 8 (I'm bored): mail.notmuchmail
2014-10-14 16:47:19 +02:00
enkore
7c6561c854
close #130
2014-10-12 18:13:59 +02:00
enkore
1fd3b748a5
...
2014-10-12 16:50:50 +02:00
facetoe
a5915a0999
Document how to switch focus to mail client on left click.
2014-10-12 21:50:52 +08:00
enkore
9841cc65f8
Better.
2014-10-12 02:47:49 +02:00
Matthieu Coudron
914e495c22
This patch allows the notmuch backend to retrieve the notmuch database path from the notmuch configuration file in case no "db_path" argument is passed to the Notmuch constructor.
...
In such a case, i3pystatus will try to load the file designed by the
environment variable NOTMUCH_CONFIG and "~/.notmuch_config". and
retrieve the value "path" of the section [database].
2014-08-28 23:14:07 +02:00
enkore
566709290e
Don't catch exceptions by wildcard randomly
...
Related #102 #100
2014-08-28 16:12:29 +02:00
enkore
75fcad26fd
Better fix for #102
...
Rationale:
-other backends don't require internet access
-displaying last unread count w/o connection seems reasonable
-however: error handling in get_connection() is quite wildcardy,
which is no good. Should be fixed asap.
Introducing a core exception for directly displaying errors may be a good idea at this point for next.
2014-08-28 13:11:20 +02:00
enkore
9cdcfccb6c
Possible fix for #102
2014-08-27 11:06:36 +02:00
Jörg Thalheim
d024b89429
maildir: remove useless list comprehension
2014-07-18 16:48:28 +02:00
Jörg Thalheim
188a02989c
maildir: use os.listdir instead of ls
...
- simpler
- faster
2014-07-17 15:04:26 +02:00
enkore
f06a76ad52
PEP8
2014-04-30 14:51:41 +02:00
enkore
109c217253
Minor readme updates
2014-04-17 14:50:34 +02:00
Stéphane Brunner
d0a38e036c
Open email client and refresh email with mouse click
2014-04-16 18:03:16 +02:00
Michael Schmidt
ddd4e76bb8
settings changed\n documentation added
2014-04-13 00:25:28 +10:00
Michael Schmidt
e642a2d687
bug fixing...maildir backend working
2014-04-13 00:17:18 +10:00
Michael Schmidt
bbc7e107fd
maildir support added
2014-04-12 23:53:24 +10:00
enkore
5fc8ed3f8e
...
2014-01-16 23:13:16 +01:00
enkore
723c644658
Merge branch 'master' of github.com:enkore/i3pystatus
2014-01-16 13:39:57 +01:00
enkore
aa09079903
Add detached_down option ( #26 )
...
And some other stuff I obviously forget to commit last time.
Oh, that's just the RST port... okay :)
2014-01-16 13:39:17 +01:00
Talwrii
d7e537fdf3
mbox -- mail backend to deal with mbox files as used by procmail, for example.
2014-01-01 21:40:30 +00:00
enkore
c43a22c46d
Optimize imports
2013-10-31 22:33:18 +01:00
enkore
cdbb2f3e36
While we're at it, some other PEP8 stuff.
...
[obama] Except too long lines, because big screens.
2013-10-09 09:58:38 +02:00
enkore
78c01dd3e5
PEP8
2013-10-01 15:22:09 +02:00
enkore
21cd318c29
mail imap: fix mailbox selection
2013-10-01 13:36:59 +02:00
enkore
87c583db87
update readme
2013-10-01 13:31:40 +02:00
enkore
42e6258c1a
mail: clarify usage
2013-10-01 13:05:18 +02:00
enkore
5056f22404
mail.IMAP: add mailbox parameter
2013-09-30 22:02:00 +02:00
philipdexter
0ff17f4242
added some debug statements for imap connection
2013-03-12 12:17:03 -04:00
philipdexter
68e9300870
changed default port in imap to 993
2013-03-12 11:52:18 -04:00
enkore
7a0bb1cbaa
Fix issue with gobject&gobject2
...
summary: just don't ever use gobject and gobject2 at the same time...
2013-03-06 22:32:07 +01:00
enkore
76d86807db
As we can have multiple backends for mail already,
...
we don't need the multiple-servers functionality in imap.
Just add multiple instances of that backend.
2013-02-24 22:54:32 +01:00
enkore
a5bcf9bfa2
backlight module
...
Probably I'll discard these as soon as I come up with a nice
generic way of reading multiple files, converting values etc.
2013-02-24 02:12:32 +01:00
enkore
c4db62d2a4
Some small changes
2013-02-23 23:50:50 +01:00
enkore
8fba0b69a3
Fixed thunderbird
...
(deeeeeep recursion)
2013-02-23 23:00:28 +01:00
enkore
9e6af3661a
Mail
2013-02-23 23:00:14 +01:00
enkore
60be03126d
Docstrings
2013-02-23 18:41:53 +01:00