[spambayes-bugs] [ spambayes-Patches-776297 ] Add version check to
plugin
SourceForge.net
noreply at sourceforge.net
Wed Jul 30 19:15:05 EDT 2003
Patches item #776297, was opened at 2003-07-24 00:58
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=776297&group_id=61702
Category: Outlook
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Mark Hammond (mhammond)
Summary: Add version check to plugin
Initial Comment:
Many questions on the spambayes mailing list are
answered with "first, make sure you are using the
latest version of the Outlook plugin". This patch
allows people to check to see if they are up-to-date.
Before incorporating this, please change the URL
of the page which contains the version number! :-)
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2003-07-31 11:15
Message:
Logged In: YES
user_id=14198
Done - thanks Skip!
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2003-07-27 23:30
Message:
Logged In: YES
user_id=44345
Here's another version. This uses re.search to extract
the BinaryVersion value from the remote copy of
Version.py and compares it with the local value.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2003-07-27 23:17
Message:
Logged In: YES
user_id=44345
Okay, idiot that I am, I have it simply importing the file I
downloaded. That obviously has some serious security
risks, so I will change it so that it simply pulls the version
information from the file as if it was pure data.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2003-07-27 10:37
Message:
Logged In: YES
user_id=44345
Here's an updated version of just checkversion.py which
assumes the remote file is the latest version of Version.py.
I haven't tried this on Windows (I'm at home). I'll leave it
for Mark to pronounce on. Mark, if you want me to check
it in, let me know what URL you want it to fetch.
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2003-07-26 11:03
Message:
Logged In: YES
user_id=14198
Yep, binary version would be what you should compare against
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2003-07-24 11:06
Message:
Logged In: YES
user_id=44345
That sounds fine to me. Is the BinaryVersion element (currently
0.5) the item to compare with? I was looking through the
Outlook2000 directory for "005".
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2003-07-24 09:22
Message:
Logged In: YES
user_id=14198
How about we put on the web server the latest version of
"spambayes\Version.py" - we could then parse it locally and
extra more metadata (such as the new release date etc). The
code could also be generally useful for all spambayes apps.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2003-07-24 01:37
Message:
Logged In: YES
user_id=44345
> ...Or maybe that would just hammer the website too much ;)
Plus 'twould have been beyond my nascent Windows programming
skills...
----------------------------------------------------------------------
Comment By: Adam Walker (xenogeist)
Date: 2003-07-24 01:30
Message:
Logged In: YES
user_id=583713
Maybe checking the version at startup in a seperate thread
(along with an option to disable the check) and only show
the message if a new version is availible could be added. ...Or
maybe that would just hammer the website too much ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=776297&group_id=61702
More information about the Spambayes-bugs
mailing list