In mutt, an email body can be sent by redirecting it into stdin.
```
$ neomutt "$email" -s "$TITLE" < "$email".txt
```
In aerc, I can't seem to find a non-interactive option.
```
$ echo "stdin won't be read" | aerc mailto:"$email"
```
As for why not use `sendmail`, it doesn't save sent mail in +Sent.
See https://github.com/marlam/msmtp/issues/179
-- Avid Seeker
On Sun Oct 20, 2024 at 01:46, Avid Seeker <avidseeker7@protonmail.com> wrote:
> In mutt, an email body can be sent by redirecting it into stdin.>> ```> $ neomutt "$email" -s "$TITLE" < "$email".txt> ```>> In aerc, I can't seem to find a non-interactive option.>> ```> $ echo "stdin won't be read" | aerc mailto:"$email"> ```>> As for why not use `sendmail`, it doesn't save sent mail in +Sent.> See https://github.com/marlam/msmtp/issues/179>> -- Avid Seeker
This has been requested a couple of times, we might even have a ticket for it.
If not, feel free to create it. Or maybe even send a patch :) I think we sort
of have decided already aerc should be able to do this.
Best,
Bence
--
bence.ferdinandy.com
On Sun Oct 20, 2024 at 11:07 AM CEST, Bence Ferdinandy wrote:
>> On Sun Oct 20, 2024 at 01:46, Avid Seeker <avidseeker7@protonmail.com> wrote:>> In mutt, an email body can be sent by redirecting it into stdin.>>>> ```>> $ neomutt "$email" -s "$TITLE" < "$email".txt>> ```>>>> In aerc, I can't seem to find a non-interactive option.>>>> ```>> $ echo "stdin won't be read" | aerc mailto:"$email">> ```>>>> As for why not use `sendmail`, it doesn't save sent mail in +Sent.>> See https://github.com/marlam/msmtp/issues/179>>>> -- Avid Seeker>> This has been requested a couple of times, we might even have a ticket for it.> If not, feel free to create it. Or maybe even send a patch :) I think we sort> of have decided already aerc should be able to do this.
For reference, there's also this patch (that needs a revision):
https://lists.sr.ht/~rjarry/aerc-devel/patches/53301
It reads a rfc822 message on stdin and opens a composer in aerc. So not
exactly what mutt does but "comparable".