infoarts | 2 Sep 2009 06:53
Picon

oflineimap and OS 10.6 (Snow Leopard)

Anyone else having trouble running offlineimap on Snow Leopard (Mac OS 10.6)?

I'm getting a Trace/BPT trap error.

I did find a reference to the issue here
<http://www.sturmnet.org/blog/2009/09/01/an-evening-of-fun-with-snow-leopard>
on another site. But I'm clueless as to understand the actual issue.

Any clues would be appreciated.

Richard

Michael Rowe | 2 Sep 2009 09:59
Favicon

Re: oflineimap and OS 10.6 (Snow Leopard)

On 2009-09-02 14:53 +1000, infoarts <at> gmail.com wrote:
> Anyone else having trouble running offlineimap on Snow Leopard (Mac OS 10.6)?
> 
> I'm getting a Trace/BPT trap error.

Yes, same thing here.

I've tried both the version of offlineimap in ports (6.0 I think) and
the latest built from source (6.2.0).

--

-- 
Michael Rowe <mrowe <at> mojain.com>
http://www.mikerowecode.com/
http://www.therowes.id.au/

John Goerzen | 2 Sep 2009 15:15
Favicon

Re: oflineimap and OS 10.6 (Snow Leopard)

infoarts <at> gmail.com wrote:
> Anyone else having trouble running offlineimap on Snow Leopard (Mac OS 10.6)?
> 
> I'm getting a Trace/BPT trap error.
> 
> I did find a reference to the issue here
> <http://www.sturmnet.org/blog/2009/09/01/an-evening-of-fun-with-snow-leopard>
> on another site. But I'm clueless as to understand the actual issue.

Can you please post the last screen or two from running with -d imap -d
maildir?

John C. McCabe-Dansted | 2 Sep 2009 19:17
Picon

Option to syncronise headers with maxsize?

Hi, I've added
  maxage = 30
  maxsize = 50000
to my [Account ...] section. 

I find this really great for Gmail since I have over 1GB of mail.

However I understand that if a mail is over 50,000 bytes it won't appear at
all in my mail. I would find it more convienient if 

1) it syncronized the header without the mail so that I don't have to
   check my webmail for over-sized mail.

2) Even better would be if it added a psuedo attachment that I could run to
   download the full mail.

3) Better again would be if it downloaded the first few K of the message, so
   I could check whether I wanted to download the full mail.

Do any of these sound feasible?

Thanks for your attention,

__
John C. McCabe-Dansted

Michael Rowe | 3 Sep 2009 02:20
Favicon

Re: oflineimap and OS 10.6 (Snow Leopard)

On 2009-09-02 08:15 -0500, John Goerzen wrote:
> Can you please post the last screen or two from running with -d imap -d
> maildir?

Doesn't seem to get that far:

    $ offlineimap -d imap -d maildir
    OfflineIMAP 6.2.0
    Copyright (C) 2002 - 2009 John Goerzen <jgoerzen <at> complete.org>
    This software comes with ABSOLUTELY NO WARRANTY; see the file
    COPYING for details.  This is free software, and you are welcome
    to distribute it under the conditions laid out in COPYING.
    Now debugging for maildir: Maildir repository debugging
    ***** Processing account Mojain
    Trace/BPT trap

Maybe more useful, from the Apple crash reporter:

    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000

    [...]

    Thread 2 Crashed:
    0   com.apple.CoreFoundation		0x00007fff8217eb90 __CFInitialize + 1808
    1   dyld				0x00007fff5fc0d5ce ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) + 138
    2   dyld				0x00007fff5fc0d607 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext
const&) + 27
    3   dyld				0x00007fff5fc0bcec ImageLoader::recursiveInitialization(ImageLoader::LinkContext
const&, unsigned int) + 236
(Continue reading)

John Goerzen | 3 Sep 2009 04:01
Favicon

Re: oflineimap and OS 10.6 (Snow Leopard)

Michael Rowe wrote:
> On 2009-09-02 08:15 -0500, John Goerzen wrote:
>> Can you please post the last screen or two from running with -d imap -d
>> maildir?
> 
> Doesn't seem to get that far:

