Norbert Preining | 20 Sep 2008 15:18
Picon
Favicon
Gravatar

mutt and old flag

Dear all,

first of all thanks for the great program I found just recently, but
became a big fan of it immediately.

I have one question: One the server I have mboxes and using mutt there
(Debian/etch, mutt 1.5.13) I see most messages tagged as OLD, which is
nice because I see what actually came in and what not.

On my laptop, Debian/sid, mutt 1.5.18, I sync several folders plus
inbox, but there are no OLD flags, and even after I have visited the
folders with mutt the messages do not appear as OLD, but always are
tagged as NEW.

Is there any way to fix that?

Thanks for any suggestion and all the best

Norbert

PS: using debian/sid, so offlineimap 6.0.3

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining <at> logic.at>        Vienna University of Technology
Debian Developer <preining <at> debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
BRUMBY
The fake antique plastic seal on a pretentious whisky bottle.
			--- Douglas Adams, The Meaning of Liff
(Continue reading)

Ajeet | 24 Sep 2008 07:16
Picon

HUGE list of folders

Hi guys,

My imap server unfortunately lists all the files / folders in the home
directory as an IMAP folder (I have symlinks to all sorts of package folders) .
So while syncing, offlineimap takes a long time just to get the one folder that
I really want to sync. This happens even if I specify the -f option. Is there
someway to overcome this?

Thanks.
--

-- 
Regards,
Ajeet

David L. Emerson | 24 Sep 2008 09:53

Re: HUGE list of folders

Hi Ajeet,

Wow, that sounds like a pretty lame imap server!

At any rate, it ought to be possible to overcome. I'll paste some 
snippets from my config files:

snippets from ~/.offlineimaprc:

[general]
accounts = david1, etc....
pythonfile = /home/david/.offlineimap/david-scripts.py

[Account david1]
localrepository = local-david1
remoterepository = remote-david1

[Repository remote-david1]
folderfilter = exclude_junk_folders
foldersort = mycmp

# note you can use foldersort to check the important folder(s) first

snippets from /home/david/.offlineimap/david-scripts.py:

junk_re = re.compile('^junk ', re.IGNORECASE)

def exclude_junk_folders (fn):
	return not junk_re.match(fn)

(Continue reading)

Ajeet | 24 Sep 2008 14:27
Picon

Re: HUGE list of folders

Hey David,

Thanks for the response. I tried this and unfortunately it did not work.
I think it is first building the list of all the mailboxes, and then
trying to filter them out. It is this that takes most of the time. I
have pasted debug IMAP code below. I get a line like this for every
file, and there are way too many of those. 

Is there some way to skip this list creation entirely?

// DEBUG OUTPUT

  DEBUG[imap]:   16:32.76   matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('LIST', ' (\\NoInferiors
\\Marked) "/" nl-home/packages/carmel-3.0/shared/ilinenostream.hpp', '(\\NoInferiors
\\Marked) "/" nl-home/packages/carmel-3.0/shared/ilinenostream.hpp')

// END DEBUG OUTPUT

On Wed, 24 Sep 2008 00:53:16 -0700, David L. Emerson wrote:
> Hi Ajeet,
> 
> Wow, that sounds like a pretty lame imap server!
> 
> At any rate, it ought to be possible to overcome. I'll paste some 
> snippets from my config files:
> 
> 
> snippets from ~/.offlineimaprc:
> 
> [general]
(Continue reading)

John Goerzen | 24 Sep 2008 14:42
Favicon

Re: HUGE list of folders

Ajeet wrote:
> Hi guys,
> 
> My imap server unfortunately lists all the files / folders in the home
> directory as an IMAP folder (I have symlinks to all sorts of package folders) .
> So while syncing, offlineimap takes a long time just to get the one folder that
> I really want to sync. This happens even if I specify the -f option. Is there
> someway to overcome this?

Probably you want the reference option listed in the sample config file.

-- John

> 
> Thanks.

intrigeri | 24 Sep 2008 16:32

Re: RFP: python-ssl -- SSL wrapper for socket objects

