--- gotmail-0.9.0.orig/gotmail +++ gotmail-0.9.0/gotmail @@ -1182,13 +1182,16 @@ my $still_a_page_to_go = 1; my $start_line_of_nextpage_search = 0; my @folder = (); + my $pageid = "page=0"; while ($still_a_page_to_go) { $still_a_page_to_go = 0; # Get the messages in whatever order Hotmail says we should - push @folder,getPage("http://$host/cgi-bin/HoTMaiL?$url\&page=$page", "", 1, 1, 0); + push @folder,getPage("http://$host/cgi-bin/HoTMaiL?$url\&$pageid", "", 1, 1, 0); for (my $line_nr=$start_line_of_nextpage_search;$line_nr<@folder;$line_nr++) { - if ($folder[$line_nr] =~ m/title="$nextpage_string"/) { +# if ($folder[$line_nr] =~ m/title="$nextpage_string"/) { + if($folder[$line_nr] =~ m/a href="javascript:HM\('([^']+)'\)" title="$nextpage_string"/) { + $pageid = $1; $start_line_of_nextpage_search = $line_nr + 1; $still_a_page_to_go = 1; $page++; --- gotmail-0.9.0.orig/debian/changelog +++ gotmail-0.9.0/debian/changelog @@ -0,0 +1,420 @@ +gotmail (0.9.0-1) unstable; urgency=low + + * New upstream release (closes: #431802 - "new upstream version") + * New version includes a more explanatory message than "Could not parse + redirect location", to let the user know that it can happen when + credentials are bad or when the account is locked. (Closes: #381422 - + "Could not parse redirect location") + * Applied patch from Martin Ferrari to avoid an infinite fetching loop + when the account has a certain number of messages (closes: #425502 - + "Gotmail cannot retrieve mail: infinite loop") + + -- paul cannon Sat, 14 Jul 2007 13:04:08 -0600 + +gotmail (0.8.9-1) unstable; urgency=low + + * New upstream release + (Closes: #355585 - "multiple new versions", + Closes: #364453 - "gotmail will no longer log in...", and + Closes: #362622 - "gotmail fills up my /tmp/") + + -- paul cannon Tue, 25 Apr 2006 18:02:05 -0600 + +gotmail (0.8.4-1) unstable; urgency=low + + * New upstream release (Closes: #319453 - "new version...") + * Adds support for different hotmail domains (Closes: #306603 - + "Hardwired for 'hotmail.com' and cannot change in ~/.gotmailrc") + * Apparently fixes the problem with deletion in some languages + (Closes: #282175 - "fails to move or delete messages for some + languages), although my ability to verify this is limited. + Please notify me or reopen the bug if there are more issues. + + -- paul cannon Fri, 22 Jul 2005 11:52:28 -0600 + +gotmail (0.8.2-3) unstable; urgency=low + + * Applied patch 135217 from SF by "cageek" (Closes: Bug#309737 - + "hotmail structure seems to have changed, gotmail doesn't work + anymore") + + -- paul cannon Sat, 21 May 2005 19:48:00 -0600 + +gotmail (0.8.2-2) unstable; urgency=low + + * Suggest exim4 instead of the outdated exim (Closes: Bug#255345 - + "please suggest exim4 instead of exim") + * Replace print with dispText() where appropriate; patch sent + upstream (Closes: Bug#281013 - "--silent isn't too silentious") + * I think this bug report is complaining about not being able to + use a @ in the config file name; band-aid fix is to add @ to the + regex. Fixed. (Closes: Bug#287127 - "-c config@file.name doesn't + work because of the @. work around is change the filename.") + + -- paul cannon Fri, 11 Feb 2005 11:01:02 -0700 + +gotmail (0.8.2-1) unstable; urgency=low + + * The "it's about bloody time, you lazy buffoon" release + * New upstream release (Closes: #276335 - "new upstream version + 0.8.2 solves previous problems. PLEASE UPGRADE!!!" and + Closes: #267452 - "Hotmails structure has changed"). Changes + include: + + Fixes for hotmail site changes + + Support for moving mail (on Hotmail) after downloading + + -- paul cannon Tue, 9 Nov 2004 18:30:15 -0700 + +gotmail (0.8.1-1) unstable; urgency=low + + * New upstream release (thanks for your patience; + Closes: #238636 - "new version"). Changes include: + + Removed special handling for MSN accounts + + Enabled support for downloading "Sent Messages" and "Drafts" + + Fixed problem where using both --only-new and --delete + could cause infinite loops in certain cases + + Many changes to deal with hotmail.com structure change + + Added SpamAssassin options + --use-sa Runs mail against SpamAssassin to check + for spam. Doesn't forward or download spam + --delete-spam In addition to not downloading spam, delete it. + + Added nodownload option + --nodownload Don't actually download messages. Useful when + combined with -delete-spam + + -- paul cannon Fri, 18 Jun 2004 14:11:54 -0600 + +gotmail (0.7.10-3) unstable; urgency=low + + * John Fruetel has taken over upstream maintenance. Thanks, + John! + * New upstream fixes (although not yet released) address the + most recent Hotmail breakage. Closes: #222781 - "Hotmail + redesign broke gotmail". + + -- paul cannon Mon, 15 Dec 2003 16:07:14 -0700 + +gotmail (0.7.10-2) unstable; urgency=low + + * Fix stupid broken dependency (Closes: #198341, #198506); + since of course I shouldn't do a versioned dependency on + a virtual package :/ + + -- paul cannon Mon, 23 Jun 2003 11:48:12 -0600 + +gotmail (0.7.10-1) unstable; urgency=low + + * New upstream release. Changes include: + * Patch from Angel Luis Jimenez Martinez to use curl's cookie + handling instead of trying to do it manually. This fixes + the latest Hotmail breakage. (Closes: #195288 - "gotmail + reports page structure has changed") + + -- paul cannon Sat, 21 Jun 2003 00:24:12 -0600 + +gotmail (0.7.9-2) unstable; urgency=medium + + * Removed dependency on libcurl2-ssl; ssl functionality is + now provided in the curl package itself (>= 7.9.5-2) + * Medium urgency because this is one of the few reasons the newer + curl isn't going into testing. + + -- paul cannon Fri, 2 May 2003 14:42:38 -0600 + +gotmail (0.7.9-1) unstable; urgency=low + + * New upstream release. Changes include: + * Fixed recent hotmail breakage (Closes: #184663 - "Hotmail + changes") + * Don't skip pages when deleting + * Added --procmail-bin option to set procmail's location; + /usr/bin/procmail is now only the default. + * Added check to make sure procmail binary can be found; aborts + if not. Previously mail sent to procmail just went nowhere if + the procmail wasn't in /usr/bin. + * Fixed messages printed when --silent was specified. + * Added option to specify path to curl executable. Previously, + gotmail would use "./curl" if found, and curl in the path if + not. "./curl" will no longer work unless specified explicitly + with --curl-bin. The default is still to search the path. + * Fixed --folders option (when specified at the command line, + was expecting a "/" separator, while the manpage said to use + commas. Behavior now matches manpage; use comma separators. + * curl errors were most likely caused by hotmail breakage, + above; new version works without any versioned dependency + on woody. (Closes: #179242 - Does not work with woody + "libcurl") + + -- paul cannon Thu, 13 Mar 2003 17:21:50 -0700 + +gotmail (0.7.7-1) unstable; urgency=low + + * New upstream release. Changes include: + * Fixes the broken delete option in a better way (works + for non-English users) + * Fixes broken delete option for Junk Mail folder + + -- paul cannon Mon, 13 Jan 2003 13:18:07 -0700 + +gotmail (0.7.6-2) unstable; urgency=low + + * Incorporates changes from upstream unstable 0.7.7pre1- + which fixes the broken mark-read and delete actions. + (closes: #175943 - "delete -Option doesn't work") + * Closing this report also, because it appears to be bogus: + (closes: #166287 - ".gotmailrc is now ignored after + upgrading to 0.7.4pre") + + -- paul cannon Thu, 9 Jan 2003 18:24:52 -0700 + +gotmail (0.7.6-1) unstable; urgency=low + + * New upstream release, adding support for MSN.com addresses. + + -- paul cannon Wed, 8 Jan 2003 18:28:05 -0700 + +gotmail (0.7.5-1) unstable; urgency=low + + * Updated Standards-Version. + * New upstream release. Changes include: + * Fix backwards logic in the SMTP debugging flag + * Fixed output of perl version when debugging ($PERL_VERSION + seems to be broken?) + * Fix HTML entities _before_ trying to recognize From: + headers + * When from address can't be determined (because it seems we + can't rely on Hotmail to send valid From lines or From: + headers), use a valid email address ($login\@hotmail.com) + instead of just "Hotmail". This avoids breaking SMTP. + * Changed url for deleting messages, so that they are moved + correctly into the Trash folder instead of being sent to + limbo. + + -- paul cannon Sat, 4 Jan 2003 15:55:01 -0700 + +gotmail (0.7.4-1) unstable; urgency=medium + + * New upstream release. Changes include: + * Fix to make gotmail work with new Hotmail format changes + (process cookies on main login page, and unescape cookie + values) (closes: #165348, #163928 - Hotmail's structure changed) + * Patch by Hari Sundararaghavan to update Hotmail login data- + string (closes: #164964 - Argument "..." isn't numeric) + * Medium urgency because 0.7.3 is now completely useless + + -- paul cannon Tue, 22 Oct 2002 15:04:47 -0600 + +gotmail (0.7.3-1) unstable; urgency=low + + * New upstream release + * Added patch by Sergio Rua to introduce + the --use-procmail option (sends all messages to procmail) + (closes: #151999 - gotmail with procmail) + * Added patch by David Holland to introduce X-gotmail-user + header + * Will use more modern curl dependencies after some version + of this gets into woody (if I can make that happen). + (closes: #152004 - please update build dependencies) + + -- paul cannon Thu, 11 Jul 2002 14:21:11 -0600 + +gotmail (0.7.2-1) unstable; urgency=low + + * New upstream release. Changes include: + * Minor regex tweaks to work with a Hotmail change. + + -- paul cannon Fri, 28 Jun 2002 13:09:04 -0600 + +gotmail (0.7.1-1) unstable; urgency=low + + * New upstream release. Changes include: + * Updated copyright dates. + * Added -i switch to sendmail command to ignore false end-of- + transmission (Thanks to Denzil Boyter) + * Fixed stupid invalid line in sample gotmailrc ("proxy=no"; + removed). Got lots of messages about this! + * Incorporated changes from Ivor@ivorp.com to allow Gotmail to + work on a Windows system! Adds the --smtpserver option, and + the requirement for libnet-perl. + * Incorporated changes based on "lorddrumstik"'s patch to allow + naming folders based on login name. (--save-to-login option) + * Fixed handling of items in folder lists; now doesn't match + on substrings. + + -- paul cannon Thu, 16 May 2002 17:46:07 -0600 + +gotmail (0.7.0-1) unstable; urgency=low + + * I did hear from Peter Hawkins, and he told me to go ahead and + adopt gotmail upstream. This is a new _upstream_ release. + Changes include: + * Upstream releases no longer contain a debian/ directory. I + plan to release gotmail also as an RPM sometime soon. + * Shortened some of the argument option names, and made the options + in the config file match those in the arguments. The old values + on both sides should still work. + + -- paul cannon Sat, 11 May 2002 18:19:31 -0600 + +gotmail (0.6.6-7) unstable; urgency=low + + * Made changes to the login process based on the 0.6.6_jp_v4 + version by Jens Preikschat . He took + the time to figure out the Passport servers, so I don't have + to anymore :). Many thanks to Jens. (closes: #144985, #144928 - + Hotmail page structure has Changed) + * Prints the message given to die() when dying + * I don't agree that configuration needs to be split out of the + script. (closes: #142369 - gotmail has configuration embedded + in script in /usr/bin) + * Made some serious cosmetic changes. Got rid of the windows-style + newlines and reformatted lots of code for easier reading. This + will make the diff large, but it doesn't bother me too much. If + I don't hear back from Peter Hawkins this time, I believe I will + upload future versions as Debian-native. Several places on the + net point to this package as the "maintained" one. + * Fixed argument- and config file-processing with better regexps. + Arguments were matching on substrings. + * Made saving in mbox format work correctly. Now outputs a proper + mbox header and does ">From" quoting inside the message. Mutt + can read the output files now. + * Added -c|--config-file option to use a different file than + ~/.gotmailrc, and.. + * Added X-gotmail- headers to all processed messages. These are + loosely based on Tim Dijkstra's patch (closes: #143878 - + [patch] --config-file option and X-gotmail header) + * Made a few other simple regexp optimizations and thinko fixes. + + -- paul cannon Wed, 8 May 2002 19:12:50 -0600 + +gotmail (0.6.6-6) unstable; urgency=low + + * Patch from Jonas Smedegaard to avoid trying to go + through .NET servers (they cause problems) (closes: #140097 - + HoTMaiL sometimes redirects to .NET servers which gotmail doesn't + understand) + * Parts of patch from Adrian Chung to + clean up temp files on unclean exits + * Fixed retry counting + * Only redirect on Location: lines in the header, not in the body + (closes: #138977 - Incorrectly acts on certain text in messages) + * Moved into main + + -- paul cannon Fri, 29 Mar 2002 14:16:17 -0700 + +gotmail (0.6.6-5) unstable; urgency=low + + * New maintainer + * I'm working on #138977- this upload is just to get the bug + reports sent to me. + * Installed already present manpage instead of linking to + undocumented + + -- paul cannon Wed, 20 Mar 2002 15:51:17 -0700 + +gotmail (0.6.6-4) unstable; urgency=low + + * Depend on curl and libcurl2-ssl instead of curl-ssl, closes: #130910 + + -- Brian M. Almeida Fri, 1 Feb 2002 10:02:02 -0500 + +gotmail (0.6.6-3) unstable; urgency=low + + * Moved to non-US, as it depends on a package in non-US + (curl-ssl), closes: #113783 + + -- Brian M. Almeida Fri, 28 Sep 2001 11:15:49 -0400 + +gotmail (0.6.6-2) unstable; urgency=low + + * Applied security patch so as to not pass username and password + on commandline (Thanks to Paul Cannon ) + * Clean up temporary files left behind, closes: #109551 + + -- Brian M. Almeida Thu, 30 Aug 2001 12:45:56 -0400 + +gotmail (0.6.6-1) unstable; urgency=low + + * New upstream release, works with new hotmail, closes: #105912 + * Depends on curl-ssl, not curl, closes: #88064 + * Fix perl warnings, closes: #79103 + + -- Brian M. Almeida Fri, 17 Aug 2001 16:10:21 -0400 + +gotmail (0.6.5-2) unstable; urgency=low + + * Rebuild with depends against curl, not curl-ssl + + -- Brian M. Almeida Tue, 23 Jan 2001 10:46:58 -0500 + +gotmail (0.6.5-1) unstable; urgency=low + + * Initial Release. + + -- Brian M. Almeida Fri, 22 Sep 2000 15:16:33 +0000 + +Local variables: +mode: debian-changelog +End: +gotmail (0.6.6-1) unstable; urgency=medium + + * Fixed gotmail to work with new hotmail + + -- Peter Hawkins Tue, 24 Jul 2001 10:05:53 +1000 + +gotmail (0.6.5-1) unstable; urgency=medium + + * Added retry capability + * Altered debian build system to use debhelper + + -- Peter Hawkins Fri, 22 Sep 2000 11:26:15 +1100 + +gotmail (0.6.4-1) unstable; urgency=medium + + * Multiple bug fixes for changes in hotmail site structure + + -- Peter Hawkins Fri, 22 Sep 2000 10:55:53 +1100 + +gotmail (0.6.3-1) unstable; urgency=low + + * Additional hosts in black list + * Fix for stupid bug with mail box sort order in 0.6.2 + * Small code cleanups + + -- Peter Hawkins Tue, 15 Aug 2000 17:48:00 +1000 + +gotmail (0.6.2-1) unstable; urgency=low + + * Workaround for hotmail server bug - server blacklist + * Added information about the mailing list to the README + * Code cleanups + * Changed default debugging logfile location to /tmp/gotmail_log + + -- Peter Hawkins Fri, 11 Aug 2000 21:16:00 +1000 + +gotmail (0.6.1-1) unstable; urgency=low + + * Fixed dumb bug from badly applied patch + * Code clean ups + * Added --silent, --folder-directory options + * Fixed up temporary file use + * Made cron job use possible. + + -- Peter Hawkins Wed, 09 Aug 2000 18:20:00 +1000 + +gotmail (0.6-2) unstable; urgency=low + + * Updated Depends line to force curl >= 6.5.0. + * Fixed Section to be mail + + -- Peter Hawkins Mon, 17 Jul 2000 10:25:00 +1000 + +gotmail (0.6-1) unstable; urgency=low + + * Initial debian package release + + -- Peter Hawkins Sun, 16 Jul 2000 14:43:46 +1000 + +Local variables: +mode: debian-changelog +End: --- gotmail-0.9.0.orig/debian/control +++ gotmail-0.9.0/debian/control @@ -0,0 +1,21 @@ +Source: gotmail +Section: mail +Priority: optional +Maintainer: paul cannon +Standards-Version: 3.6.2.0 +Build-Depends: debhelper (>> 4) + +Package: gotmail +Architecture: all +Depends: perl (>= 5.004), curl (>= 7.9.0), liburi-perl, libnet-perl +Suggests: exim4 | mail-transport-agent, spamassassin +Description: utility to download email from a Hotmail or MSN account + Gotmail fetches mail out of a Hotmail or MSN account, using the + web interface as though through a browser. It works somewhat like + fetchmail, and lets you do spiffy things like detecting and deleting + spam (without even downloading the whole thing!) and forwarding mail, + and storing it in a local mailbox. + . + Although the team behind Gotmail tries to keep it working, every few + months Hotmail makes changes which break this until they have time to + fix it. Have a backup plan for email access in case that happens. --- gotmail-0.9.0.orig/debian/copyright +++ gotmail-0.9.0/debian/copyright @@ -0,0 +1,15 @@ +This package was first debianized by Brian M. Almeida +on Fri, 22 Sep 2000 15:16:33 +0000. + +The Debian package is currently maintained by paul cannon . + +It was downloaded from http://www.hawkins.emu.id.au/gotmail/ +New versions can be downloaded from http://sourceforge.net/projects/gotmail/ + +Original Author: Peter Hawkins +Upstream Author: John Fruetel + +Copyright: + +gotmail is placed under the GPL. On Debian systems, this can be found +under /usr/share/common-licenses/GPL. --- gotmail-0.9.0.orig/debian/rules +++ gotmail-0.9.0/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f +#-*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Christoph Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +#export DH_COMPAT=3 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +ifndef DESTDIR +DESTDIR=.. +endif +TMP =`pwd`/debian/$(PACKAGE) + +OPTIMIZE = -O2 -Wall +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +OPTIMIZE += -g +endif + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + rm -f gotmail.1 + + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + install -m 755 -g root -o root gotmail \ + $(TMP)/usr/bin/gotmail + #$(MAKE) install DESTDIR=`pwd`/debian/tmp + #$(MAKE) install PREFIX=$(TMP)/usr + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installinit + dh_installcron + dh_installman +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb --destdir=$(DESTDIR) + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- gotmail-0.9.0.orig/debian/gotmail.examples +++ gotmail-0.9.0/debian/gotmail.examples @@ -0,0 +1 @@ +sample.gotmailrc --- gotmail-0.9.0.orig/debian/gotmail.dirs +++ gotmail-0.9.0/debian/gotmail.dirs @@ -0,0 +1 @@ +usr/bin --- gotmail-0.9.0.orig/debian/gotmail.docs +++ gotmail-0.9.0/debian/gotmail.docs @@ -0,0 +1 @@ +README --- gotmail-0.9.0.orig/debian/gotmail.manpages +++ gotmail-0.9.0/debian/gotmail.manpages @@ -0,0 +1 @@ +gotmail.man --- gotmail-0.9.0.orig/debian/compat +++ gotmail-0.9.0/debian/compat @@ -0,0 +1 @@ +4