-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Sending email on CL no longer works with neomutt -H - < message.txt #2606
Comments
er, I'm not sure what you're trying to achieve. # Just send the message
neomutt john.doe@example.com -s "subject" < message.txt # Allow you to edit the envelope and/or edit the email
neomutt john.doe@example.com -s "subject" -H message.txt In mutt, these two are identical: # Just send the message
mutt john.doe@example.com -s "subject" < message.txt
mutt john.doe@example.com -s "subject" -H - < message.txt The slight limit in the behaviour is due to NeoMutt being unable to distinguish two awkward CLI case. |
Thanks for the quick reply! As for what I was trying to achieve, my message already has the headers. I would prefer not to have to specify the "to" email address and the subject since it's already contained in message.txt. It's easy enough to write a wrapper that pulls out the subject and the "to" email address, so I don't mind the new behavior and am happy to change to it, but I just want to check that it's desired. To be clear, here is an example of "message.txt":
|
I think that being able to send an email where the "to:" and "subject:" are specified in the headers is a nice feature of Mutt. Is it possible to do it somehow in the new NeoMutt approach without repeating them in the command and without having to edit the email before sending? If needed, I can write a wrapper. I just wanted to double-check though that it's necessary since there aren't too many features that Mutt has that NeoMutt doesn't have, although I definitely understand that in some cases it's need to remove a feature to be able to fix bugs or add other features (as you mentioned above the related issues). Is this case one of those necessary sacrifices? |
@ngortheone Do you by chance have any thoughts on this issue? (I ask because I saw your commit 0ab694d) |
@scottkosty, I can't give you a good answer. My commit only updated man section, porting words from mutt's manual. One observation though. Manual says:
And your message txt has I believe this intentional corner case was introduced to prevent from accidentally sending an mbox file (mbox is a mail storage format that stores all emails in a single file) EDIT: neomutt will automatically add |
Thinking more about this, I think the error message could be a bit more user friendly. It silently discards your input, because it has "From" field in it. Then it tries to send an email, but there is no contents, and so you get IMHO there should be an explicit message saying something like to prevent confusion
|
@ngortheone Thanks for taking a look! I'm fine either way. We might want to just close this as "wontfix" and document this somewhere as a feature that Mutt has that NeoMutt does not have. Is there already such a list somewhere? |
Oops, I forgot to mention this issue in the commit message for 2cdc72a, and CC you in it too. Anyway, the issue has been fixed by that commit. |
Thanks a lot for your work on it! I'm looking forward to reviving one of my scripts. |
Expected Behaviour
I used to be able to send email with the following:
Actual Behaviour
This now gives the following error:
Note that message.txt is not empty; it is a valid message complete with headers.
How often does this happen?
When did it start to happen?
I can bisect if it it would help. Note that the following seems related: f9476b4, although I think that's just the error reporting. I don't think it was working for this use case before that commit; it just didn't give an error.
NeoMutt Version
The text was updated successfully, but these errors were encountered: