Complete.Org: Mailing Lists: Archives: offlineimap: March 2004:
Re: UID's, again, but with a twist :-)
Home

Re: UID's, again, but with a twist :-)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: Re: UID's, again, but with a twist :-)
From: Magnus Therning <magnus-work@xxxxxxxxxxxx>
Date: Thu, 11 Mar 2004 11:45:31 +0100

On Mon, Mar 08, 2004 at 08:41:27AM -0600, John Goerzen wrote:
>On Mon, Mar 08, 2004 at 02:49:04PM +0100, Magnus Therning wrote:
>> My first post after 'discovering' offlineIMAP in the latest issue of
>> LinuxJournal :-)
>> I have read both the manpage and the mail discussions on the UID
>> problem. Now I am seeing some interesting behaviour in using mutt and
>> offlineIMAP together:
>> 
>>  The validity of the UID for folders differs between runs!
>
>First question: what IMAP server is in use on the server side?
courier-imap 1.4.3

>This is almost always a server-side problem.  Here's an excerpt from
>the offlineimap manpage:

As I mentioned I already read that, and the mailing list postings. It
doesn't make me any wiser though :-(

>One other possibility is that something on the client side is
>destroying OfflineIMAP's UID validity file -- but that is quite
>unlikely.

What would the expected behaviour be of modifying the UID as cached by
offlineimap?

I did the following:

 1. Turned off fetchmail on the server.
 2. Cleaned out the cached UIDs as described in the manpage on the
    client
 3. Ran offlineimap --> no errors
 4. Ran offlineimap again --> UID invalid on one box
 5. Modified the cached UID value in ~/.offlineimap/Repository-<remote
    location>/FolderValidity to hold the value that offlineimap reported
    getting
 6. Re-ran offlineimap --> UID invalid on the same box

Output:

 therning@pc67148596[~].$ rm -rf .offlineimap/Account-work
 therning@pc67148596[~].$ rm -rf .offlineimap/Repository-work_rem
 therning@pc67148596[~].$ offlineimap
 therning@pc67148596[~].$ offlineimap
 WARNING: UID validity problem for folder INBOX.sent.2003-06 (saved 1074565220; 
got 1074565550); skipping it
 therning@pc67148596[~].$ offlineimap
 WARNING: UID validity problem for folder INBOX.sent.2003-06 (saved 1074565550; 
got 1074565220); skipping it

As you can see the UID it got changed (the values were swapped).

/M

-- 
-----------------------------------------------------------------------
Magnus Therning                 Philips Research Laboratories Eindhoven
Phone: +31 40 2745179           (OpenPGP: 0x4FBB2C40)

Idealism is fine, but as it approaches reality the costs become
prohibitive.
     -- William Buckley Jr.
-- 
-----------------------------------------------------------------------
Magnus Therning                 Philips Research Laboratories Eindhoven
Phone: +31 40 2745179           (OpenPGP: 0x4FBB2C40)

A closed mouth gathers no foot.
     -- Simon Murcott

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAUENLYcKlB0+7LEARAqFIAJ44/bf2GiU6/lQgwTlcPkTBLR99mwCeNHC/
0Pto6tf05J6tYJP9GUzYDns=
=dZGd
-----END PGP SIGNATURE-----




[Prev in Thread] Current Thread [Next in Thread]