<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<div>For testing my config I tried to sync the 'sent' "folder" of a gmail box to<br>
update a copy of my actual local copy so that if it fails it doesn't mess it<br>
up. I usually use getmail and the pop server of gmail to get new emails. As<br>
the job was slow and there were a lot of emails I left it running and at some<br>
point I did my usual emails check and noticed that getmail was redownloading<br>
some messages from the 'sent' folder. These messages were those already<br>
processed by offlineimap during its progression at the time getmail was<br>
running. So it seems offlineimap is changing messages flag to 'new' once<br>
processed. I was expecting a change from 'new' to 'read' to unread messages<br>
and no change to read ones. Obviously I interrupted the process. The same<br>
problem occurs when using offlineimap with '-q' option.<br>
<br>
When I say "message processed" I just mean that offline imap checked it to<br>
see whether or not it already exists locally and copy if not.<br>
<br>
I should also mention that offlineimap actually copied all messages it found<br>
disregarding whether or not they were already existing locally. By exploring<br>
that folder with mutt I noticed a lot of duplicate messages appeared.<br>
<br>
Below is a copy of my offlineimap config file:<br>
<br>
<br>
[general]<br>
accounts = gmail<br>
ui = ttyui<br>
<br>
[Account gmail]<br>
localrepository = gmaillocal<br>
remoterepository = gmailremote<br>
<br>
[Repository gmaillocal]<br>
type = Maildir<br>
sep = '/'<br>
##localfolders = ~/gmail<br>
localfolders = /tmp/gmail<br>
# nametrans... <br>
nametrans = lambda folder: re.sub("sent", "\[Gmail\]/Sent Mail", folder)<br>
<br>
[Repository gmailremote]<br>
type = IMAP<br>
remotehost = imap.gmail.com<br>
sync_deletes = no<br>
ssl = yes<br>
sslcacertfile = /etc/ssl/certs/ca-certificates.crt<br>
remoteport = 993<br>
remoteuser = heavytull<br>
folderfilter = lambda folder: folder in ["\[Gmail\]/Sent Mail"]<br>
nametrans = lambda folder: re.sub("\[Gmail\]/Sent Mail", "sent", folder)<br>
</div>
<br>
</div>
</body>
</html>