#!/usr/bin/python

import sys
import dbus

if (len(sys.argv) != 4):
	print "Usage: %s USERID SUMMARY BODY" % (sys.argv[0])
	sys.exit(1)

bus = dbus.SessionBus()

manager = dbus.Interface(bus.get_object('com.meego.core.MNotificationManager', 
					'/notificationmanager'),
					'com.meego.core.MNotificationManager')

print manager.addNotification(dbus.UInt32(sys.argv[1]), dbus.UInt32(0), dbus.String("email.arrived"), dbus.String(sys.argv[2]), dbus.String(sys.argv[3]), dbus.String(""), dbus.String(""), dbus.UInt32(0), dbus.String(""))
