Skip to content
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

[Discussion] How to you integrate mblaze in your email stack ? #184

Open
sucrecacao opened this issue Sep 9, 2020 · 7 comments
Open

[Discussion] How to you integrate mblaze in your email stack ? #184

sucrecacao opened this issue Sep 9, 2020 · 7 comments

Comments

@sucrecacao
Copy link

Hello,

I'm currently migrating from classic web based email client to a more unix way to manage my email.

I'm so happy I found mblaze ❤️ , since I had hard time finding a "suckless" set of email tools where each does one thing and to it well. I don't want to use neomutt or aerc as I find those bloated and hard to hack.

But I still have trouble putting all the piece of the puzzle together.. So I was wondering if you those tool in your daily email workflow, what is your stack and how do you use it ? ( Link to script or dot-files highly appreciated :p )

In advances, thanks :)

@Anachron
Copy link

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

@sucrecacao
Copy link
Author

Thanks @Anachron !

How is your workflow to browse your email ?
Do you download them and navigate around with a file manager like nnn?

@Anachron
Copy link

Anachron commented Apr 20, 2021

Hello @sucrecacao,

I download them via mbsync and browse through them via mbrowse, a self-written script which uses fzf to display the header and content part of a mail, internally it uses mscan (like mless) to display a human-friendly mail-list.

It's a little bugged but I do plan on updating and making it public eventually.

Edit: The advantage of mbrowse is that I can easily reply, extract attachments and trash mails. I simply need to select one (or multiple) mails and confirm, then select the action and it's done.

@Vouivre
Copy link

Vouivre commented Nov 5, 2021

Hello @Anachron,

I'm also trying to find a good workflow with mblaze. Could you share your script mbrowse. Is it
available somewhere ?

@Anachron
Copy link

Anachron commented Nov 5, 2021

Not yet publicy available, it requires a few scripts from myself so that it knows where to read mails from.

I'll see if I can publish them somewhere for others to learn from.

@Vouivre
Copy link

Vouivre commented Nov 5, 2021

I'll see if I can publish them somewhere for others to learn from.

It would be nice! I slowly understand how it works, but perhaps sometimes I make everything complicated and an easy solution exists. I discovered for example mless and saw that it's possible to use colors.

So excepted the issues for mblaze, I only know those ressources:

https://voidlinux.org/news/2017/12/advent-mblaze.html
https://voidlinux.org/news/2017/12/advent-mblaze-part-2.html

It's a beginning, but at some point, some scripts are needed.

For the moment I also tend to use fzf in my scripts.

I will also publish my scripts if I get something functional.

@Shugyousha
Copy link
Contributor

Shugyousha commented Oct 12, 2022

I have written up some info about my setup here: https://sillymon.ch/posts/mmh-blaze-mail-setup.html

My usual email workflow looks like this.

$ mall # put all new emails into my selection
$ mless # start interactive pager to go through all my new mails one by one
$ mread # mark all the mails as read

Note that I have added a binding to delete the current email on D for the mless script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants