mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #94] [Enhancement] Compose emails with custom From: field #80
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krackout on GitHub (Feb 1, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/94
Originally assigned to: @d99kris on GitHub.
Multiple identities / smtp addresses is it possible, will it be added?
@d99kris commented on GitHub (Feb 5, 2022):
No, multiple identities is unfortunately out of scope for
nmail.The question / request has come up before (#4) but there are no plans to add it to the roadmap. Will proceed to close this issue.
@krackout commented on GitHub (Feb 5, 2022):
Actually I'm not asking about multiple accounts; sorry if I didn't phrase it correctly, I used Thunderbird's terminology (identities). The request is for different aliases - smtp addresses, on the same account. To be able to send using my registered aliases on the same account. Receiving apparently works.
I've already implemented multiple accounts the way you suggested, using multiple configurations - multiple instances of
nmailand it's working great. Probably I'll implement multiple aliases the same way, but it's a bit awkward to have the same mailbox opened three times in my case (3 aliases), just to be able to send with a different alias.@d99kris commented on GitHub (Feb 6, 2022):
Ah sorry, I misunderstood. So is this for just using different sender name and from-address, but the SMTP host, port, username and password stay the same?
(Or separate multiple SMTP accounts - which could be different SMTP server host, username, etc?)
@krackout commented on GitHub (Feb 6, 2022):
Exactly, different sender name and from-address, but the SMTP host, port, username and password stay the same.
Usually the way implemented on MUAs is, when composing a new mail, you can edit from field, when replying, the from field is already filled in (but editable) with the receiving alias/smtp address.
@d99kris commented on GitHub (Feb 7, 2022):
Ok, got it! Yes this makes sense to support, assuming a simple user interface. Currently
nmailcompose editor supports toggle of editing "rich headers" withctrl-r. It currently just unhidesBcc:field, but I suppose we could show an editableFrom:field in rich header mode too. Aside from manual editing, it could support lookups in the normal address book initially, and possibly eventually having its own "address book" remembering only old from-addresses used. Or lookups from some config file. I assume it's kind of key not to need to repeatedly type out the custom from-address to use.I don't have time to look into this right now, but I'll leave the feature request here and hopefully come to it soon.
Thanks, yeah it rings a bell - I have manually edited the
From:field when editing emails in emacs once upon a time. :)@d99kris commented on GitHub (Mar 5, 2022):
Support for custom from: field has been added in above commit.
The field is shown when rich headers is enabled in the compose editor. Rich headers are toggled on/off with
ctrl-r.@krackout commented on GitHub (Apr 11, 2022):
I'm using this feature, it works. But checking on the headers of the e-mail received at the other end, I notice that
Sender:andReturn-Path:fields point to the original, not to the custom e-mail address.On the contrary, using custom
From:in Thunderbird, the receiver end e-mail has noSender:field, justFrom:andReturn-Path:which are filled with the custom e-mail address, not the original.I tested using the same mail account and custom e-mail.
The sent e-mails either in
nmailorThunderbirdsent folder, sent by either MUAs, present no noticeable differences. It's in the receiver's inbox that the difference appears.For example, sending using
nmail, original e-mail, original@mail.com, custom, custom@mail.com.The e-mail received will have these headers:
Sending using
thunderbird,(no
Sender:field)The latter is preferable (for me at least) - perhaps it's not desirable in some cases both addresses to be revealed in headers. I'm not reopening the issue, the main goal is achieved. Yet if you think it's easy to be done and not out of scope why not.
@d99kris commented on GitHub (Apr 11, 2022):
Hi @krackout - thanks for the feedback. Let me re-open the issue and do some investigation to see what is considered best practise and whether
nmailcan support similar tothunderbird.@Kabouik commented on GitHub (Jun 10, 2022):
It is a nice addition but I would prefer if
nmailwouldn't focus on this new field first when composing a new email. There can't be as many users wanting to edit their default identity (< 100% of users) as users wanting to fill a recipient email address (basically 100% of users), so I believe it would be better if the cursor defaulted to theTo:field when composing a new message.@krackout commented on GitHub (Jun 10, 2022):
@Kabouik it's a good point, but
from:field is shown only whenRich headersare enabled (^R shortcut). You can disable them and problem solved. Unless you needbcc:to be available for all e-mails.@d99kris commented on GitHub (Jun 18, 2022):
I put
From:beforeTo:for "compose" to be consistent with the "message view", and I didn't really consider the default cursor position.I agree with @Kabouik it makes sense to default the "compose" cursor position to the
To:field. Let me take a look at adjusting that - hopefully a minor fix.@d99kris commented on GitHub (Jun 25, 2022):
With commit
f19c6fdthe default cursor position for rich headers is now theTo:field.@d99kris commented on GitHub (Nov 29, 2022):
Will proceed to move all feature requests into Discussions section, for a clearer separation of bugs and feature requests.