-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lieer + git send-email creates "broken" threads. #198
Comments
I spent a bit more time digging into this.
The Message-Id of the first mail is rewrote by google into something like:
Which, obviously, breaks the some people seem to complain here and there that this is indeed happening to them when using the gmail API... but I couldn't find a reliable source of information on this "feature". Not sure there's an easy fix in lieer... not sure there's a fix at all? |
Think a fix would require the In-Reply-To of the following messages to be updated with the new id. Seems like a lot of hassle? We could override it in gmi, but it would probably still be difficult to make git-send-email able to pass that information to gmi. |
Yeah, I do not see an easy way to fix it... unless google stops behaving likes this, I guess git-send-email + gmi is a no-go. |
I just checked both with The result seems to be that no matter what, sending with smtp preserves message-IDs and sending via the API creates new ones. So, in the process of ditching my app-specific passwords, I'll rather teach msmtp oauth. I'm wondering if it makes sense to teach lieer's remote.py to share the tokens so that there is only one config (using my own client secret, of course), rather than scripting around google's oauth.py for msmtp. |
It looks like this might be related to the format of the message-id:
maybe git-send-email can be configured to do this? |
My message-id's are of that form (as produced by alot, e.g. The API returns the MID, but at that point the sent message is not in the notmuch db yet (only after sync). So, gmi could either:
Or hope for GMail to change its behaviour :) |
Gmi adds the message (with the new id) to the db when it is sent, if that helps. |
Ah, sure, I completely missed that I'm still wondering whether we have a confirmed example of a message sent through the API with unchanged MID, i.e. whether there is a simple way to "conform". |
søn. 17. okt. 2021, 16:45 skrev Michael J Gruber ***@***.***>:
Gmi adds the message (with the new id) to the db when it is sent, if that
helps.
Ah, sure, I completely missed that get_content() does that. So it adds
the message as returned from the API. At that point send() still has the
original e-mail object eml, can compare the MIDs and could store the
original MID e.g. as a property in the notmuch db so that, in turn, it is
available if send() fails to find a MID when it parses In-Reply-To
headers.
Yes, or also printed out. The following messages need their in reply to
modified.
I'm still wondering whether we have a confirmed example of a message sent
through the API with unchanged MID, i.e. whether there is a simple way to
"co
From the comments on the stack overflow Q's it seems like it is not
possible when using the API.
… |
Hello.
Just trying out lieer 1.3 and I'm wondering if anyone is using 'gmi send' with git send-email and has encountered issues with threads?
email clients such as mutt or alot see the first mail as "standalone" and the following messages correctly grouped by thread.
The In-Reply-To and References in the subsequent mails are correct and point to the first message id.
Though, lieer complains that it cannot find the parent message when sending the subsequent mails:
I tried wrapping gmi send with
gmi sync && notmuch new
to force an update of the database and maybe help in finding the parent message but to no avail.I'll keep digging and update here if I have something worth sharing.
Example output:
gitconfig:
The text was updated successfully, but these errors were encountered: