martin f krafft | 4 Sep 2007 16:05

Re: why not use IMAP FLAGS?

also sprach Jan Hudec <bulb <at> ucw.cz> [2007.09.02.1453 +0200]:
> author and date -- and the other pertains to relation of user to the document
> -- folder it is in, whether it was read, replied, needs attention, for
> documents the filename etc.
> 
> And the question is, which kind are the tags we want to design?
For me, it's "the other": tags relate a mail to other processes in
my life.

> But if tags are user-relation attributes -- and I am inclined to
> think they are, because they are generalization of folders --
> storing them in headers feels wrong.
> 
> One way to decide the question above is: If I forward a message to
> somebody else, should the tags go along? I believe they should
> not, which is why they should not be headers, because those would.

Good point. This could be solved by using namespaces such that your
tags could never conflict with mine, but on the other hand you may
not want me to know what you tag your mail as. Then again, my mutt
does not forward headers other than the ones I tell it to.

Tags are metadata "about" mail messages as wholes, each mail being
an object that you should not really have to look into. Thus,
metadata should be stored separately. But with offline
synchronisation in mind, this means that we need to find a way to
transport such information via IMAP, which does not seem fit for the
task right now, at all.

And getting IMAP to cater for those needs is going to take a decade,
(Continue reading)

intrigeri | 4 Sep 2007 17:40

SSL certificate verification ?

Hello,

is it possible to ask offlineimap to verify the IMAP server's SSL
certificate against a trusted CA, in order to prevent
man-in-the-middle attacks ?

If not, I might write a patch providing such an option, if the SSL
implementation used by offlineimap allows it.

