offlineimap3 icon indicating copy to clipboard operation
offlineimap3 copied to clipboard

syncing custom imap keywords to remote

Open nklb opened this issue 4 years ago • 1 comments

General informations

  • system/distribution (with version): Fedora 5.13.12-200.fc34.x86_64
  • offlineimap version (offlineimap -V): v7.3.0
  • Python version: v3.9.6

Configuration file offlineimaprc

[general] accounts = private

[Account private] localrepository = plocal remoterepository = premote

[Repository plocal] type = Maildir localfolders = ~/imail/private customflag_a = my_keyword

[Repository premote] type = IMAP remotehost = ... remoteuser = ... remotepass = ... readonly = False

Hi, I am experimenting with the customflag feature for IMAP keywords (not Gmail tags) that is explained from line 612 on in offlineimap.conf. It has nicely worked to get keywords from my IMAP mailbox to my local mail repository. I was wondering if and how I can use this to pass keywords to untagged messages and then send these information back to the server. I made a naive attempt and renamed the file corresponding to the email, i.e. 16306489...66bd4c0b013af27acac3:2,S -> 16306489...66bd4c0b013af27acac3:2,Sa This was recognized when I ran offlineimap afterwards: Adding flag a to 1 messages on folder But I couldn't see the added keyword in other mail programs.

I have also found this old wiki entry but am not sure how it relates to editing the flags in the configuration file.

nklb avatar Sep 03 '21 09:09 nklb

I can confirm that the wiki entry does work from IMAP to maildir, haven't tried the other way around.

michael-o avatar Oct 25 '25 22:10 michael-o