elizagamedev / mujmap

Bridge for synchronizing email and tags between JMAP and notmuch
GNU General Public License v3.0
63 stars 11 forks source link

Messages tagged 'sent' removes 'inbox' tag #47

Open nickwynja opened 1 year ago

nickwynja commented 1 year ago

I sometimes send emails to myself and it seems like mujmap applies the sent tag but also remove the inbox tag (and I'm guessing but haven't verified that it'll remove any other tag as well).

The outcome is that this message is only shown in Sent and doesn't show in my Inbox in neomutt, which is configured to use the inbox tag.

I've tested using sent = "" in mujmap.toml which does keep the inbox tag on the message but has the expected side-effect of not syncing the tag with the Sent folder on Fastmail.

Expected outcome is that a message could be both sent and have other tags.

nickwynja commented 1 year ago

A current workaround is to create an identity in Fastmail that doesn't store messages in Sent and then remember to send from this identity.

elizagamedev commented 1 year ago

This issue sounds familiar. I think I remember there being some interaction with Fastmail that made certain inboxes mutually exclusive when they shouldn't have been, or something like that... Not sure that's what's happening here, though. Nothing jumps out to me as obviously causing the issue after scanning over the relevant bits of code. I think logging at trace level might be helpful in ruling some things out.