Your message dated Wed, 23 Sep 2009 12:32:20 +0000
with message-id <[email protected]>
and subject line Bug#428260: fixed in gmail-notify 1.6.1.1-0.1
has caused the Debian Bug report #428260,
regarding Proxy support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
428260: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428260
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
From: Luca Falavigna <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Proxy support
Package: gmail-notify
Version: 1.6.1-3
Severity: normal
Tags: patch

Attached patch provides proxy support. Thank you.
diff -u gmail-notify-1.6.1/debian/changelog gmail-notify-1.6.1/debian/changelog
--- gmail-notify-1.6.1/debian/changelog
+++ gmail-notify-1.6.1/debian/changelog
@@ -1,3 +1,10 @@
+gmail-notify (1.6.1-4) unstable; urgency=low
+
+  * 05_proxy_support.patch: added proxy support
+
+ -- Luca Falavigna <[email protected]>  Sat,  9 Jun 2007 15:06:19 +0200
+
 gmail-notify (1.6.1-3) unstable; urgency=low
 
   * Chance default x-www-browser to www-browser (closes: #389532) 
--- gmail-notify-1.6.1.orig/debian/patches/05_proxy_support.patch
+++ gmail-notify-1.6.1/debian/patches/05_proxy_support.patch
@@ -0,0 +1,145 @@
+diff -Nur gmail-notify-1.6.1/gmailatom.py gmail-notify-1.6.1.new/gmailatom.py
+--- gmail-notify-1.6.1/gmailatom.py    2007-06-09 13:41:13.000000000 +0200
++++ gmail-notify-1.6.1.new/gmailatom.py        2007-06-09 18:32:24.000000000 
+0200
+@@ -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):
+diff -Nur gmail-notify-1.6.1/GmailConfig.py 
gmail-notify-1.6.1.new/GmailConfig.py
+--- gmail-notify-1.6.1/GmailConfig.py  2007-06-09 18:32:08.000000000 +0200
++++ gmail-notify-1.6.1.new/GmailConfig.py      2007-06-09 18:32:09.000000000 
+0200
+@@ -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",35,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]
+diff -Nur gmail-notify-1.6.1/langs.xml gmail-notify-1.6.1.new/langs.xml
+--- gmail-notify-1.6.1/langs.xml       2005-09-25 19:41:01.000000000 +0200
++++ gmail-notify-1.6.1.new/langs.xml   2007-06-09 18:32:09.000000000 +0200
+@@ -33,6 +33,7 @@
+               <string id="32">Conns time span</string>
+               <string id="33">Some value is missing</string>
+               <string id="34">Save username and password</string>
++              <string id="35">Proxy</string>
+       </lang>
+       <lang name="Español">
+               <string id="1" >Configuración de Gmail Notifier</string>
+@@ -67,6 +68,7 @@
+               <string id="32">Intervalo e/conexiones</string>
+               <string id="33">Falta completar algún valor</string>
+               <string id="34">Guardar nombre de usuario y contraseña</string>
++              <string id="35">Proxy</string>
+       </lang>
+       <lang name="Svenska">
+               <string id="1" >Gmail Notifier - konfiguration</string>
+@@ -101,6 +103,7 @@
+               <string id="32">Conns time span</string>
+               <string id="33">Några värden fattas</string>
+               <string id="34">Spara användarnamn och lösenord</string>
++              <string id="35">Proxy</string>
+       </lang>
+       <lang name="Italiano">
+               <string id="1">Gmail Notifier Configurazione</string>
+@@ -135,5 +138,6 @@
+               <string id="32">Intervallo Tentativi Connessione: </string>
+               <string id="33">Mancano dei valori</string>
+               <string id="34">Salva nome utente e password</string>
++              <string id="35">Proxy</string>
+       </lang>
+ </langs>
+diff -Nur gmail-notify-1.6.1/notifier.py gmail-notify-1.6.1.new/notifier.py
+--- gmail-notify-1.6.1/notifier.py     2007-06-09 18:32:08.000000000 +0200
++++ gmail-notify-1.6.1.new/notifier.py 2007-06-09 18:32:09.000000000 +0200
+@@ -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()
+ 

