-
Notifications
You must be signed in to change notification settings - Fork 114
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
WebUI From address selected incorrectly. #248
Comments
A lot of the time you reply from your own e-mail, and that is currently broken. |
Let me see if I understand this correctly.
You're replying to your own message, and you're now getting the address you're logged in as, but you want the webmail to select the same address as in the "From" header of your own message you replied to. The mechanism described above (look for known address in thread) would also solve this case. This seems like a reasonable and more helpful approach to address selection. May be worth checking how other mail clients are doing this. I think it may make sense to look through the thread messages from newest to oldest (not oldest to newest) for known addresses, so you can switch addresses if you want to. |
Yes, that is basically how I encountered it elsewhere. As very common use case is that you respond to a message, and then you respond again to your message where you are adding some new information. It is so common, I got hit by it several times after single day use. I respond a lot to a message thread adding new information. |
Ok, let's implement it that way. The required information is available in the webmail in the browser (at least when threaded view is on, but that should be a prerequisite). May take a little while before I get to it. If you're interested in trying to implement it, I could give pointers. |
I would be interested into looking at the code, but I would really need some pointers, seems like one huge file, went through it briefly. Is there an easy way to test UI on my existing mox install? |
You could create files webmail/webmail.{html,js} in the working directory Line 63 in 3d4cd00
Line 149 in 3d4cd00
Line 232 in 3d4cd00
Line 57 in 3d4cd00
But for development, I would suggest running "mox localserve". It runs It is indeed one big file, the structure won't be as obvious as if it would be in separate files. Things to look for are the "View" types and new.*View functions. I think you'll need to look at MsglistView and MsgitemView, they should have (or at least reference) the addressee information you're looking for. Line 3604 in 3d4cd00
Line 2361 in 3d4cd00
The addressees are in the Envelope field of a MessageItem (api.ts and its |
Sorry, I know this is an aside and not actually the point being discussed here, but this just caught my eye... Just to clarify, this works kind of like a template override? I just gave it a try by creating a /webmail/webmail.html file and restarting mox but didn't get my new file, but if that is how it is supposed to work then I will give it another go. |
From address should always contain address that received initial e-mail.
If I send message from thread and I am on my own mail, it will fallback to primary address.
The text was updated successfully, but these errors were encountered: