debian/0000755000000000000000000000000012160670210007161 5ustar debian/control0000644000000000000000000000150712160667250010601 0ustar Source: gmail-notify Section: mail Priority: optional Maintainer: Python Applications Packaging Team Uploaders: Alan Woodland Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~) Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/gmail-notify/trunk/ Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/gmail-notify/trunk/ Homepage: http://gmail-notify.sourceforge.net/ Package: gmail-notify Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-gtk2 Recommends: www-browser Description: Notify the arrival of new mail on Gmail Gmail Notifier is a Linux alternative for the notifier program released by Google, it is written in Python and provides an attractive and simple way to check for new mail messages. debian/rules0000755000000000000000000000005511726377344010264 0ustar #!/usr/bin/make -f %: dh $@ --with python2 debian/watch0000644000000000000000000000034411726377344010236 0ustar version=3 opts=uversionmangle=s/\.(tar.*|tgz|zip|gz|bz2)$//i,dversionmangle=s/[-.+~]?(cvs|svn|git|snapshot|pre|hg)(.*)$//i,pasv \ http://sf.net/gmail-notify/gmail-notify-?_?([\d+\.]+|\d+)\.(tar.*|tgz|zip|gz|bz2|) debian uupdate debian/gmail-notify.10000644000000000000000000000512211726377344011665 0ustar .TH gmail-notify 1 "May 31, 2006" . .SH NAME gmail-notify \- A Gmail Notifier . .SH SYNOPSIS .B gmail-notify . .SH DESCRIPTION .B gmail-notify Gmail Notifier is a Linux alternative for the notifier program released by Google, it is written in Python and provides an attractive and simple way to check for new mail messages. Open the notifier.conf file in your favourite text editor and edit the configuration options to match your system. Below is an explanation of each option: (See notifier.conf.sample located in the /usr/share/doc/gmail-notify directory for a helpful example) gmailusername - fairly self explanatory, must be without the @gmail.com at the end gmailpassword - obvious browserpath - this is the full path to the browser that you want Gmail Notifier to open when you click the popup to goto your Gmail inbox voffset - this is the amount (in pixels) the popup will be displaced from the bottom of the screen, it will almost definitely need changing to suit your system, ideally, you want it to look like it came out of the bar along the bottom of the screen the best way to adjust it is to run it initially with the default value and then add/remove from it then test again. Higher values result in the popup appearing higher up the screen. hoffset - same as above only this is the amount the popup will be displaced from the side of the screen. Higher values will displace it more to the left of the screen. checkinterval - this is how often Gmail Notifier will check for new mail (in ms), do NOT set it lower than 20000 (20 seconds), or the libgmail library will not keep up, causing many strange side effects. If you need to check your mail more than once every 20 seconds, then chances are your famous and don't have time to read your mail anyway. animationdelay - this is the amount of time (in ms) that Gmail Notifier will wait before moving the popup up one step, when the popup is popping up, to high values will cause the animation to be jerky, to low values will cause tearing at the bottom of the popup. 15ms seems about right. Only small adjustments are necessary, best thing is to leave it alone. popuptimespan - this is the amount of time before the popup will disappear again after popping up you can set this to whatever you want . .SH Web Page http://gmail-notify.sourceforge.net/ . .SH AUTHOR John Winter . .\" EOF \" LocalWords: popup sourceforge gmail LocalWords popuptimespan http EOF conf \" LocalWords: wintersoft Google usr com gmailusername gmailpassword inbox \" LocalWords: browserpath voffset libgmail hoffset checkinterval \" LocalWords: animationdelay debian/changelog0000644000000000000000000000555712160670147011060 0ustar gmail-notify (1.6.1.1-3) unstable; urgency=low * Team upload. [ Arthur de Jong ] * Drop depends on python-eggtrayicon (Closes: #560983) * Bump standards-version to 3.9.4. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Arthur de Jong Thu, 20 Jun 2013 22:57:29 +0200 gmail-notify (1.6.1.1-2) unstable; urgency=low * Team upload. [ Alan Woodland ] * Clean up desktop file, using patch from Ubuntu (Closes: #557310) * Spell check manpage, fixes Lintian warning. [ Arthur de Jong ] * Moved packaging from python-central to dh_python2 (Closes: #616827). * Switch to using the dh command sequencer. * Switch source format to 3.0 (quilt) and refresh patches. * Add DEP-3 headers to some of the patches. * Add Homepage field to debian/control. * Switch to machine-readable debian/copyright format. * Replace shellscript wrapper with a symlink. * Update short package description. * Update Vcs-Browser field. * Bump standards-version to 3.9.3. * Use gtk.StatusIcon instead of egg.trayicon (thanks Max Linke) (Closes: #560983) -- Arthur de Jong Mon, 12 Mar 2012 22:20:12 +0100 gmail-notify (1.6.1.1-1) unstable; urgency=medium * Acknowledge my own NMU(!) (Closes: #546464) * Team maintained, python-apps-team * Set VCS control fields for new SVN home * Adopt the package and set the maintainer field accordingly (Closes: #547725, #548239) * Medium urgency, one of the bugs is RC * Drop deprecated dh_desktop call * Bump standards to 3.8.3 (No changes) * Add dependency on XB-Python-version * debian/compat: use 7 now instead * Build using python-central now -- Alan Woodland Fri, 25 Sep 2009 20:37:37 +0100 gmail-notify (1.6.1.1-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release 1.6.1.1, (Closes: #457748) * Depend on python-eggtrayicon instead of python-gnome2-extras (Closes: #485318) * Changed gmail.google.com to mail.google.com (Closes: #503740) * Applied patch for proxy support from Luca Falavigna (Closes: #428260) * Applied preference window patch from Ubuntu (Closes: #432676) * Replace & with & in popups (Closes: #420871) * Add debian/watch -- Alan Woodland Sun, 13 Sep 2009 11:31:01 +0100 gmail-notify (1.6.1-3) unstable; urgency=low * Chance default x-www-browser to www-browser (closes: #389532) -- Joseph Smidt Thu, 28 Sep 2006 19:59:36 -0600 gmail-notify (1.6.1-2) unstable; urgency=low *Add x-www-browser as default web browser change arch: any to arch all Update dependency on python2.4* to python* since python2.4 is default -- Joseph Smidt Fri, 22 Sep 2006 18:52:03 -0600 gmail-notify (1.6.1-1) unstable; urgency=low * Initial release (Closes: #369625) -- Joseph Smidt Mon, 3 Jul 2006 10:43:33 -0600 debian/gmail-notify.install0000644000000000000000000000047711726377344013203 0ustar *.py* usr/lib/gmail-notify/ *.xml usr/share/apps/gmail-notify/ notifier.conf.sample usr/share/doc/gmail-notify debian/extras/* usr/share/apps/gmail-notify/ *.png usr/share/apps/gmail-notify/ *.jpg usr/share/apps/gmail-notify/ debian/gmail-notify.desktop usr/share/applications/ gmail-notify-icon.png usr/share/pixmaps/ debian/gmail-notify.desktop0000644000000000000000000000032411726400113013152 0ustar [Desktop Entry] Type=Application Name=Gmail Notify GenericName=Gmail Notify Comment=Notify the arrival of new mail on Gmail Version=1.0 Icon=gmail-notify-icon Exec=gmail-notify Terminal=false Categories=Network; debian/compat0000644000000000000000000000000211726377343010401 0ustar 7 debian/extras/0000755000000000000000000000000012160670210010467 5ustar debian/extras/icon.xpm0000644000000000000000000000246011726377343012171 0ustar /* XPM */ static char *icon[] = { /* columns rows colors chars-per-pixel */ "32 32 5 1", " c #B64F53", ". c #E7DFE4", "X c #E6E6E6", "o c gray100", "O c None", /* pixels */ "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOO ................ OOOO", "OOO oooooooooooooo OOO", "OO oooooooooooo OO", "OO oooooooooo OO", "OO oooooooo OO", "OO oooooo OO", "OO o oooo o OO", "OO oo oo oo OO", "OO ooo ooo OO", "OO oooo oooo OO", "OO ooooo ooooo OO", "OO oooooo oooooo OO", "OO ooooooo ooooooo OO", "OO oooooooo oooooooo OO", "OO ooooooooo ooooooooo OO", "OO oooooooo.oo.oooooooo OO", "OO ooooooo.oooo.ooooooo OO", "OO oooooo.oooooo.oooooo OO", "OO ooooo.oooooooo.ooooo OO", "OO oooo.oooooooooo.oooo OO", "OO ooo.oooooooooooo.ooo OO", "OO oo.oooooooooooooo.oo OO", "OO o.oooooooooooooooo.o OO", "OO .oooooooooooooooooo. OO", "OOO OOO", "OOOO OOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO" }; debian/gmail-notify.manpages0000644000000000000000000000002611726377344013316 0ustar debian/gmail-notify.1 debian/source/0000755000000000000000000000000012160670210010461 5ustar debian/source/format0000644000000000000000000000001411726377343011711 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012160670210010610 5ustar debian/patches/01_fixes.patch0000644000000000000000000000263211726401546013265 0ustar --- a/GmailConfig.py +++ b/GmailConfig.py @@ -9,8 +9,8 @@ import xmllangs import sys -LANGSXML_PATH=sys.path[0]+"/langs.xml" -ICON_PATH=sys.path[0]+"/gmail-notify-icon.png" +LANGSXML_PATH="/usr/share/apps/gmail-notify/langs.xml" +ICON_PATH="/usr/share/apps/gmail-notify/gmail-notify-icon.png" class GmailConfigWindow: @@ -131,12 +131,12 @@ # Attach combobox and label table.attach( self.lbl_langs, 0, 1, 8, 9 ) self.lbl_langs.show() - table.attach( self.cbo_langs, 1, 2, 8, 9, ypadding=5 ) + table.attach( self.cbo_langs, 1, 2, 8, 9, xpadding=5, ypadding=5 ) self.cbo_langs.show() # Add 'Close' button button = gtk.Button( stock=gtk.STOCK_OK ) - table.attach( button, 0, 2, 10, 11, ypadding=2 ) + table.attach( button, 0, 2, 10, 11, xpadding=2, ypadding=2 ) button.connect( "clicked", self.onOkay ) button.show() --- a/notifier.py +++ b/notifier.py @@ -8,6 +8,7 @@ import os import pytrayicon import sys +sys.path.insert (0, "/usr/lib/gmail-notify/") import warnings import ConfigParser import xmllangs @@ -15,9 +16,9 @@ import GmailPopupMenu import gmailatom -BKG_PATH=sys.path[0]+"/background.jpg" -ICON_PATH=sys.path[0]+"/icon.png" -ICON2_PATH=sys.path[0]+"/icon2.png" +BKG_PATH="/usr/share/apps/gmail-notify/background.jpg" +ICON_PATH="/usr/share/apps/gmail-notify/icon.png" +ICON2_PATH="/usr/share/apps/gmail-notify/icon2.png" def removetags(text): raw=text.split("") debian/patches/07_preferences-window.patch0000644000000000000000000000232411726402711015754 0ustar Description: Preferences window will now open up once. Bug-Debian: http://bugs.debian.org/432676 Bug-Ubuntu: https://launchpad.net/bugs/62081 Author: Diego Ongaro (ongardie) --- a/GmailConfig.py +++ b/GmailConfig.py @@ -264,6 +264,9 @@ def get_lang( self ): return self.lang + def no_username_or_password( self ): + return ( self.options["gmailusername"] == None or self.options["gmailpassword"] == None ) + def main( self ): gtk.main() --- a/notifier.py +++ b/notifier.py @@ -56,8 +56,11 @@ # Reference to global options self.options = self.configWindow.options # Check if there is a user and password, if not, load config window - while ( self.options["gmailusername"] == None or self.options["gmailpassword"] == None ): + if self.configWindow.no_username_or_password(): self.configWindow.show() + # If there's still not a username or password, just exit. + if self.configWindow.no_username_or_password(): + sys.exit(0) # Load selected language self.lang = self.configWindow.get_lang() print "selected language: "+self.lang.get_name() debian/patches/09_gtkStatusIcon.patch0000644000000000000000000001032511726404232014752 0ustar Description: Use gtk.StatusIcon instead of egg.trayicon. Author: Max Linke Bug-Debian: http://bugs.debian.org/560983 --- a/notifier.py +++ b/notifier.py @@ -6,7 +6,6 @@ import gtk import time import os -from egg.trayicon import TrayIcon import sys sys.path.insert (0, "/usr/lib/gmail-notify/") import warnings @@ -86,26 +85,6 @@ self.maintimer=None self.popuptimer=0 self.waittimer=0 - # Create the tray icon object - self.tray = TrayIcon(self.lang.get_string(21)); - self.eventbox = gtk.EventBox() - self.tray.add(self.eventbox) - self.eventbox.connect("button_press_event", self.tray_icon_clicked) - # Tray icon drag&drop options - self.eventbox.drag_dest_set( - gtk.DEST_DEFAULT_ALL, - [('_NETSCAPE_URL', 0, 0),('text/uri-list ', 0, 1),('x-url/http', 0, 2)], - gtk.gdk.ACTION_COPY | gtk.gdk.ACTION_MOVE) - # Create the tooltip for the tray icon - self._tooltip = gtk.Tooltips() - # Set the image for the tray icon - self.imageicon = gtk.Image() - pixbuf = gtk.gdk.pixbuf_new_from_file( ICON_PATH ) - scaled_buf = pixbuf.scale_simple(24,24,gtk.gdk.INTERP_BILINEAR) - self.imageicon.set_from_pixbuf(scaled_buf) - self.eventbox.add(self.imageicon) - # Show the tray icon - self.tray.show_all() # Create the popup menu self.popup_menu = GmailPopupMenu.GmailPopupMenu( self) # Create the popup @@ -144,6 +123,14 @@ self.height+=self.options['voffset'] self.width+=self.options['hoffset'] self.window.move(gtk.gdk.screen_width() - self.width, gtk.gdk.screen_height() - self.height) + # Create the tray icon object + self.tray = gtk.StatusIcon() + self.tray.set_title(self.lang.get_string(21)) + self.tray.connect("button_press_event",self.tray_icon_clicked) + # Set the image for the tray icon + pixbuf = gtk.gdk.pixbuf_new_from_file( ICON_PATH ) + scaled_buf = pixbuf.scale_simple(24,24,gtk.gdk.INTERP_BILINEAR) + self.tray.set_from_pixbuf(scaled_buf) self.init=1 while gtk.events_pending(): @@ -162,7 +149,7 @@ return 0 self.dont_connect=1 print "connecting..." - self._tooltip.set_tip(self.tray,self.lang.get_string(13)) + self.tray.set_tooltip(self.lang.get_string(13)) while gtk.events_pending(): gtk.main_iteration( gtk.TRUE) # Attemp connection @@ -170,12 +157,12 @@ self.connection=gmailatom.GmailAtom(self.options['gmailusername'],self.options['gmailpassword'],self.options['proxy']) self.connection.refreshInfo() print "connection successful... continuing" - self._tooltip.set_tip(self.tray,self.lang.get_string(14)) + self.tray.set_tooltip_text(self.lang.get_string(14)) self.dont_connect=0 return 1 except: print "login failed, will retry" - self._tooltip.set_tip(self.tray,self.lang.get_string(15)) + self.tray.set_tooltip_text(self.lang.get_string(15)) self.default_label = ""+self.lang.get_string(15)+"\n\n"+self.lang.get_string(16) self.label.set_markup(self.default_label) self.show_popup() @@ -204,10 +191,6 @@ self.mailcheck=0 return gtk.TRUE - # Update tray icon - self.eventbox.remove(self.imageicon) - self.imageicon = gtk.Image() - if attrs[1]>0: print str(attrs[1])+" new messages" sender = attrs[2] @@ -222,20 +205,18 @@ print str(attrs[0])+" unread messages" s = ' ' if attrs[0]>1: s=self.lang.get_string(35)+" " - self._tooltip.set_tip(self.tray,(self.lang.get_string(19))%{'u':attrs[0],'s':s}) + self.tray.set_tooltip_text((self.lang.get_string(19))%{'u':attrs[0],'s':s}) pixbuf = gtk.gdk.pixbuf_new_from_file( ICON2_PATH ) else: print "no new messages" self.default_label=""+self.lang.get_string(21)+"\n\n\n"+self.lang.get_string(18) - self._tooltip.set_tip(self.tray,self.lang.get_string(18)) + self.tray.set_tooltip_text(self.lang.get_string(18)) pixbuf = gtk.gdk.pixbuf_new_from_file( ICON_PATH ) p = re.compile('&') self.label.set_markup(p.sub('&', self.default_label)) scaled_buf = pixbuf.scale_simple(24,24,gtk.gdk.INTERP_BILINEAR) - self.imageicon.set_from_pixbuf(scaled_buf) - self.eventbox.add(self.imageicon) - self.tray.show_all() + self.tray.set_from_pixbuf(scaled_buf) self.unreadmsgcount=attrs[0] self.mailcheck=0 debian/patches/06_gmail_to_mail.patch0000644000000000000000000000117011726402711014740 0ustar Description: Changed gmail.google.com to mail.google.com. Bug-Debian: http://bugs.debian.org/503740 Author: Alan Woodland --- a/notifier.py +++ b/notifier.py @@ -352,8 +352,8 @@ def gotourl( self, wg=None): print "----------" - print "launching browser "+self.options['browserpath']+" http://gmail.google.com" - os.system(self.options['browserpath']+" http://gmail.google.com &") + print "launching browser "+self.options['browserpath']+" http://mail.google.com" + os.system(self.options['browserpath']+" http://mail.google.com &") def show_quota_info( self, event): print "Not available" debian/patches/04_www-browser.patch0000644000000000000000000000072311726401546014456 0ustar --- a/GmailConfig.py +++ b/GmailConfig.py @@ -18,7 +18,7 @@ configElements = None # Declare global variables for configuration as dictionary - options = { "gmailusername":None, "gmailpassword":None, "browserpath":"firefox", "lang":"English", + options = { "gmailusername":None, "gmailpassword":None, "browserpath":"www-browser", "lang":"English", "voffset":0, "hoffset":0, "checkinterval":20000, "animationdelay":15, "popuptimespan":5000} debian/patches/08_ampersand-fix.patch0000644000000000000000000000135011726401546014710 0ustar Description: Replace & with & in popups. Bug-Debian: http://bugs.debian.org/420871 --- a/notifier.py +++ b/notifier.py @@ -15,6 +15,7 @@ import GmailConfig import GmailPopupMenu import gmailatom +import re BKG_PATH="/usr/share/apps/gmail-notify/background.jpg" ICON_PATH="/usr/share/apps/gmail-notify/icon.png" @@ -229,7 +230,8 @@ self._tooltip.set_tip(self.tray,self.lang.get_string(18)) pixbuf = gtk.gdk.pixbuf_new_from_file( ICON_PATH ) - self.label.set_markup(self.default_label) + p = re.compile('&') + self.label.set_markup(p.sub('&', self.default_label)) scaled_buf = pixbuf.scale_simple(24,24,gtk.gdk.INTERP_BILINEAR) self.imageicon.set_from_pixbuf(scaled_buf) self.eventbox.add(self.imageicon) debian/patches/series0000644000000000000000000000030611726406362012040 0ustar 01_fixes.patch 02_trayicon.patch 03_password_fixes.patch 04_www-browser.patch 05_proxy_support.patch 06_gmail_to_mail.patch 07_preferences-window.patch 08_ampersand-fix.patch 09_gtkStatusIcon.patch debian/patches/02_trayicon.patch0000644000000000000000000000106011726401546013772 0ustar --- a/notifier.py +++ b/notifier.py @@ -6,7 +6,7 @@ import gtk import time import os -import pytrayicon +from egg.trayicon import TrayIcon import sys sys.path.insert (0, "/usr/lib/gmail-notify/") import warnings @@ -83,7 +83,7 @@ self.popuptimer=0 self.waittimer=0 # Create the tray icon object - self.tray = pytrayicon.TrayIcon(self.lang.get_string(21)); + self.tray = TrayIcon(self.lang.get_string(21)); self.eventbox = gtk.EventBox() self.tray.add(self.eventbox) self.eventbox.connect("button_press_event", self.tray_icon_clicked) debian/patches/03_password_fixes.patch0000644000000000000000000000063211726401546015207 0ustar --- a/GmailConfig.py +++ b/GmailConfig.py @@ -237,7 +237,10 @@ self.config.remove_option( "options", "gmailusername" ) self.config.remove_option( "options", "gmailpassword" ) - self.config.write( open( self.loadedConfig, 'w' ) ) + fd = open( self.loadedConfig, 'w' ) + os.chmod( self.loadedConfig, 0600) + self.config.write( fd ) + fd.close() gtk.main_quit() self.hide() else: debian/patches/05_proxy_support.patch0000644000000000000000000002064211726401546015131 0ustar Description: Provide proxy support. Author: Luca Falavigna Bug-Debian: http://bugs.debian.org/428260 Bug-Ubuntu: https://launchpad.net/bugs/66276 --- a/gmailatom.py +++ b/gmailatom.py @@ -116,12 +116,17 @@ host = "https://mail.google.com" url = host + "/mail/feed/atom" - def __init__(self, user, pswd): + def __init__(self, user, pswd, proxy=None): self.m = MailHandler() # initialize authorization handler auth_handler = urllib2.HTTPBasicAuthHandler() auth_handler.add_password( self.realm, self.host, user, pswd) - opener = urllib2.build_opener(auth_handler) + # manage proxy + if proxy: + proxy_handler = urllib2.ProxyHandler({'http': proxy}) + opener = urllib2.build_opener(proxy_handler, auth_handler) + else: + opener = urllib2.build_opener(auth_handler) urllib2.install_opener(opener) def sendRequest(self): --- a/GmailConfig.py +++ b/GmailConfig.py @@ -18,8 +18,8 @@ configElements = None # Declare global variables for configuration as dictionary - options = { "gmailusername":None, "gmailpassword":None, "browserpath":"www-browser", "lang":"English", - "voffset":0, "hoffset":0, "checkinterval":20000, + options = { "gmailusername":None, "gmailpassword":None, "browserpath":"www-browser", "proxy":None, + "lang":"English", "voffset":0, "hoffset":0, "checkinterval":20000, "animationdelay":15, "popuptimespan":5000} config = ConfigParser.RawConfigParser() @@ -49,6 +49,7 @@ ["gmailusername",2,None,None], ["gmailpassword",22,None,None], ["browserpath",3,None,None], + ["proxy",36,None,None], ["voffset",28,None,None], ["hoffset",27,None,None], ["checkinterval",31,None,None], @@ -57,7 +58,7 @@ ] # Create table and attach to window - table = gtk.Table( rows=11, columns=2, homogeneous=gtk.FALSE ) + table = gtk.Table( rows=12, columns=2, homogeneous=gtk.FALSE ) self.window.add(table) @@ -114,7 +115,7 @@ self.savePassword.set_active( gtk.FALSE ) self.savePassword.show() - table.attach( alignment, 0, 2, 9, 10 ) + table.attach( alignment, 0, 2, 10, 11 ) alignment.show() # Add combobox to select language @@ -129,14 +130,14 @@ self.cbo_langs.append_text( one_lang.get_name()) self.cbo_langs.set_active(0) # Attach combobox and label - table.attach( self.lbl_langs, 0, 1, 8, 9 ) + table.attach( self.lbl_langs, 0, 1, 9, 10 ) self.lbl_langs.show() - table.attach( self.cbo_langs, 1, 2, 8, 9, xpadding=5, ypadding=5 ) + table.attach( self.cbo_langs, 1, 2, 9, 10, xpadding=5, ypadding=5 ) self.cbo_langs.show() # Add 'Close' button button = gtk.Button( stock=gtk.STOCK_OK ) - table.attach( button, 0, 2, 10, 11, xpadding=2, ypadding=2 ) + table.attach( button, 0, 2, 11, 12, xpadding=2, ypadding=2 ) button.connect( "clicked", self.onOkay ) button.show() @@ -222,7 +223,7 @@ # Before writing, check for bad values try: - tempLogin = gmailatom.GmailAtom( self.options["gmailusername"], self.options["gmailpassword"] ) + tempLogin = gmailatom.GmailAtom( self.options["gmailusername"], self.options["gmailpassword"], self.options["proxy"]) tempLogin.refreshInfo() except: print "Unexpected error:", sys.exc_info()[0] --- a/notifier.py +++ b/notifier.py @@ -163,7 +163,7 @@ gtk.main_iteration( gtk.TRUE) # Attemp connection try: - self.connection=gmailatom.GmailAtom(self.options['gmailusername'],self.options['gmailpassword']) + self.connection=gmailatom.GmailAtom(self.options['gmailusername'],self.options['gmailpassword'],self.options['proxy']) self.connection.refreshInfo() print "connection successful... continuing" self._tooltip.set_tip(self.tray,self.lang.get_string(14)) @@ -383,7 +383,7 @@ self.maintimer = gtk.timeout_add(self.options["checkinterval"], self.mail_check ) # Update user/pass - self.connection=gmailatom.GmailAtom(self.options["gmailusername"],self.options["gmailpassword"]) + self.connection=gmailatom.GmailAtom(self.options["gmailusername"],self.options["gmailpassword"],self.options['proxy']) self.connect() self.mail_check() --- a/langs.xml +++ b/langs.xml @@ -34,6 +34,7 @@ Some value is missing Save username and password s + Proxy Configuración de Gmail Notifier @@ -69,6 +70,7 @@ Falta completar algún valor Guardar nombre de usuario y contraseña s + Proxy Gmail Notifier - konfiguration @@ -104,6 +106,7 @@ Några värden fattas Spara användarnamn och lösenord n + Proxy Gmail Notifier Configurazione @@ -139,6 +142,7 @@ Mancano dei valori Salva nome utente e password s + Proxy Gmail Notifier Instellingen @@ -174,6 +178,7 @@ Enkele invoer niet aanwezig Opslaan gebruikersnaam en wachtwoord s + Proxy Gmail Notifier - Einstellungen @@ -209,6 +214,7 @@ Ein Wert fehlt Nutzername und Passwort speichern en + Proxy Configuração do Gmail Notifier @@ -244,6 +250,7 @@ Algum valor precisa ser preenchido Lembrar meu login e senha s + Proxy Configuration de Gmail Notifier @@ -279,6 +286,7 @@ Il manque certaines valeurs Enregistrer mon utilisateur et mot de passe s + Proxy Nastavení Gmail oznamovatele @@ -314,6 +322,7 @@ Některá hodnota chybí Uložit uživatelské jméno a heslo y + Proxy Настройка Gmail Notifier @@ -349,6 +358,7 @@ Некоторые значения потеряны Сохранить имя пользователя и пароль + Proxy Konfiguracja Gmail Notifier @@ -384,6 +394,7 @@ Brakuje jakiś danych Zachowan nazwę użytkownika i hasło + Proxy Gmail Notifier Uzskaņošana @@ -419,6 +430,7 @@ Kāda no vērtībām nav ievadīta Saglabāt lietotājvārdu un paroli s + Proxy Gmail Notifier إعداد @@ -454,6 +466,7 @@ لم تملئ كل الخانات تذكر اسم المستخدم وكلمة السر + Proxy Gmail Notifier 設定 @@ -489,6 +502,7 @@ 値が見つかりません ユーザ名とパスワードを保存する + Proxy Agordoj de Gmail Notifier @@ -524,5 +538,6 @@ Valoro mankas Konservu nomon k pasvorton j + Proxy debian/copyright0000644000000000000000000000161011726377344011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gmail-notify Upstream-Contact: John Winter Source: http://gmail-notify.sourceforge.net/ Files: * Copyright: Copyright (c) 2004, 2005 John Winter License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. debian/gmail-notify.links0000644000000000000000000000006611726377344012647 0ustar usr/lib/gmail-notify/notifier.py usr/bin/gmail-notify debian/gmail-notify.docs0000644000000000000000000000000711726377343012451 0ustar README debian/gmail-notify.menu0000644000000000000000000000031211726377344012465 0ustar ?package(gmail-notify):needs="X11" section="Applications/Network/Communication" title="GMail Notifier" \ command="/usr/bin/gmail-notify" \ icon="/usr/share/apps/gmail-notify/icon.xpm"