--- End Message ---
--- Begin Message ---
Source: gmail-notify
Source-Version: 1.6.1.1-0.1

We believe that the bug you reported is fixed in the latest version of
gmail-notify, which is due to be installed in the Debian FTP archive:

gmail-notify_1.6.1.1-0.1.diff.gz
  to pool/main/g/gmail-notify/gmail-notify_1.6.1.1-0.1.diff.gz
gmail-notify_1.6.1.1-0.1.dsc
  to pool/main/g/gmail-notify/gmail-notify_1.6.1.1-0.1.dsc
gmail-notify_1.6.1.1-0.1_all.deb
  to pool/main/g/gmail-notify/gmail-notify_1.6.1.1-0.1_all.deb
gmail-notify_1.6.1.1.orig.tar.gz
  to pool/main/g/gmail-notify/gmail-notify_1.6.1.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alan Woodland <[email protected]> (supplier of updated gmail-notify package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 13 Sep 2009 11:31:01 +0100
Source: gmail-notify
Binary: gmail-notify
Architecture: source all
Version: 1.6.1.1-0.1
Distribution: unstable
Urgency: low
Maintainer: Joseph Smidt <[email protected]>
Changed-By: Alan Woodland <[email protected]>
Description: 
 gmail-notify - A Gmail Notifier
Closes: 420871 428260 432676 457748 485318 503740
Changes: 
 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 &amp; in popups (Closes: #420871)
   * Add debian/watch
Checksums-Sha1: 
 91f66c8c749f84000393e6cc5469c5ccbd2560d5 1042 gmail-notify_1.6.1.1-0.1.dsc
 db21798a90a1f1b09fa30cdae48069ba767636ee 32167 gmail-notify_1.6.1.1.orig.tar.gz
 52dac866221b4c07ebeeeb5e4f6007c07111db81 7991 gmail-notify_1.6.1.1-0.1.diff.gz
 7f943f202f70cdb7eabd7517e2e62f33c1fe8c5f 29050 gmail-notify_1.6.1.1-0.1_all.deb
Checksums-Sha256: 
 fffc4123d53ab75479d8eee925378491ec63a7f95ac304916ded2e9ad69aacbc 1042 
gmail-notify_1.6.1.1-0.1.dsc
 96aa835c04a12d700621a7010c300f2146ca212aaebe92d2b8e8158024999de0 32167 
gmail-notify_1.6.1.1.orig.tar.gz
 d9e27cfe33a7c34752678b0fb4862f2ea1fa86653af93c9649e3560dc34de2c8 7991 
gmail-notify_1.6.1.1-0.1.diff.gz
 b2231e43eec5a2a867dff7b581abf8f98165b6c0a951c42e2e4862f3173874a3 29050 
gmail-notify_1.6.1.1-0.1_all.deb
Files: 
 83d434eb9a4eaeeb4bb280fa3f5c5286 1042 mail optional 
gmail-notify_1.6.1.1-0.1.dsc
 7d62330064b3cc70c674cb721f36975a 32167 mail optional 
gmail-notify_1.6.1.1.orig.tar.gz
 8a0d841311a3d1c025de7750325774a6 7991 mail optional 
gmail-notify_1.6.1.1-0.1.diff.gz
 4242ac23c90dadb4aba535958d8cf4a9 29050 mail optional 
gmail-notify_1.6.1.1-0.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkqs2g4ACgkQ1FNW1LDdr0K3IQCgiBtIO6ewQJX4wQ3uQLDX1Pow
kygAn2rUHUTKWdvFg/9OxgktQgm8Mbme
=JJR/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to