Damien Cassou | 25 May 17:26
Picon
Gravatar

Problem with imap.gmail.com SSL fingerprint

Hi,

when running offlineimap.py from the next branch, I get:

$ ./offlineimap.py -1
OfflineIMAP 6.5.3.1
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync GMail:
 *** Processing account GMail
 Establishing connection to imap.gmail.com:993
 ERROR: Server SSL fingerprint
'f3043dd689a2e7dddfbef82703a6c65ea9b634c1' for hostname
'imap.gmail.com' does not match configured fingerprint. Please verify
and set 'cert_fingerprint' accordingly if not set yet.
 *** Finished account 'GMail' in 0:00
 ERROR: Exceptions occurred during the run!
 ERROR: Server SSL fingerprint
'f3043dd689a2e7dddfbef82703a6c65ea9b634c1' for hostname
'imap.gmail.com' does not match configured fingerprint. Please verify
and set 'cert_fingerprint' accordingly if not set yet.

My configuration file just specifies a remote repository of type gmail.

Best,

--

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
(Continue reading)

Stephen Eglen | 19 May 22:10
Picon
Picon
Favicon

What happens when contents of a mail message change?

Thanks for offlineimap; I'm using it with mu4e, a new email client for
emacs (http://www.djcbsoftware.nl/code/mu/mu4e.html).

I'd like to investigate whether I can reliably delete attachments from
email, based on e.g. python scripts like
http://code.activestate.com/recipes/302086/

But I'm just wondering -- can offlineimap detect and sync cases when a
Maildir file has changed its content (e.g. after deleting an
attachment, or by adding a X-Tag: header).  Is it better to keep the
original filename, or create a new file with the edited message and
delete the original file?

Best wishes, Stephen

_______________________________________________
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

Sebastian Spaeth | 18 May 09:42
Picon

New release due next week

Hi all,

sorry I still haven't been able to catch up on the huge backlog of
email. I am in the process of applying for a job and have been traveling
like crazy.

I will push out the current "next" branch as the new release next week
unless something dramatically happens. It contains enought fixes and
features. Starting WEdnesday next week, I will have more time hopefully
(when job talks are over). All the emails are duefully stored in my
inbox and I'll go through all of them, promised.

THanks for your patience,
Sebastian

_______________________________________________
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

Eric Scheibler | 15 May 20:45
Picon

Problems with dovecot imap server

Hello,

on my server I've installed a dovecot imap server. Now I want to sync this
mailbox to my local machine. But dovecot doesn't create an inbox folder on
the server so the "cur", "new" and "tmp" folders are located in the mailbox
root directory (~/.maildir/). The problem is that offlineimap doesn't sync
this folders. Although my "cur" folder on the server contains more than
1000 mails the folder on the notebook is empty. All subfolders like
for example ~/.maildir/.news are synched correctly.

Is there anything I can do to fix this issue? I run debian squeeze,,
dovecot v1.1.15 and offlineimap v6.3.4-1 (from the debian testing
repository).

Thanks for help
Regards
Eric

_______________________________________________
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

Sriram ET. | 15 May 11:42
Picon
Gravatar

Moving to a new imap server

Due to a very strange manner in which our IT folks have managed a mail server migration, I am forced to deal with the following situation.


I was using offlineimap to sync my email with 'oldserver' (Lotus Domino) till now. I have to start using 'newserver' (on Courier) from now on. None of my email has been migrated from oldserver to newserver. However since I have all my mail on my local drive, I was hoping something along the following lines should work:

  1. Update .offlinerc RemoteRepository account details with credentials of newserver
  2. Update nametrans to deal with differences between Lotus and Courier
  3. Clear any synchronization state on Local so the next run will trigger a bulk copy from Local to newserver
  4. Live happily ever after.
Can someone suggest if this approach can work in practise or theory? If yes, what exactly should I do for Step 3?

Thanks.
Karra
_______________________________________________
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 Dennis | 14 May 18:40

Error in UIDMapping file

Hello OfflineIMAP people

Here's some information about an error with OfflineIMAP 6.5.2.1 which 
might possibly be helpful for future debugging.

I started getting the following error for one user, but not for others:

----------------------------------------------------------
OfflineIMAP 6.5.2.1
   Licensed under the GNU GPL v2+ (v2 or any later version)
*** Processing account 1and1
Establishing connection to imap.1and1.co.uk:993
Establishing connection to localhost:143
ERROR: While attempting to sync account '1and1'
   need more than 1 value to unpack
*** Finished account '1and1' in 0:00
----------------------------------------------------------

I then noticed that 
~/offlineimap-meta/Repository-LocalIMAP/UIDMapping/INBOX contained this 
near then end:

----------------------------------------------------------
[many lines deleted]
18424:800
18425:801
18427:803
18428:804
22526:3308

18430:806
[end of file]
----------------------------------------------------------

Note the blank line before the last line; yes it's really blank, just 
two 0x0A characters in a row.

So I deleted the blank line, and it all started working again.  (In 
fact, in came up with errors the first few times, but settled down 
eventually -- I can provide details of the errors if anyone's interested.)

I don't know what caused the blank line in the first place.  The run 
before the first error message completed normally.

Would it be possible for the code that reads the UIDMapping files to be 
made more robust, so that it doesn't just give up at the first sign of 
trouble?

cheers

Chris
--

-- 
Chris Dennis                                  cgdennis <at> btinternet.com
Fordingbridge, Hampshire, UK

_______________________________________________
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

Tracy Reed | 11 May 22:06

Reliability and shutdown

I've been using offlineimap for about 5 months. It seems to be the right tool
for the job and does exactly what I want (bi-directional IMAP sync so I can
read mail locally). 

My only complaint is that it has been terribly unreliable.

The primary sympton is that it simply stops synching one or more accounts and I
miss time-sensitive emails for hours.  It is very difficult to reproduce the
problem or describe exactly what is going on. 

Versions:

CentOS 5.8
offlineimap 6.5.3.1 (from git)
Python 2.7.2

When I run offlineimap from cron I eventually (after a number of hours) end up
with several offlineimap processes running. And one or more accounts are not
being synched. Sometimes I try running it in a terminal set to autorefresh
instead of cron. Both methods seem to have issues.

Right now I somehow have two offlineimap processes running:

treed     3818  5326  4 May09 pts/10   01:57:13 /usr/local/bin/python /usr/local/bin/offlineimap
treed    21508  3818  0 May10 pts/10   00:00:00 /usr/local/bin/python /usr/local/bin/offlineimap

One seems to have the other as the ppid. Does it normally fork itself off? I
don't recall seeing this before.

Here are a couple of straces:

[treed <at> home ~]$ strace -p 3818
Process 3818 attached - interrupt to quit
select(0, NULL, NULL, NULL, {0, 45000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)

[treed <at> home ~]$ strace -p 21508
Process 21508 attached - interrupt to quit
futex(0x6389390, FUTEX_WAIT_PRIVATE, 0, NULL
 <unfinished ...>

If I ctrl-c a running offlineimap it says:

Terminating NOW (this may take a few seconds)...

and then never exits. If I send it a USR2 signal it says it will terminate
after next sync and occasionally does so but often does not.

Is there some better way to troubleshoot this?

Here's my sanitized config:

[general]
accounts = user2 <at> domain4.com, user1 <at> domain1.com, user2 <at> domain2.com, user1 <at> domain3.com, user1 <at> domain2.com
ui = ttyui
fsync = true
status_backend = sqlite
maxsyncaccounts= 10

[Account user1 <at> domain2.com]
localrepository = user1-Local
remoterepository = user1-Remote
autorefresh = 2
quick = 30
holdconnectionopen = false
keepalive = 60
presynchook = imapfilter
postsynchook = notmuch new

[Repository user1-Local]
type = Maildir
localfolders = ~/Maildir/user1.domain2

[Repository user1-Remote]
type = IMAP
remotehost = imap.domain2.com
remoteuser = user1 <at> domain2.com
remotepass = pass1
ssl = yes
sslcacertfile = /etc/pki/tls/cert.pem

[Account user2 <at> domain2.com]
localrepository = Local
remoterepository = Remote
autorefresh = 2
quick = 30
holdconnectionopen = true
keepalive = 60
presynchook = imapfilter
postsynchook = notmuch new

[Repository Local]
type = Maildir
localfolders = ~/Maildir/user2.domain2

[Repository Remote]
type = IMAP
remotehost = imap.domain2.com
remoteuser = user2 <at> domain2.com
remotepass = pass2 
ssl = yes
sslcacertfile = /etc/pki/tls/cert.pem

[Account user1 <at> domain3.com]
localrepository = domain3-Local
remoterepository = domain3-Remote
autorefresh = 2
quick = 30
holdconnectionopen = false
keepalive = 60
presynchook = imapfilter
postsynchook = notmuch new

[Repository ed-Local]
type = Maildir
localfolders = ~/Maildir/ed

[Repository ed-Remote]
type = IMAP
remotehost = mail.domain3.com
remoteuser = user1 <at> domain3.com
remotepass = pass3
ssl = yes

[Account user1 <at> domain1.com]
localrepository = domain1-Local
remoterepository = domain1-Remote
autorefresh = 2
quick = 30
holdconnectionopen = false
keepalive = 60
presynchook = imapfilter
postsynchook = notmuch new

[Repository domain1-Local]
type = Maildir
localfolders = ~/Maildir/domain1

[Repository domain1-Remote]
type = IMAP
remotehost = mail.domain1.com
remoteuser = user1
remotepass = pass1
ssl = yes
#sslcacertfile = /home/user1/cacert.crt
maxconnections = 3

[Account user2 <at> domain4.com]
localrepository = domain4-Local
remoterepository = domain4-Remote
autorefresh = 2
quick = 30
holdconnectionopen = false
keepalive = 60
presynchook = imapfilter
postsynchook = notmuch new

[Repository domain4-Local]
type = Maildir
localfolders = ~/Maildir/domain4

[Repository domain4-Remote]
type = IMAP
remotehost = imap.domain4.com
remoteuser = user2 <at> domain4.com
remotepass = pass4
ssl = yes
maxconnections = 3

Any help in making this work reliably is greatly appreciated!

--

-- 
Tracy Reed
_______________________________________________
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
Konrad Hinsen | 11 May 09:18
Favicon
Gravatar

Unicode in folder names

I have been running offlineimap 6.3.2.1 for a while without any problems.
Now I am setting it up on a new machine, using the latest release, 6.5.3.1,
and I am running into problems with the IMAP folder names that contain
non-ASCII characters. Both machines run MacOS X 10.6.

IMAP uses utf-7 for encoding folder names. Offlineimap doesn't handle
this, but recipes for fixing this are easy to find,
e.g. http://piao-tech.blogspot.fr/2010/03/get-offlineimap-working-with-non-ascii.html.
That's what I was using with 6.3.2.1.

For 6.5.3.1, I had to modify my setup because of the new requirement for
reverse name translation. Inverting the re-encoding is of course no more
difficult, so this looked easy. The problem is just that it doesn't work.

I verified that back-and-forth translation reproduces the original
folder name, so that is not the cause of my trouble. Further investigation
showed that the name of the local folder generated by offlineimap
is wrong; it does not match the utf-8 string that my nametrans function
returns.

Before digging deeper into this, I wonder if anyone else has already
looked into this? I also wonder what the long-term plans for offlineimap
are concerning international characters. The best solution would be to
have offlineimap handle UTF-7 foldernames automatically. Is this something
that just didn't get done yet, or is there a good reason for not doing it?

Konrad.

_______________________________________________
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

Keith Amidon | 10 May 19:20

Memory leak?

I've been using 6.3.5.1 for a week or two, since Gentoo upgraded the
unstable package.  I've noticed that offlineimap seems to accumulate
memory on my machine.  I measured memory usage using top after a fresh
startup and a single synchronization, after several synchronizations,
and then again after a few hours:

        After      After       Several    
        1st sync   ~5 syncs    hours later
VIRT:   1045m      1381m       1637m      
RES:    273m       701m        981m       
SHR:    4440       4448        4452       

Memory usage seems to continue to grow as I leave it running.
Restarting once a day or so keeps memory usage within "reasonable" (<
1GB) limits but is less then ideal...

I've got about 165k messages being synchronized between Google and a
local maildir.  My offlineimaprc is included below with the sensitive
bits obfuscated.   This was not happening before I upgraded to 6.5.3.1,
or at least memory usage didn't increase so much over the period of a
week or so that I noticed there was a problem.

Any suggestions for how to best debug?

             Thanks, Keith

[general]

metadata = ~/.offlineimap
accounts = GMail
maxsyncaccounts = 1
ui = blinkenlights
ignore-readonly = no
socktimeout = 30
fsync = false

[mbnames]

[ui.Curses.Blinkenlights]

statuschar = *

[Account GMail]

localrepository = LocalGMail
remoterepository = RemoteGMail
autorefresh = 5
quick = 10
postsynchook = /home/keith/mail/bin/update-notmuch

[Repository LocalGMail]

type = Maildir
localfolders = ~/mail/gmail-sync
sep = /
restoreatime = no

[Repository RemoteGMail]

type = Gmail
remoteuser = foo <at> somecompany.com

_______________________________________________
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

Andrea Crotti | 10 May 14:48
Picon

uid validity

Hi everyone, synchronizing a Gmail account I get this error:

  UID validity problem for folder INBOX (repo Gmail-Local) (saved 42; 
got 1335894665); skipping it. Please see FAQ and manual on how to handle 
this.

I also tried to follow the instructions here 
http://wiki.yobi.be/wiki/Offlineimap (removing the validityfolder file) 
but it still
gives the same error.

Any idea how to fix it?

_______________________________________________
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

Cameron Simpson | 10 May 02:13
Picon
Picon
Gravatar

how to debug an exception during a sync?

I've got my offlineimap wrapper working now, but I fear I have a
problematic message file that is causing trouble. How do I figure out
which message may be involved?

Setup:
  offlineimap-6.5.2.1
  dovecot remote server (via ssh tunnel)
  maildirs on the remote server; I have direct access to the message files
      involved if I can figure out which one is at issue

A transcript from the run ends like this:

    Syncing MD/out: IMAP -> Maildir
    Syncing MD/spool: IMAP -> Maildir
    Copy message 1387 (1 of 12107) cameron <at> cskk.local:143:MD/out -> mail
    Copy message 1388 (2 of 12107) cameron <at> cskk.local:143:MD/out -> mail
    ERROR: string index out of range
    Thread 'Copy message from cameron <at> cskk.local:143:MD/out' terminated with exception:
    Traceback (most recent call last):
      File "/opt/offlineimap/lib/offlineimap/threadutil.py", line 155, in
    run
        Thread.run(self)
      File
    "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
    line 505, in run
        self.__target(*self.__args, **self.__kwargs)
      File "/opt/offlineimap/lib/offlineimap/folder/Base.py", line 295, in
    copymessageto
        message = self.getmessage(uid)
      File "/opt/offlineimap/lib/offlineimap/folder/IMAP.py", line 244, in
    getmessage
        data = data[0][1].replace("\r\n", "\n")
    IndexError: string index out of range

    Last 1 debug messages logged for Copy message from cameron <at> cskk.local:143:MD/out prior to exception:
    thread: Register new thread 'Copy message from cameron <at> cskk.local:143:MD/out' (account 'mail::cameron <at> cskk.local:143')
    ERROR: Exceptions occurred during the run!
    ERROR: string index out of range

How might I proceed?
--

-- 
Cameron Simpson <cs <at> zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

If all else fails, immortality can always be assured by spectacular error.

_______________________________________________
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