/offlineimap/head: changeset 589

Various bug fixes and enhancements
This commit is contained in:
jgoerzen 2004-07-26 21:37:45 +01:00
parent c1f25e5030
commit dd9f6475e6
6 changed files with 70 additions and 5 deletions

View File

@ -1,4 +1,25 @@
------------------------------------------------------------------------ ------------------------------------------------------------------------
r588 | jgoerzen | 2004-07-13 10:25:27 -0500 (Tue, 13 Jul 2004) | 1 line
Changed paths:
M /offlineimap/head/bin/offlineimap
M /offlineimap/head/offlineimap/version.py
M /offlineimap/head/offlineimap.py
Updated for 4.0.5
------------------------------------------------------------------------
r587 | jgoerzen | 2004-07-13 10:24:46 -0500 (Tue, 13 Jul 2004) | 1 line
Changed paths:
M /offlineimap/head/ChangeLog
Updated ChangeLog
------------------------------------------------------------------------
r586 | jgoerzen | 2004-07-13 10:22:41 -0500 (Tue, 13 Jul 2004) | 1 line
Changed paths:
M /offlineimap/head/debian/changelog
M /offlineimap/head/debian/control
Added python, python-dev to build-deps.
------------------------------------------------------------------------
r585 | jgoerzen | 2004-06-15 04:45:13 -0500 (Tue, 15 Jun 2004) | 1 line r585 | jgoerzen | 2004-06-15 04:45:13 -0500 (Tue, 15 Jun 2004) | 1 line
Changed paths: Changed paths:
M /offlineimap/head/debian/changelog M /offlineimap/head/debian/changelog

View File

@ -1,3 +1,12 @@
offlineimap (4.0.6) unstable; urgency=low
* Corrected check for Curses.Blinkenlights hotkey press. Closes: #256336.
* Added version to generated header. Closes: #257893.
* Fixed warn() in Tk (reported by Martin Pool).
* Added Windows documentation from Chris Walker to the FAQ.
-- John Goerzen <jgoerzen@complete.org> Mon, 26 Jul 2004 10:04:06 -0500
offlineimap (4.0.5) unstable; urgency=low offlineimap (4.0.5) unstable; urgency=low
* Added python to build-deps. Closes: #259118. * Added python to build-deps. Closes: #259118.

View File

@ -10,7 +10,7 @@
<refentryinfo> <refentryinfo>
<address><email>jgoerzen@complete.org</email></address> <address><email>jgoerzen@complete.org</email></address>
<author><firstname>John</firstname><surname>Goerzen</surname></author> <author><firstname>John</firstname><surname>Goerzen</surname></author>
<date> $Date: 2004-06-04 10:26:30 -0500 (Fri, 04 Jun 2004) $ </date> <date> $Date: 2004-07-26 10:37:45 -0500 (Mon, 26 Jul 2004) $ </date>
</refentryinfo> </refentryinfo>
<refmeta> <refmeta>
@ -133,7 +133,7 @@
<para>You can quickly set up your configuration file. The distribution <para>You can quickly set up your configuration file. The distribution
includes a file <filename>offlineimap.conf.minimal</filename> includes a file <filename>offlineimap.conf.minimal</filename>
(Debian users (Debian users
may find this at may find this at
<filename>/usr/share/doc/offlineimap/examples/offlineimap.conf.minimal</filename>) that is a basic example of setting of &OfflineIMAP;. You can <filename>/usr/share/doc/offlineimap/examples/offlineimap.conf.minimal</filename>) that is a basic example of setting of &OfflineIMAP;. You can
simply copy this file into your home directory and name it simply copy this file into your home directory and name it
<filename>.offlineimaprc</filename> (note the leading period). A <filename>.offlineimaprc</filename> (note the leading period). A
@ -812,7 +812,8 @@ rm -r ~/.offlineimap/Repository-<replaceable>RepositoryName</></programlisting>
<varlistentry><term>What platforms does &OfflineIMAP; run on?</term> <varlistentry><term>What platforms does &OfflineIMAP; run on?</term>
<listitem><para> <listitem><para>
It should run on most platforms supported by Python, which are quite a It should run on most platforms supported by Python, which are quite a
few. few. I do not support Windows myself, but some have made
it work there; see the FAQ entry for that platform.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
@ -945,6 +946,38 @@ rm -r ~/.offlineimap/Repository-<replaceable>RepositoryName</></programlisting>
<listitem><para>2 seconds with OfflineIMAP 3.x "held connection"</para></listitem> <listitem><para>2 seconds with OfflineIMAP 3.x "held connection"</para></listitem>
</itemizedlist> </itemizedlist>
</listitem></varlistentry> </listitem></varlistentry>
<varlistentry><term>Can I use &OfflineIMAP; on Windows?</term>
<listitem><para>
These answers have been reported by &OfflineIMAP;
users. I do not run &OfflineIMAP; on Windows myself, so
I can't directly address their accuracy.
</para>
<para>
The basic answer is that it's possible and doesn't
require hacking &OfflineIMAP; source code. However,
it's not necessarily trivial. The information below is
based in instructions submitted by Chris Walker.
</para>
<para>
First, you must run &OfflineIMAP; in the <ulink
url="http://www.cygwin.com/">Cygwin</ulink>
environment.
</para>
<para>
Next, you'll need to mount your Maildir directory in a
special way. There is information for doing that at
<ulink url="http://barnson.org/node/view/295"></ulink>.
That site gives this example:
</para>
<programlisting>
mount -f -s -b -o managed "d:/tmp/mail" "/home/of/mail"
</programlisting>
<para>
That URL also has more details on making OfflineIMAP
work with Windows.
</para>
</listitem>
</varlistentry>
</variablelist> </variablelist>
</refsect1> </refsect1>

View File

@ -19,6 +19,7 @@
from Base import BaseFolder from Base import BaseFolder
from offlineimap import imaputil, imaplib from offlineimap import imaputil, imaplib
from offlineimap.ui import UIBase from offlineimap.ui import UIBase
from offlineimap.version import versionstr
import rfc822, time, string, random, binascii, re import rfc822, time, string, random, binascii, re
from StringIO import StringIO from StringIO import StringIO
from copy import copy from copy import copy
@ -119,6 +120,7 @@ class IMAPFolder(BaseFolder):
headername += binascii.hexlify(self.getname()) headername += binascii.hexlify(self.getname())
headervalue= '%d-' % long(time.time()) headervalue= '%d-' % long(time.time())
headervalue += str(self.randomgenerator.random()).replace('.', '') headervalue += str(self.randomgenerator.random()).replace('.', '')
headervalue += '-v' + versionstr
return (headername, headervalue) return (headername, headervalue)
def savemessage_addheader(self, content, headername, headervalue): def savemessage_addheader(self, content, headername, headervalue):

View File

@ -386,7 +386,7 @@ class Blinkenlights(BlinkenBase, UIBase):
# Key not a valid one: exit. # Key not a valid one: exit.
return return
if index > len(s.hotkeys): if index >= len(s.hotkeys):
# Not in our list of valid hotkeys. # Not in our list of valid hotkeys.
return return

View File

@ -265,7 +265,7 @@ class VerboseUI(UIBase):
s.top = None s.top = None
TextOKDialog("Main Program Exception", exceptionstr) TextOKDialog("Main Program Exception", exceptionstr)
def warn(s, msg, minor): def warn(s, msg, minor = 0):
if minor: if minor:
# Just let the default handler catch it # Just let the default handler catch it
UIBase.warn(s, msg, minor) UIBase.warn(s, msg, minor)