Tom Vincent | 1 Nov 2011 17:44
Favicon

Re: not writable

I've noticed this happen frequently on the INBOX directory of Gmail
accounts.

The following debug snippet seems to show it switches between
"READ-WRITE" and "READ" statuses:

---

Folder INBOX [acc: gmail]:
 DEBUG[imap]:   38:47.91 Folder INBOX [acc: gmail] [sync] SELECT ('INBOX',)
 DEBUG[imap]:   38:47.91 Folder INBOX [acc: gmail] state_change_pending.acquire
 DEBUG[imap]:   38:47.91 Folder INBOX [acc: gmail] _request_push(MDBI52, SELECT, {}) = MDBI52
 DEBUG[imap]:   38:47.91 Folder INBOX [acc: gmail] data=MDBI52 SELECT INBOX
 DEBUG[imap]:   38:47.91 Folder INBOX [acc: gmail] SELECT:MDBI52.ready.wait
 DEBUG[imap]:   38:47.91 imap.gmail.com writer > MDBI52 SELECT INBOX\r\n
 DEBUG[imap]:   38:48.32 imap.gmail.com reader < MDBI52 OK [READ-WRITE] INBOX selected. (Success)\r\n
 DEBUG[imap]:   38:48.32 imap.gmail.com handler _request_pop(MDBI52, ('OK', ['[READ-WRITE] INBOX
selected. (Success)'])) = MDBI52
Folder INBOX [acc: gmail]:
 DEBUG[imap]:   38:48.32 Folder INBOX [acc: gmail] state => SELECTED
 DEBUG[imap]:   38:48.32 Folder INBOX [acc: gmail] state_change_pending.release
 DEBUG[imap]:   38:48.32 Folder INBOX [acc: gmail] _get_untagged_response(READ-ONLY) => ['']
 DEBUG[imap]:   38:48.32 Folder INBOX [acc: gmail] untagged responses dump:
 ERROR: Server 'imap.gmail.com' closed connection, error on SELECT 'INBOX'. Server said: INBOX is not writable
 DEBUG[thread]: Unregister thread 'Folder INBOX [acc: gmail]'
 ERROR: Server 'imap.gmail.com' closed connection, error on SELECT 'INBOX'. Server said: INBOX is not writable

---

$ offlineimap --version                     
(Continue reading)

Chris Dennis | 1 Nov 2011 18:30

Re: New logging framework on 'next' (Blinkenlights users beware)

On 10/31/2011 07:02 PM, Chris Dennis wrote:
> On 10/28/2011 08:27 AM, Sebastian Spaeth wrote:
>> All UI backends have been converted to use python's logging
>> module.
>
> Excellent! I've just got that working, and it's a big improvement.

...except that the log file gets overwritten every time offlineimap is 
restarted.  Maybe some people would want it to do that, but for me, the 
following 1-character patch fixes it:

%<---------------------------------------------------------------------
diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py
index 44c920f..75cb313 100644
--- a/offlineimap/ui/UIBase.py
+++ b/offlineimap/ui/UIBase.py
 <at>  <at>  -81,7 +81,7  <at>  <at>  class UIBase(object):

      def setlogfile(self, logfile):
          """Create file handler which logs to file"""
-        fh = logging.FileHandler(logfile, 'wt')
+        fh = logging.FileHandler(logfile, 'at')
          #fh.setLevel(logging.DEBUG)
          file_formatter = logging.Formatter("%(asctime)s %(levelname)s: "
                           "%(message)s", '%Y-%m-%d %H:%M:%S')
%<---------------------------------------------------------------------

regards

Chris
(Continue reading)

Chris Barrington-Leigh | 1 Nov 2011 21:06
Picon

gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)

Hello. I am looking for fellow (r)(al)pine users (alpine is a mail client) 
simple instructions or at least sympathizers. I desperately want 
instructions for how to use alpine with a local copy of a gmail account. 
I have been doing this for years by compiling a patched version of alpine 
that can talk to maildir, but this is no longer working ("upgrade", I 
believe is the word for that).

So I simply want:

(1) a recommendation for which lightweight local IMAP server to install

(2) details for how to install it and make it talk to offlineimap (which 
currently syncs my gmail account) and alpine.

I think this should be easy, but I haven't figured it out. I want to do it 
under Ubuntu using just the standardly available packages.
Can anyone help me?? I'd actually gladly pay for the support, and will 
certainly write up a how-to if I get it going.

Many thanks,
Chris

SDF Public Access UNIX System - http://sdf.lonestar.org

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap
(Continue reading)

Andreas Fink | 1 Nov 2011 21:13
Picon

Re: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)

On Tue, 1 Nov 2011 20:06:44 +0000 (UTC)
Chris Barrington-Leigh <cpblpublic+offlineimap <at> gmail.com> wrote:

> Hello. I am looking for fellow (r)(al)pine users (alpine is a mail client) 
> simple instructions or at least sympathizers. I desperately want 
> instructions for how to use alpine with a local copy of a gmail account. 
> I have been doing this for years by compiling a patched version of alpine 
> that can talk to maildir, but this is no longer working ("upgrade", I 
> believe is the word for that).
> 
> So I simply want:
> 
> (1) a recommendation for which lightweight local IMAP server to install
> 
> (2) details for how to install it and make it talk to offlineimap (which 
> currently syncs my gmail account) and alpine.
> 
> I think this should be easy, but I haven't figured it out. I want to do it 
> under Ubuntu using just the standardly available packages.
> Can anyone help me?? I'd actually gladly pay for the support, and will 
> certainly write up a how-to if I get it going.
> 
> Many thanks,
> Chris
> 
> 
> SDF Public Access UNIX System - http://sdf.lonestar.org
> 
> _______________________________________________
> OfflineIMAP-project mailing list
(Continue reading)

Chris Barrington-Leigh | 1 Nov 2011 21:22
Picon

Re: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)

