tags 650454 + patch quit Hi,
Sandro Tosi wrote: > * debian/patches/60_bts650454_send_galx_as_cookie.patch > - fix auth problem with GMail, by passing GALX in the cookie; thanks to > Johan Sandblom for the report; Closes: #650454 Yep, I can reproduce this. I tried applying this patch in squeeze and it seemed to behave as advertised. Maybe the result can save you some time. Thanks for your work, Jonathan --- debian/changelog | 8 +++++ debian/patches/00list | 1 + .../60_bts650454_send_galx_as_cookie.dpatch | 31 ++++++++++++++++++++ 3 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 debian/patches/60_bts650454_send_galx_as_cookie.dpatch diff --git a/debian/changelog b/debian/changelog index ab829809..04b21e23 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +checkgmail (1.13+svn43-2+squeeze0.1) local; urgency=low + + * debian/patches/60_bts650454_send_galx_as_cookie.dpatch + - fix auth problem with GMail by passing GALX in the cookie; thanks to + Johan Sandblom for the report; Closes: #650454 + + -- Jonathan Nieder <jrnie...@gmail.com> Mon, 23 Jan 2012 06:31:30 -0600 + checkgmail (1.13+svn43-2) unstable; urgency=low * 40_bts568882_use_GTK_new_widget_insteadof_libsexy.dpatch diff --git a/debian/patches/00list b/debian/patches/00list index c6e82ed5..81c995ab 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -3,3 +3,4 @@ 30_bts552490_greek_translation 40_bts568882_use_GTK_new_widget_insteadof_libsexy 50_bts568890_use_xdg-open +60_bts650454_send_galx_as_cookie diff --git a/debian/patches/60_bts650454_send_galx_as_cookie.dpatch b/debian/patches/60_bts650454_send_galx_as_cookie.dpatch new file mode 100755 index 00000000..57a2261b --- /dev/null +++ b/debian/patches/60_bts650454_send_galx_as_cookie.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 60_bts650454_send_galx_as_cookie.patch by Jan Jergus +## +## DP: Description: pass GALX as cookie, to avoid continuos pop-up for auth +## DP: Bug: http://sourceforge.net/tracker/?func=detail&aid=3406322&group_id=137480&atid=738663 +## DP: Bug-Debian: http://bugs.debian.org/650454 +## DP: Forwarded: not-needed + +@DPATCH@ +Index: checkgmail/checkgmail +=================================================================== +--- checkgmail.orig/checkgmail 2012-01-08 18:14:20.369935655 +0100 ++++ checkgmail/checkgmail 2012-01-08 18:16:16.170116161 +0100 +@@ -891,7 +891,8 @@ + print "Error: No GALX input field found\n"; + return "Error: No GALX input field found"; + } +- $post_galx = URI_escape(URI_unescape($1)); ++ my $galx = URI_unescape($1); ++ $post_galx = URI_escape($galx); + + # Find the data to post + my $post_data; +@@ -907,6 +908,7 @@ + my $post_req = HTTP::Request->new('POST' => "https://www.google.com/accounts/ServiceLoginAuth?service=mail"); + $post_req->content_type('application/x-www-form-urlencoded'); + $post_req->content($post_data); ++ $post_req->header('Cookie' => "GALX=$galx"); + my $post_response = $ua->request($post_req); + if ($post_response->is_error) { + my $code = $response->code; -- 1.7.9.rc2 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org