Example #1
0
def pop(title, message):
    if notifyModule is "pynotify":
                pynotify.init("Scorer")
                pynotify.Notification(title, message).show()
    elif notifyModule is "Notify":
                Notify.init("Scorer")
                Notify.Notification.new(title, message).show()
    else:
                notify2.init("Scorer")
                notify2.Notification(title, message).show()
    return True
Example #2
0
def pop(title, message):
    if notifyModule is "pynotify":
        pynotify.init("Scorer")
        pynotify.Notification(title, message).show()
    elif notifyModule is "Notify":
        Notify.init("Scorer")
        Notify.Notification.new(title, message).show()
    else:
        notify2.init("Scorer")
        notify2.Notification(title, message).show()
    return True
Example #3
0
def popUpMessage(title, message):
    if notifyModule is "pynotify":
        logging.debug("Initializing pynotify")
        pynotify.init("Scorer")
        logging.debug("Sending notification: title:{}, message:{}".format(title,message))
        pynotify.Notification(title, message, "dialog-information").show()
    elif notifyModule is "Notify":
        logging.debug("Initializing Notify")
        Notify.init("Scorer")
        logging.debug("Sending notification: title:{}, message:{}".format(title,message))
        Notify.Notification.new(title, message, "dialog-information").show()
    else:
        logging.debug("Initializing notify2")
        notify2.init("Scorer")
        logging.debug("Sending notification: title:{}, message:{}".format(title,message))
        notify2.Notification(title, message, "dialog-information").show()
Example #4
0
__author__ = 'Riogan'

import poplib
import email
import time
from gi.Repository import Notify

Notify.init("Email Notifier")

# POP3 Config
SERVER = "mail.dragons-end.co.za"
USER  = "******"
PASSWORD = "******"

# connect to server
server = poplib.POP3(SERVER)

# login
server.user(USER)
server.pass_(PASSWORD)

# initiate counter
counter = server.stat()[0]

def getStat():
    return server.stat()[0]

while True:
    server = poplib.POP3(SERVER)
    server.user(USER)
    server.pass_(PASSWORD)