List Info

Thread: nametrans and dovecot




nametrans and dovecot
country flaguser name
Germany
2008-03-14 14:05:32
Dear all,=0D
=0D
I managed to get offlineimap working and it appears to do
what I want -=0D
with a non-Python-scripted workaround...=0D
=0D
As a few others mentioned before in...=0D
=0D
   http://lists.co
mplete.org/offlineimapxxx/2006/07/msg00006.html.gz=0D
   http://lists.co
mplete.org/offlineimapxxx/2007/01/msg00005.html.gz=0D
   http://lists.co
mplete.org/offlineimapxxx/2007/10/msg00006.html.gz=0D
=0D
...the Dovecot IMAP server works with dotted sub directories
of Maildir. =
I=0D
did some "quick&dirty" symlinks to resolve
this temporarily:=0D
=0D
mesziv8:~> ls -al Maildir/=0D
total 96=0D
drwx------ 10 meszi users  4096 Mar 14 18:48 .=0D
drwxr-xr-x 11 meszi users  4096 Mar 14 19:14 ..=0D
drwx------  5 meszi users  4096 Mar 14 08:21 .Drafts=0D
drwx------  5 meszi users  4096 Mar 14 10:36 .Junk=0D
drwx------  5 meszi users  4096 Mar 14 08:21 .Sent=0D
drwx------  5 meszi users  4096 Mar 14 10:55 .Templates=0D
drwx------  5 meszi users  4096 Mar 14 10:59 .Trash=0D
lrwxrwxrwx  1 meszi users    27 Mar 14 18:47 Drafts
->=0D
/home/meszi/Maildir/.Drafts=0D
lrwxrwxrwx  1 meszi users    19 Mar 14 18:38 INBOX ->
/home/meszi/Maildir=
=0D
lrwxrwxrwx  1 meszi users    25 Mar 14 18:47 Junk ->=0D
/home/meszi/Maildir/.Junk=0D
lrwxrwxrwx  1 meszi users    25 Mar 14 18:48 Sent ->=0D
/home/meszi/Maildir/.Sent=0D
lrwxrwxrwx  1 meszi users    30 Mar 14 18:48 Templates
->=0D
/home/meszi/Maildir/.Templates=0D
lrwxrwxrwx  1 meszi users    26 Mar 14 18:48 Trash ->=0D
/home/meszi/Maildir/.Trash=0D
drwx------  2 meszi users  4096 Mar 14 10:58 cur=0D
-rw-------  1 meszi users    17 Mar 14 07:50
dovecot-keywords=0D
-rw-------  1 meszi users   899 Mar 14 10:57
dovecot-uidlist=0D
-rw-------  1 meszi users   320 Mar 14 10:59
dovecot.index=0D
-rw-------  1 meszi users 35840 Mar 14 10:59
dovecot.index.cache=0D
-rw-------  1 meszi users  3404 Mar 14 10:59
dovecot.index.log=0D
drwx------  2 meszi users  4096 Mar 14 10:57 new=0D
-rw-------  1 meszi users    39 Mar 14 10:53
subscriptions=0D
drwx------  2 meszi users  4096 Mar 14 10:57 tmp=0D
=0D
What I am wondering about is:=0D
Is there no other possibility than using some Python script?
I mean, it=0D
seems to be a common issue. Maybe it is worth including an
option to=0D
"offlineimap" in general that treats ~/Maildir as
the default INBOX folde=
r=0D
and its dotted subfolders ~/Maildir/.Sent etc.
accordingly.=0D
=0D
Anyway, whatever John's decisions will be ... I am going to
try getting a=
=0D
bit more familiar with Python and the provided add-in
scripts to have a=0D
somewhat better solution on that than mine. =0D
=0D
CU,=0D
Daniel.=0D
=0D





Re: nametrans and dovecot
country flaguser name
United States
2008-03-14 14:52:24
On Fri, 14 Mar 2008, Daniel Meszaros wrote:

> Dear all,=0D

Your email's lines all end with these weird =0D characters,
as if your 
email client is doing something terribly wrong with
quoted-printable 
encoding.

