Giter Club home page Giter Club logo

mu4e-send-delay's Introduction

mu4e-send-delay

Purpose

Allowing to schedule mails to be sent at a later time. Thus enabling the ability to “undo send” mails.

I’m aware of benmaughen’s mu4e-delay but it was lacking features which I wanted. Thanks to him for the inspiration and to Kai Großjohann for gnus-delay.el which I copied code from. (mu4e-send-delay-add-delay-header)

Features:

  • mu4e context support
  • Saves scheduled mails to mu4e-drafts-folder
  • Uses an emacs timer to check Drafts if a mail is scheduled to be sent now
  • Allows easy edit of the X-Delay header in mu4e-compose-mode
  • Displays scheduled time in mu4e-view
  • Doesn’t send if mail is currently being edited
  • Works with attachments

Install

  1. Put mu4e-send-delay.el into a directory in you load-path and require it.
(add-to-list 'load-path "path/to/directory") ; that contains mu4e-send-delay.el
(require 'mu4e-send-delay)
  1. Setup mu4e-send-delay-setup
(mu4e-send-delay-setup) ; sets up headers to show up by default
  1. Initialize the timer that works through the Drafts to send delayed mails
(add-hook 'mu4e-main-mode-hook 'mu4e-send-delay-initialize-send-queue-timer)

Requirements

  • Has only been tested on Emacs 24.5 and later
  • With mu 0.9.16

Particularies

Right now the sent buffer will be re-encoded to utf-8, to avoid mml.el complaining upon a scheduled sent. If you notice your mails arriving garbled despite looking okay in the Drafts, please consider the following emacs options:

(prefer-coding-system 'utf-8)
(set-language-environment "UTF-8")

Recommended settings

Assigning the scheduled enabled send to C-c C-c

(add-hook 'mu4e-main-mode-hook (lambda ()
                                 (define-key mu4e-compose-mode-map
                                   (kbd "C-c C-c")
                                   'mu4e-send-delay-send-and-exit)))

Now you can C-c C-c every mail

Defaults

  • mu4e-send-delay-default-delay is set to “3m”
  • mu4e-send-delay-timer is set to every 2 minutes
  • mu4e-send-delay-include-header-in-draft is true
  • mu4e-send-strip-header-before-send is true
  • mu4e-internet-host-test is “www.gnu.org

Change these with

(setq mu4e-send-delay-default-delay "5m")

mu4e-send-delay's People

Contributors

bennyandresen avatar emonigma avatar bandresen avatar thaaophz avatar

Stargazers

Kostas Andreadis avatar AJ Armstrong avatar

Watchers

James Cloos avatar

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.