You are not logged in.

#1 2013-03-17 12:50:54

Raynman
Member
Registered: 2011-10-22
Posts: 1,155

offlineimap-notify - wrapper that adds notifications for new mail

I've created my first little open source project (long overdue). It's a wrapper script that decorates OfflineIMAP's UI classes with notification sending for new mail, using Python's introspection facilities, before running offlineimap normally. See the man page for more info.

https://aur.archlinux.org/packages/offlineimap-notify/

Last edited by Raynman (2013-03-18 09:55:06)

Offline

#2 2013-03-17 19:07:21

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: offlineimap-notify - wrapper that adds notifications for new mail

This looks neat... I'll try it.

Offline

#3 2013-11-01 18:21:42

badosu
Member
Registered: 2013-11-01
Posts: 7

Re: offlineimap-notify - wrapper that adds notifications for new mail

I just created an account to thank you for this awesome tool!

It doesn't notifies when offlineimap is in autorefresh mode tough.

Thanks!

Offline

#4 2013-11-01 20:41:43

badosu
Member
Registered: 2013-11-01
Posts: 7

Re: offlineimap-notify - wrapper that adds notifications for new mail

Offlineimap-notify is working properly.

The problem was with my systemd service.

Offline

#5 2013-11-02 00:36:05

Wibjarm
Member
Registered: 2012-05-04
Posts: 40

Re: offlineimap-notify - wrapper that adds notifications for new mail

Excellent.  This hits one of those little annoyances that's always seemed to never quite be worth fixing, for me.  The only thing that it seems to be missing to me is the lack of a way to set the urgency of the notifications, which seems to be reasonably easy to fix (assuming I haven't missed anything obvious or otherwise done anything stupid):

EDIT:  There was a patch here in a codebox, but it turns out that yes, I had done something stupid and it didn't actually work.  I may or may not put a fixed version back up later.

Last edited by Wibjarm (2013-11-02 22:08:44)

Offline

#6 2013-11-02 12:52:20

guidob
Member
Registered: 2007-05-28
Posts: 10

Re: offlineimap-notify - wrapper that adds notifications for new mail

Thanks, really useful. When running from cron I did have to add:

export XAUTHORITY=/home/$USER/.Xauthority ; export DISPLAY=:0

Offline

#7 2013-11-03 16:52:43

Raynman
Member
Registered: 2011-10-22
Posts: 1,155

Re: offlineimap-notify - wrapper that adds notifications for new mail

Wibjarm wrote:

Excellent.  This hits one of those little annoyances that's always seemed to never quite be worth fixing, for me.  The only thing that it seems to be missing to me is the lack of a way to set the urgency of the notifications, which seems to be reasonably easy to fix (assuming I haven't missed anything obvious or otherwise done anything stupid):

EDIT:  There was a patch here in a codebox, but it turns out that yes, I had done something stupid and it didn't actually work.  I may or may not put a fixed version back up later.

Didn't look stupid at first glance; can't tell now. Anyway, I just pushed v0.5.1 to address this. For completeness' sake, I added a timeout setting as well.

Offline

#8 2013-11-03 17:32:39

Wibjarm
Member
Registered: 2012-05-04
Posts: 40

Re: offlineimap-notify - wrapper that adds notifications for new mail

It was just one of those mistakes that happen when you aren't paying attention (in this case, using "urgency" instead of "conf['urgency']") but still breaks things.  Thanks for implementing urgency and timeouts properly!

Offline

#9 2014-01-14 02:57:03

notyourbuddy
Member
Registered: 2012-12-30
Posts: 8

Re: offlineimap-notify - wrapper that adds notifications for new mail

Just gave this little fella a try and so far its working great!! Nice work there Raynman :-)


"A problem well stated is a problem half solved." - Charles Franklin Kettering

Offline

#10 2014-08-19 22:55:31

potuz
Member
Registered: 2009-10-23
Posts: 7

Re: offlineimap-notify - wrapper that adds notifications for new mail

Thanks a lot for that script!

Offline

Board footer

Powered by FluxBB