> =0D
> I managed to get offlineimap working and it appears to
do what I want -=0D
> with a non-Python-scripted workaround...=0D

Why avoid Python?

> As a few others mentioned before in...=0D
> =0D
>   http://lists.co
mplete.org/offlineimapxxx/2006/07/msg00006.html.gz=0D
>   http://lists.co
mplete.org/offlineimapxxx/2007/01/msg00005.html.gz=0D
>   http://lists.co
mplete.org/offlineimapxxx/2007/10/msg00006.html.gz=0D

These links are broken.

I suggest doing what I do, anyway - use my nametrans.  It's
easy and 
correct. (-:  There's a message in the archives about it.

-- Asheesh.

-- 
Mirrors should reflect a little before throwing back
images.
 		-- Jean Cocteau



Re: nametrans and dovecot
country flaguser name
Germany
2008-03-18 10:59:01
Hi,

Asheesh Laroia schrieb:
> On Fri, 14 Mar 2008, Daniel Meszaros wrote:
> 
>> Dear all,=0D
> 
> Your email's lines all end with these weird =0D
characters, as if your 
> email client is doing something terribly wrong with
quoted-printable 
> encoding.

Sorry, this is Roundcube which I use when I am not at home.
It's newly
set up so I did not yet recognize the wrong configuration.
Maybe it has
something to do with the not yet disabled HTML mail
creation. Anyway,
now I am using Thunderbird which should be fine.


>> I managed to get offlineimap working and it appears
to do what I want -=0D
>> with a non-Python-scripted workaround...=0D
> 
> Why avoid Python?

I don't want to avoid Python itself. But if someone wants to
do a short
test of it and gets in troubles immediately -because of his
lack of
knowledge about Python- then it might be better providing
another
possibility, maybe with a module/addon/plugin for
"problematic" IMAP
servers.

I myself do not yet understand completely what your Python
script does
exactly so I'd -especially if I don't have the time to learn
this and
just want to have a simple _solution_- maybe leave
"offlineimap"
untouched then and try something else.


>> As a few others mentioned before in...=0D
>> =0D
>>   http://lists.co
mplete.org/offlineimapxxx/2006/07/msg00006.html.gz=0D
>>   http://lists.co
mplete.org/offlineimapxxx/2007/01/msg00005.html.gz=0D
>>   http://lists.co
mplete.org/offlineimapxxx/2007/10/msg00006.html.gz=0D
> 
> These links are broken.

Yes, I saw the links in the list this way and decided not to
propagate
"complete.org" and replaced it with
"xxx". The last one points to your
solution.


> I suggest doing what I do, anyway - use my nametrans. 
It's easy and 
> correct. (-:  There's a message in the archives about
it.

Ok, maybe you can help me understanding what your Python
"addon" exactly
does...

In 
http://svn.asheesh.org/svn/public/conf/offlineimaprc you
include the
additional Python script in line 3. In line 20 you access
the function
"backwardsnametrans" (and accordingly in line 29
and 30 the other ones).

The function "backwardsnametrans" checks if the
folder name is has no
"." -then it assumes INBOX- or if it is some
".subfolder" -then it
strips the leading dot-.

The function "myfoldercmp" orders the folder
synchronization after a
given priority, and the priority is defined in the variable
"prioritized". Right? What is the benefit of
ordering? To have at least
the most necessary folders synced if the connection drops?

Then function "mynametrans" which translates local
"dotted" stuff back
to IMAP, so it is the opposite of
"backwardsnametrans", or not?

As far as I understood -if I understood it right- the
"myfoldercmp" is
in general not necessary to have a Maildir++/Dovecot IMAP
server
synchronized properly using "offlineimap". I could
leave it with both
other functions to get around the "symlink
workaround" I found.

I'd suggest to take this over as somewhat like
"dovecot_addon.py" in the
general distribution of "offlineimap".

Ciao and thanks for your help up to now,
Daniel.




Re: nametrans and dovecot
country flaguser name
United States
2008-03-18 14:08:13
On Tue, 18 Mar 2008, Daniel Meszaros wrote:

> Hi,
>
> Asheesh Laroia schrieb:
>> On Fri, 14 Mar 2008, Daniel Meszaros wrote:
>>
>>> Dear all,=0D
>>
>> Your email's lines all end with these weird =0D
characters, as if your
>> email client is doing something terribly wrong with
quoted-printable
>> encoding.
>
> Sorry, this is Roundcube which I use when I am not at
home. It's newly 
> set up so I did not yet recognize the wrong
configuration. Maybe it has 
> something to do with the not yet disabled HTML mail
creation. Anyway, 
> now I am using Thunderbird which should be fine.

Cool.  I'm happy to help you diagnose its configuration
issues off-list. 
(-:

>>> I managed to get offlineimap working and it
appears to do what I want 
>>> -=0D with a non-Python-scripted
workaround...=0D
>>
>> Why avoid Python?
>
> I don't want to avoid Python itself. But if someone
wants to do a short 
> test of it and gets in troubles immediately -because of
his lack of 
> knowledge about Python- then it might be better
providing another 
> possibility, maybe with a module/addon/plugin for
"problematic" IMAP 
> servers.

That makes sense.

>
> I myself do not yet understand completely what your
Python script does 
> exactly so I'd -especially if I don't have the time to
learn this and 
> just want to have a simple _solution_- maybe leave
"offlineimap" 
> untouched then and try something else.

Hopefully I can explain what it does, and then you can feel
comfortable 
using it. (-:

>>> As a few others mentioned before in...=0D
>>> =0D
>>>   http://lists.co
mplete.org/offlineimapxxx/2006/07/msg00006.html.gz=0D
>>>   http://lists.co
mplete.org/offlineimapxxx/2007/01/msg00005.html.gz=0D
>>>   http://lists.co
mplete.org/offlineimapxxx/2007/10/msg00006.html.gz=0D
>>
>> These links are broken.
>
> Yes, I saw the links in the list this way and decided
not to propagate
> "complete.org" and replaced it with
"xxx". The last one points to your
> solution.

Ah, okay.

>> I suggest doing what I do, anyway - use my
nametrans.  It's easy and 
>> correct. (-:  There's a message in the archives
about it.
>
> Ok, maybe you can help me understanding what your
Python "addon" exactly 
> does...

Let's give it a shot!

> In 
http://svn.asheesh.org/svn/public/conf/offlineimaprc you
include the
> additional Python script in line 3. In line 20 you
access the function
> "backwardsnametrans" (and accordingly in line
29 and 30 the other ones).

Right-o.

> The function "backwardsnametrans" checks if
the folder name is has no
> "." -then it assumes INBOX- or if it is some
".subfolder" -then it
> strips the leading dot-.

Precisely.

> The function "myfoldercmp" orders the folder
synchronization after a
> given priority, and the priority is defined in the
variable
> "prioritized". Right? What is the benefit of
ordering? To have at least
> the most necessary folders synced if the connection
drops?

Precisely!

> Then function "mynametrans" which translates
local "dotted" stuff back 
> to IMAP, so it is the opposite of
"backwardsnametrans", or not?

Exactly.

The idea is that nametrans translates from IMAP->local,
and 
backwardsnametrans translates local->IMAP.

> As far as I understood -if I understood it right- the
"myfoldercmp" is
> in general not necessary to have a Maildir++/Dovecot
IMAP server
> synchronized properly using "offlineimap". I
could leave it with both
> other functions to get around the "symlink
workaround" I found.

I don't know about the symlink workaround.

> I'd suggest to take this over as somewhat like
"dovecot_addon.py" in the 
> general distribution of "offlineimap".

I honestly agree!  I think that it would be *excellent* if
offlineimap 
offered some reasonable built-in configuration options for
different 
common scenarios with different servers.  SquirrelMail did
that, and it 
was a huge help for me when I was getting started with mail
systems.

John Goerzen, what do you think?

-- Asheesh.

-- 
God shows his contempt for wealth by the kind of person he
selects to
receive it.
 		-- Austin O'Malley



[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )