I tried to solve my problem (below) using offlineimap instead of imap. But now I have another problem. It seems that after adding an X-Label to a message locally, offlineimap doesn't propagate that change back to the mail server. I end up with messages that are labelled in my laptop but not in my work computer. I guess (haven't tried) that the reciprocal problem also exist and that messages labelled in my server wouldn't be labelled in my laptop. Is there a way to convince offlineimap to synch messages after being 'edited' through mutt?
Best regards, Luis On Sat, Jan 05, 2013 at 10:01:54PM -0600, Luis Mochan wrote: > I have an occasional but somewhat annoying problem. I made a program > to edit X-Labels to somewhat emulate the behavior of gmail. When using > my mail account remotely I use IMAP to access a dovecot server. Everything > works > fine, but occasionally, the network fails and the connection is broken > before I sync the mailbox. When I open the mailbox again, there are two > versions of each edited message: the original that had been marked for > deletion but had not been deleted and had lost the mark, and the same > message but with the X-Label in place. Currently I order my mailbox by > threads, and when I find a message that is x-labeled and marked as > duplicate, I know that I can (manually) delete its predecessor. Is > there some mutt expression that would allow me to select all those > messages automatically? The expression ~= doesn't work, as it > correspond to the successors, i.e., the messages that have been > labelled and that I want to keep. > > Best regards, > Luis > > > -- > > o > W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) > Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ > Apdo. Postal 48-3, 62251 | (*)/\/ \ > Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ > > O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- o W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ O< ascii ribbon campaign - stop html mail - www.asciiribbon.org