(Sure, I could use preauthtunnel and ssh, but I'd prefer not to.)

Ciao,
--

-- 
  intrigeri <intrigeri <at> boum.org>

martin f krafft | 4 Sep 2007 21:29

Re: why not use IMAP FLAGS?

also sprach Jan Hudec <bulb <at> ucw.cz> [2007.09.04.2043 +0200]:
> The problems are with unclear semantics for whether the keywords
> should stop being listed if they are no longer used on any message
> and their limited number caused by lack of matching feature in
> maildir.
and that they're stored per-folder. Not sure of the implications,
but I'd have assumed per-account or per-message to make way more
sense. But I guess it depends on how you do things and how pedantic
you are. Two folders may both have the same 'foo' keyword and in
IMAP terms, those are then identical.

> > Storing them in filenames might be possible. Offlineimap already
> > stores metadata in those, but storing utf-7-encoded tags in there
> > might just make file names grow too long.
> 
> Dovecot seems to (I didn't test it, but judging from the description) store

It stores the first 26 flags in the filename according to the
Maildir standard.

OfflineIMAP actually does something else and produces files like:

  1187228464_0.15933.piper,U=70571,FMD5=af1cd994dfcb9286c394d142687ff5a0:2,S

so it stores fields like U(IDL) and file MD5 in the filename for
faster operation. I just think storing tags there will make
unbearably long filenames and cause other problems.

> I believe changing xattr would change ctime just as any other attribute
> change of the attribute, which should be enough for synchronization.
(Continue reading)

John Goerzen | 4 Sep 2007 22:53
Favicon

Re: SSL certificate verification ?

On Tue September 4 2007 10:40:29 am intrigeri wrote:
> Hello,
>
> is it possible to ask offlineimap to verify the IMAP server's SSL
> certificate against a trusted CA, in order to prevent
> man-in-the-middle attacks ?
>
> If not, I might write a patch providing such an option, if the SSL
> implementation used by offlineimap allows it.

Originally, Python's standard SSL module did not support this.  The 
non-standard ssleay module would.

If this is different today, I would welcome such a patch.

-- John

Jean-Baptiste Quenot | 5 Sep 2007 15:30
Gravatar

Re: Synchronization Issue (Folders not deleted)

This is surprising because I did the same and nothing got deleted
on the server.

Are you using OfflineImap 4.0.16 like me?
--

-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

Haris Koutsouris | 6 Sep 2007 07:47

offlineimap_5.99.2 not running

Hello everyone,

It seems I have a problem running the 5.99.2 version of offlineimap. I have 
been running succesfully 4.0.16 for some time, but no luck with the new one.
The error i get is :
./offlineimap.py
Traceback (most recent call last):
  File "./offlineimap.py", line 20, in ?
    from offlineimap import init
  File "/home/harisk/bin/offlineimap/offlineimap/init.py", line 20, in ?
    from offlineimap import imapserver, repository, folder, mbnames, 
threadutil, version, syncmaster, accounts
  File "/home/harisk/bin/offlineimap/offlineimap/imapserver.py", line 20, in ?
    from offlineimap import imaplibutil, imaputil, threadutil
  File "/home/harisk/bin/offlineimap/offlineimap/imaplibutil.py", line 19, 
in ?
    import re, string, types, binascii, socket, time, random, subprocess, sys, 
os
ImportError: No module named subprocess

I suspect i am missing some python module since my system is pretty old.
 python -V
Python 2.2.2

and the system is redhat 9.
Is my python version adequate? Is the a python module missing? where can i 
find it, if possible ?

Thanks a lot.

(Continue reading)

Jean-Baptiste Quenot | 6 Sep 2007 09:38
Gravatar

Re: Local copy of message corrupt

* John Goerzen:

> On Tue August 21 2007 3:24:19 am Jean-Baptiste Quenot wrote:
>
> > Hi there,
> >
> > Thanks  for the  great program,  it saves  life!  The  tool is
> > very  powerful, so  powerful that  I already  came across  the
> > [1]unexpected mass-deletion of remote messages.
> >
> > Today I also notice a strange  thing: some new messages on the
> > IMAP  server  are  perfectly  valid, but  the  local  copy  is
> > corrupt.   The message  locally contains  one byte  (usually a
> > number such as '3' or '9').
>
> I  do recall  occasionally hearing  about that,  but I  think it
> was  years  ago.  One  of  the  annoying things  about  Python's
> imaplib.py, unfortunately.

The problem persists.

Can you  please elaborate just enough  so that I can  diagnose the
problem by myself?  I know how to program in Python but by looking
at imaplib.py  I'm a  bit lost.  Shall  I debug  IMAP4.fetch() for
example?  What method  do you think is the culprit?   Or is it the
whole imaplib that sucks?

Thanks for your time,
--

-- 
     Jean-Baptiste Quenot
(Continue reading)

Vincent Beffara | 6 Sep 2007 09:59
Picon

Re: offlineimap_5.99.2 not running


Hi,

> ImportError: No module named subprocess
>=20
> I suspect i am missing some python module since my system is pretty old=
.
>  python -V
> Python 2.2.2
>=20
> and the system is redhat 9.
> Is my python version adequate? Is the a python module missing? where ca=
n i=20
> find it, if possible ?

You suppose right - 'subprocess' was apparently introduced in python
2.4, if I believe this PEP:

  http://www.python.org/dev/peps/pep-0324/

I can testify that the same happens on python 2.3. So your best bet is
to upgrade python to at least 2.4. Maybe there is a compatibility module
available somewhere, but upgrading should be easier than finding it ...

  /vincent

--=20
Vincent Beffara
UMPA - ENS-Lyon
46 all=E9e d'Italie
(Continue reading)

Jean-Baptiste Quenot | 12 Sep 2007 11:57
Gravatar

Re: Local copy of message corrupt

* Jean-Baptiste Quenot:

> The problem persists.
>
> Can you please elaborate just enough  so that I can diagnose the
> problem  by  myself?   I  know  how to  program  in  Python  but
> by  looking  at  imaplib.py  I'm  a bit  lost.   Shall  I  debug
> IMAP4.fetch()  for example?   What method  do you  think is  the
> culprit?  Or is it the whole imaplib that sucks?

I don't know if it helps to find the root cause, but it seems that
most  of  the  time,  this  problem  happens  when  I  post  to  a
mailing-list.  Here is an example scenario: I post to offlineimap,
I keep  my sent message  in the  offlineimap mailbox.  And  then I
receive a  copy of this message  from the mailing-list, and  it is
stored in the  "offlineimap" mailbox on the remote  server, thus I
should have a duplicate message locally, but most of the time this
copy is empty (one byte).

Does it help?
--

-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

intrigeri | 15 Sep 2007 13:32

Re: SSL certificate verification ?

Hello,

John Goerzen wrote (04 Sep 2007 20:53:59 GMT) :
>> is it possible to ask offlineimap to verify the IMAP server's SSL
>> certificate against a trusted CA, in order to prevent
>> man-in-the-middle attacks ?
>>
>> If not, I might write a patch providing such an option, if the SSL
>> implementation used by offlineimap allows it.

> Originally, Python's standard SSL module did not support this.
> The non-standard ssleay module would.

> If this is different today, I would welcome such a patch.

Such support entered Python SVN trunk two weeks ago, and will be in
Python 2.6 :
http://mail.python.org/pipermail/python-checkins/2007-August/061867.html
The related doc is there : http://docs.python.org/dev/library/ssl.html

I=E2=80=99ll have a look and may write the needed patch, if and only if I c=
an
find a clean way to run Python SVN on Debian lenny.

Ciao,
--=20
  intrigeri <intrigeri <at> boum.org>
  | gnupg key  <at>  http://intrigeri.boum.org/intrigeri.asc
  | Did you exchange a walk on part in the war
  | for a lead role in the cage?
(Continue reading)


Gmane