Hello,

Ben Voui wrote (27 Nov 2007 12:25:50 GMT) :
> Package: wnpp
> Severity: wishlist

> * Package name    : python-ssl
>   Version         : 1.12
>   Upstream Author : See URL
> * URL or Web page : http://pypi.python.org/pypi/ssl/
> * License         : Python (MIT-like)
>   Description     : SSL wrapper for socket objects

Good news: what=E2=80=99s needed to add SSL certificate verification
support[1] to offlineimap will probably[2] enter Debian soon.

[1] http://article.gmane.org/gmane.mail.imap.offlineimap.general/768
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D453101

In the meantime, it would be nice to have a FAQ explaining :
  - why offlineimap does not support this yet
  - how to workaround it (e.g. using stunnel between offlineimap and
    the IMAP server).

I might write such an FAQ entry one of these days.

Bye,
--=20
   <intrigeri <at> boum.org>
  | gnupg key  <at>  https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
(Continue reading)

Norbert Preining | 24 Sep 2008 21:55
Picon
Favicon
Gravatar

Re: HUGE list of folders

On Di, 23 Sep 2008, Ajeet wrote:
> Is there someway to overcome this?

If all your mail folders are below say ~/Mail add
	reference = Mail
to your remote repository entry.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining <at> logic.at>        Vienna University of Technology
Debian Developer <preining <at> debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
ESHER (n.)
One of those push tapes installed in public washrooms enabling the
user to wash their trousers without actually getting into the
basin. The most powerful esher of recent years was 'damped down' by
Red Adair after an incredible sixty-eight days' fight in Manchester's
Piccadilly Station.
			--- Douglas Adams, The Meaning of Liff

Ajeet | 25 Sep 2008 06:34
Picon

Re: HUGE list of folders

Hey,

This worked! I made a symlink to the spool file under the Mail
directory. 

Thanks !

On Wed, 24 Sep 2008 21:55:33 +0200, Norbert Preining wrote:
> On Di, 23 Sep 2008, Ajeet wrote:
> > Is there someway to overcome this?
> 
> If all your mail folders are below say ~/Mail add
> 	reference = Mail
> to your remote repository entry.
> 
> Best wishes
> 
> Norbert

--

-- 
Regards,
Ajeet

Michael Witten | 26 Sep 2008 17:08
Picon
Favicon

Nested Folders: sep = /

I like the idea of having OfflineIMAP organize
my folders into a hierarchy rather than having
a flat list of folders of the form This.Is.A.Folder.

However, what does good practice dictate?

Are there any problems with nested maildirs?

What if I inadvertently create Some.Folder.new?
won't that conflict with the Maildir format?

Basically, what wisdom does your experience provide?

Thanks!
Michael Witten

Michael Witten | 26 Sep 2008 17:43
Picon
Favicon

[PATCH] imaplibutil: Remove flagrantly bad use of private attribute

Frankly, the original code doesn't even make much sense, and
moreover it's not forward compatible with python 2.6, and
furthermore:

    DeprecationWarning: socket.ssl() is deprecated.

So, this commit is just a temporary fix.

Signed-off-by: Michael Witten <mfwitten <at> mit.edu>
---
 offlineimap/imaplibutil.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py
index 23ba654..27ed1fa 100644
--- a/offlineimap/imaplibutil.py
+++ b/offlineimap/imaplibutil.py
 <at>  <at>  -166,10 +166,7  <at>  <at>  def new_open_ssl(self, host = '', port = IMAP4_SSL_PORT):
         if last_error != 0:
             # FIXME
             raise socket.error(last_error)
-        if sys.version_info[0] <= 2 and sys.version_info[1] <= 2:
-            self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
-        else:
-            self.sslobj = socket.ssl(self.sock._sock, self.keyfile, self.certfile)
+        self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
         self.sslobj = sslwrapper(self.sslobj)

 mustquote = re.compile(r"[^\w!#$%&'+,.:;<=>?^`|~-]")
--

-- 
(Continue reading)


Gmane