~rjarry/aerc-discuss

2 2

Non-interactive aerc for scripting

Details
Message ID
<EeSvMG6vefIamInYgP4FCx1st0PWXktMp7OZnpXeX3bVblSI5obDIrqtE7T8FEofC2lFXLQkKP_UYAv1-Fx_tDcf3yXhrFPT09N4jMPWIy4=@protonmail.com>
DKIM signature
pass
Download raw message
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
Details
Message ID
<D50IJHSOAMRL.2P8P5I8C0UEHM@ferdinandy.com>
In-Reply-To
<EeSvMG6vefIamInYgP4FCx1st0PWXktMp7OZnpXeX3bVblSI5obDIrqtE7T8FEofC2lFXLQkKP_UYAv1-Fx_tDcf3yXhrFPT09N4jMPWIy4=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
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
Details
Message ID
<D50J9JL6FHRY.E7B8R1SYV46O@gmail.com>
In-Reply-To
<D50IJHSOAMRL.2P8P5I8C0UEHM@ferdinandy.com> (view parent)
DKIM signature
pass
Download raw message
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".
Reply to thread Export thread (mbox)