From: Anachron <Anachron@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [Discussion] How to you integrate mblaze in your email stack ?
Date: Fri, 16 Apr 2021 07:48:35 +0200 [thread overview]
Message-ID: <20210416054835.BEdX2VYC5JkVoatOUcjQwir4hzQnjpidt_Y3UcnmIvY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-184@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 980 bytes --]
New comment by Anachron on mblaze repository
https://github.com/leahneukirchen/mblaze/issues/184#issuecomment-820924647
Comment:
Hey @sucrecacao this might be a bit late, but I compose messages with `mcom` and then send them via `msmtp`.
I use a few wrapper scripts to change my `mblaze` & `msmtp` default account.
mfrom
```
test "$#" -eq 0 && awk -F ':' '$1 == "Local-Mailbox" {print $2}' ~/.mblaze/profile | xargs && exit
acc=$(sed -n "/^account[ ]*${1}$/,/^$/p" ~/.msmtprc | awk '$1 == "from" {print $2}')
if test -n "${acc}"; then
sed -i "s|^Local-Mailbox.*|Local-Mailbox: ${acc}|" ~/.mblaze/profile
sed -i "s|^Outbox.*|Outbox: ${HOME}/usr/mls/${1}/OUTBOX|" ~/.mblaze/profile
! test -e ~/.mblaze/signature || rm ~/.mblaze/signature
! test -f "${HOME}/usr/mls/${1}/signature" || ln -s "${HOME}/usr/mls/${1}/signature" ~/.mblaze/signature
sed -i "s|account default.*|account default: ${1}|" ~/.msmtprc
printf 'Switched to "%s"\n' "${acc}"
fi
```
next prev parent reply other threads:[~2021-04-16 5:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-09 13:05 [ISSUE] " sucrecacao
2021-04-16 5:48 ` Anachron [this message]
2021-04-20 12:01 ` sucrecacao
2021-04-20 12:12 ` Anachron
2021-04-20 12:13 ` Anachron
2021-04-20 12:13 ` Anachron
2021-11-05 18:08 ` Vouivre
2021-11-05 19:52 ` Anachron
2021-11-05 19:53 ` Anachron
2021-11-05 20:25 ` Vouivre
2022-10-12 13:55 ` Shugyousha
2022-10-12 13:55 ` Shugyousha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210416054835.BEdX2VYC5JkVoatOUcjQwir4hzQnjpidt_Y3UcnmIvY@z \
--to=anachron@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).