This appears to be a bug in Python itself or in the operating system.
That's a C backtrace, not a Python one.  You'll need to take this bug
report to Apple or Python.

-- John

Christoph Höger | 4 Sep 2009 11:13
Picon

[PATCH 2/2] added small HACKING file

Signed-off-by: Christoph H=F6ger <choeger <at> cs.tu-berlin.de>
---
 HACKING |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 HACKING

diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..8c6fb19
--- /dev/null
+++ b/HACKING
 <at>  <at>  -0,0 +1,11  <at>  <at> 
+Developing your own UI
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+
+You can develop your own plugin by simply subclassing the UIBase class f=
rom offlineimap.ui.UIBase (have a look at TTYUI for a basic understanding=
 of that).
+In difference to versions <=3D 6.2.0 you can now easily activate your pl=
ugin by putting it into the offlineimap/ui/plugins folder. This works wit=
hout any other preparation. So if your module is named foo.py and your UI=
 class is Bar the user can now use it with offlineimap -u foo.Bar
+If you want to make the life of the user even easier, just add a getUICl=
ass() method in your module, let's say:
+
+	# note: you return a class, not the instance!
+	def getUIClass(): return Bar
+
+Then the user can run offlineimap -u foo even without knowing about Bar =
(allowing for multiple UI Classes in one module).
(Continue reading)

Christoph Höger | 4 Sep 2009 11:13
Picon

[PATCH 1/2] furbished dynamic ui plugin selection

Here we go again, this time a lot better:
This patch allows ui plugins to be dropped only
inside the ui/plugins folder and work without modifying
any other file. Good for packagers.

* config:
Old config options like "Curses.Blinkenlights" still work
New ui plugins can use Modulename only if they provide a
getUIClass() method, I think thats a compromise

* default ui:
I have made Curses.Blinkenlights the default ui, but
perhaps TTY.TTYUI is a better choice for that.

* testing:
I tested against Blinkenlights and Gnome ui (which is not
yet in the mainline branch)

Signed-off-by: Christoph H=C3=B6ger <choeger <at> cs.tu-berlin.de>
---
 offlineimap/ui/Blinkenlights.py          |  147 ------
 offlineimap/ui/Curses.py                 |  593 -----------------------
 offlineimap/ui/Machine.py                |  179 -------
 offlineimap/ui/Noninteractive.py         |   51 --
 offlineimap/ui/TTY.py                    |   60 ---
 offlineimap/ui/__init__.py               |   17 -
 offlineimap/ui/detector.py               |   35 +-
 offlineimap/ui/plugins/Blinkenlights.py  |  143 ++++++
 offlineimap/ui/plugins/Curses.py         |  593 +++++++++++++++++++++++
 offlineimap/ui/plugins/Gnome.py          |  769 ++++++++++++++++++++++++=
(Continue reading)

Christoph Höger | 4 Sep 2009 11:24
Picon

Last two patches

Hi,
sorry for the delay. But I had to do some thesis stuff and also some
vacation.

Those two patches are essentially the dynamic plugin feature again plus
a small HACKING file which documents how to use it (not too hard).
Any other hacking related stuff could go in there too.

regards

Christoph

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: Dies ist ein digital signierter Nachrichtenteil

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

iEYEABECAAYFAkqg3McACgkQhMBO4cVSGS90PwCgp/BLke1PUgc4HB/a1yvnRqRM
42MAn0NmVrsJNdYSPCKCs/ESe8V5ulPA
=W15B
-----END PGP SIGNATURE-----

Nicolas Sebrecht | 4 Sep 2009 15:50
Favicon

Re: Last two patches

On Fri, Sep 04, 2009 at 11:24:23AM +0200, Christoph Höger wrote:
> 
> Hi,

hi,

> Those two patches are essentially the dynamic plugin feature again plus
> a small HACKING file which documents how to use it (not too hard).
> Any other hacking related stuff could go in there too.

The patches are broken in two ways:
- the encoding is wrong;
- the line wrapping of mutt made the patches unusable.

Also (the most important FMPOV), the first patch do more than 1800
insertions and 1000 deletions. Nobody will review such a patch. Could
you please consider to split this patch?

--

-- 
Nicolas Sebrecht


Gmane