~supermatt/+junk/supermail

« back to all changes in this revision

Viewing changes to Account.py

  • Committer: Matthew Ames
  • Date: 2013-04-14 11:13:04 UTC
  • Revision ID: matthew@supermatt.net-20130414111304-yws2qsosocc1g0qg
trying to add daemonize to the json file

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
                subjectlist = '\n'.join(subjects)
50
50
                Notify.init("Email Notification")
51
 
                unreadNotification = Notify.Notification.new(unreadnum + " unread emails", subjectlist, "message-email")
 
51
                emailplural = "emails"
 
52
                if unreadnum == "1":
 
53
                        emailplural = "email"
 
54
                unreadNotification = Notify.Notification.new(unreadnum + " unread " + emailplural, subjectlist, "message-email")
52
55
                unreadNotification.show()
53
56
 
54
57