Giter Club home page Giter Club logo

mu4e-goodies's Introduction

Goodies for mu4e

mu4e (mu for emacs)is a full-feature email client runs inside emacs. mu4e-goodies provide several useful extensions/hacks of mu4e.

  • Signature switch by rules
  • Highlight the VIP's mails
  • Check automatically if you forget to add your attachments
  • Much convenient way to manipulate tags
  • Helper function for create shortcut to send files using mu4e in Finder/Explorer
  • Many useful hacks

Setup

You could have all features by:

(require 'mu4e-goodies)

Otherwise you could pick up any part of this extension by:

(require 'mu4e-goodies-signature-switch) ;; or other modules

mu4e-goodies-signature-switch

This extension provides simple signature switch function for mu4e.

Usage:

  1. Put signatures you want to use to mu4e-goodies-signatures
(setq mu4e-goodies-signatures '((default . "default signature")
                                (work . "signature for work")))
  1. Press Ctrl-c s(predefined key-binding) to switch between signatures when composing.
  2. By customizing mu4e-goodies-signature-switch-rules, signatures could be switched automatically according to the receiver's email address.
(setq mu4e-goodies-signature-switch-rules
      '((".*@work.com" . work)
        (".*@gmail.com" . default)))

mu4e-goodies-actions

Some useful actions.

  1. Create org todo/meeting from current message. This is bounded to n/m in message view.
  2. Show the whole thread of current email. This is bound to o in headers and message view by default.
  3. View the current email's html part by mu4e-html2text-command. This is bound to t in message view.
  4. Quick search all emails sent by current email's sender. This is bound to x in message view.

mu4e-goodies-keyword-alert

Inform you when your mail contains some keywords while the coordinated feature is not found (e.g. the mail body contains "attachment" while it doesn't have any attachments).

By far, the extension support 2 keywords:

  1. check-attach: Whether or not the mail has an attachment
  2. check-cc: Whether or not the mail has at least one Cc recipients

To use this extension, you may have to customize the variable mu4e-goodies-keywords.

mu4e-goodies-tags

Provide usable functions for tag emails.

  1. Action(a) to add tags in message view
  2. Shortcut(G) to mark to add tags in header view
  3. Show tags in header view like: [TAG] Subject...

mu4e-goodies-header-color

Highlights specified keywords in header view. You should customize the value of mu4e-goodies-special-field-keywords like the following to make it work.

(setq mu4e-goodies-special-field-keywords '((:from . ("[email protected]" "[email protected]" ...))
                                            (:subject . ("regexp_for_keyword" ...))))

mu4e-goodies-compose-with-attachments

This extension provide helper function for you to create shortcut to send mails with attachments in file manager of macOS/Windows.

In macOS, create a quick operation in Automator with the following shell script:

files="'("

for f in "$@"
do
  files+="\"${f}\" "
done
files+=")"

/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -nc --display ns -e "(mu4e-goodies-compose-with-attachments ${files})"

mu4e-goodies-hacks

This extension provides hacks to change some default behaviors of mu4e.

  1. Allow a mu4e-view buffer detached from mu4e-header so that it will be retained in a seperated window or frame. Press ' under mu4e-view mode will detach the current message into a new frame. " will detach into a window below.
  2. Always put attachements to the bottom of mail
  3. Quickly add last query to bookmarks by pressK under header view.
  4. Make the highlight of message in header view retained even when viewing the message, so we can distinguish which mail is read now.
  5. Fontify the signatures
  6. Using "\M-d" to quickly delete the whole address in to/cc field no matter the positon of the cursor
  7. Remove extra blanklines which is annoying in mails generated by Outlook/Exchange
  8. Quickly add(M)/remove(M)/search(k) flag to mails
  9. Break the cjk string contained in queries into bi-grams so that xapian could handle. https://researchmap.jp/?page_id=457
  10. Fontify signatures which start with -- line.

mu4e-goodies's People

Contributors

panjie avatar

Stargazers

 avatar  avatar Eli avatar stardiviner avatar Martin Klimeš avatar Nowa Zhu avatar AM avatar Colin McLear avatar Justin Silverman avatar Ben Mezger avatar Brian Spector avatar Daniel Fleischer avatar Kazuki Yoshida avatar  avatar StrawberryTea avatar Zen Monk Alain M. Lafon avatar Nicolas P. Rougier avatar  avatar Tasmo avatar  avatar Michael-David Fiszer avatar Akira Komamura avatar Fox Kiester avatar  avatar Nicholas Knoblauch avatar Matthew Kettlewell avatar Brian Danilko avatar Fritz Mahnke avatar Thomas Louvigné avatar David Duncan avatar

Watchers

Thomas Louvigné avatar David Duncan avatar James Cloos avatar  avatar  avatar Brian Danilko avatar Yu-Fu Fu avatar

mu4e-goodies's Issues

Feature Request: Add Search by X-Keyword (Tags)

Hey Love the work, I really like the tags addon to the goodies. I would like to be able to search by the tags added. As I'm a Lisp super Noob, do you have any pointers on how to do this >?

Push on MELPA

I found your plugin sometime ago and I would like to use it in my configuration.
The only thing stopping me from doing it is that the package is not available on melpa.
Will you consider fixing the problems mentioned in your PR to melpa for the package to be merged?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.