syncing custom imap keywords to remote
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.
I can confirm that the wiki entry does work from IMAP to maildir, haven't tried the other way around.