To clarify my own post, what I described is actually not my ideal outcome. 
I would rather keep the existing maildir folder that offlineimap made and 
has been using for years. What would then be best is if a local imap 
server could mediate between that and alpine. So it would look more like 
this:

  gmail -> offlineimap -> maildir -> (local imap) -> alpine

This may be something like

http://blob.inf.ed.ac.uk/gdutton/2009/01/offlineimap/

but these instructions are both too complex for me and are for a Mac.

Thanks,
Chris

On Tue, 1 Nov 2011, Chris Barrington-Leigh wrote:

> Date: Tue, 1 Nov 2011 20:06:44 +0000 (UTC)
> From: Chris Barrington-Leigh <cpblpublic+offlineimap <at> gmail.com>
> To: offlineimap-project <at> lists.alioth.debian.org
> Subject: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)
> 
> Hello. I am looking for fellow (r)(al)pine users (alpine is a mail client) 
> simple instructions or at least sympathizers. I desperately want instructions 
> for how to use alpine with a local copy of a gmail account. I have been doing 
> this for years by compiling a patched version of alpine that can talk to 
> maildir, but this is no longer working ("upgrade", I believe is the word for 
> that).
(Continue reading)

Andreas Fink | 1 Nov 2011 21:27
Picon

Re: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)

On Tue, 1 Nov 2011 20:22:31 +0000 (UTC)
Chris Barrington-Leigh <cpblpublic+offlineimap <at> gmail.com> wrote:

> To clarify my own post, what I described is actually not my ideal outcome. 
> I would rather keep the existing maildir folder that offlineimap made and 
> has been using for years. What would then be best is if a local imap 
> server could mediate between that and alpine. So it would look more like 
> this:
> 
>   gmail -> offlineimap -> maildir -> (local imap) -> alpine
> 
> This may be something like
> 
> http://blob.inf.ed.ac.uk/gdutton/2009/01/offlineimap/
> 
> but these instructions are both too complex for me and are for a Mac.
> 
> Thanks,
> Chris
> 
> On Tue, 1 Nov 2011, Chris Barrington-Leigh wrote:
> 
> > Date: Tue, 1 Nov 2011 20:06:44 +0000 (UTC)
> > From: Chris Barrington-Leigh <cpblpublic+offlineimap <at> gmail.com>
> > To: offlineimap-project <at> lists.alioth.debian.org
> > Subject: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)
> > 
> > Hello. I am looking for fellow (r)(al)pine users (alpine is a mail client) 
> > simple instructions or at least sympathizers. I desperately want instructions 
> > for how to use alpine with a local copy of a gmail account. I have been doing 
(Continue reading)

Tim Gray | 1 Nov 2011 22:03
Favicon
Gravatar

Re: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)

On Nov 1, 2011, at 4:22 PM, Chris Barrington-Leigh wrote:
> To clarify my own post, what I described is actually not my ideal outcome. I would rather keep the existing
maildir folder that offlineimap made and has been using for years. What would then be best is if a local imap
server could mediate between that and alpine. So it would look more like this:
> 
> gmail -> offlineimap -> maildir -> (local imap) -> alpine
> 
> This may be something like
> 
> http://blob.inf.ed.ac.uk/gdutton/2009/01/offlineimap/
> 
> but these instructions are both too complex for me and are for a Mac.

I haven't used alpine for a long time.  I used to use it (and pine before that), but then about 4 years ago, I
transitioned to mutt.  Once I got things tweaked right, I was happier with mutt then I ever was with alpine. 
Not to start a war or anything, but mutt reads maildir just fine.  I used it with offlineimap for the past four years.

I chose maildir for the exact reason you are alluding to: if I ever decided to change mail clients again, I
could just run a local imap server on my existing maildirs and just serve my messages to the new client that
way, assuming they didn't read maildir directly.  Just this week I started testing this out (again) with
dovecot and OS X Mail.  It works very nice.  Dovecot is relatively easy to set up.
_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap

Chris Barrington-Leigh | 1 Nov 2011 22:19
Picon

Re: gmail -> offlineimap -> (local imap) -> alpine (under Ubuntu)


Thanks. Yes, I have mutt working. I don't like the two-stage composition. 
I'm faster in alpine.

I wish you could help me with a pointer, if setup is so easy. After 
another two hours of trying, I haven't got it. I would be so grateful if 
someone could just tell me how to set up pine with dovecot? Or point me to 
instructions?

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap

John Wiegley | 1 Nov 2011 15:23
Picon
Gravatar

Re: Sometimes, cannot stop Offlineimap with SIGUSR1

>>>>> Sebastian Spaeth <Sebastian <at> SSpaeth.de> writes:

> Mmmh, that should not cause hangs. Do you happen to have a debug log From
> such a run?

How would I produce that for you?  I just have the regular output from
Offlineimap.

John

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap

Daniel Shahaf | 1 Nov 2011 23:01

Re: Sometimes, cannot stop Offlineimap with SIGUSR1

John Wiegley wrote on Tue, Nov 01, 2011 at 09:23:29 -0500:
> >>>>> Sebastian Spaeth <Sebastian <at> SSpaeth.de> writes:
> 
> > Mmmh, that should not cause hangs. Do you happen to have a debug log From
> > such a run?
> 
> How would I produce that for you?  I just have the regular output from
> Offlineimap.

offlineimap -d <arg>

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project <at> lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap


Gmane