A bash script to delay mails written via mutt
  • Makefile 59.8%
  • Shell 36.4%
  • Vim Script 3.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Buetow 11ab013bc0 docs: add deprecation notice
Amp-Thread-ID: https://ampcode.com/threads/T-019cc858-2bdd-716d-8668-e1fb47137cf3
Co-authored-by: Amp <amp@ampcode.com>
2026-03-07 14:54:07 +02:00
bin initial version of the template 2013-03-22 03:45:09 +01:00
debian Change github name 2015-05-23 21:41:27 +01:00
docs Blow it out your ear. 2014-07-05 01:00:12 +02:00
src fix synopsis 2014-07-05 08:47:34 +02:00
.version New release 2014-07-05 00:24:27 +02:00
Makefile using mutt instead of msmtp 2014-07-05 00:23:53 +02:00
README.txt docs: add deprecation notice 2026-03-07 14:54:07 +02:00

DEPRECATED
    This project is no longer maintained. No further updates, bug fixes, or
    feature additions will be made. Use at your own risk.

NAME
    muttdelay - A bash script to delay mails written via mutt

WTF?
    This is for scheduling the sending of mails for a specific future time.
    Unlinke postponing a mail which does not involve the scheduling.

  How it works
   Configuring Vim
    Do the following:

        cp /usr/share/muttdelay/muttdelay.vim ~/.vim/plugin/
        echo 'map ,L :call MuttDelay()<CR>' >> ~/.vimrc

   Configuring Cron
    And create an hourly cronjob such as:

        0 * * * * /usr/bin/muttdelay cron

   Configuring Mutt
    Configure mutt your way and ensure that you can send mails like this:

        mutt -s subject example@example.com < mail.txt

    If it works, you can go on.

   Use it
    Open mutt, compose an email. Use Vim as your editor. After finishing
    writing your mail don't close Vim, but run

        ,L

    and the mail gets scheduled for sending for a later time. You can now
    leave vim without sending the mail via mutt directly.

    The mail itself is saved to

        ~/.muttdelay/SENDTIMESTAMP.COMPOSETIMESTAMP

    The cron job checks if there is any SENDTIMESTAMP lower than the current
    unix time stamp. And if so, all matching mails are sent.

LICENSE
    See package description or project website.

AUTHOR
    Paul C. Buetow - <http://paul.buetow.org>