summaryrefslogtreecommitdiff
path: root/docs/muttdelay.txt
blob: a706291af77b35f7f30be475206022f41524e888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 msmtp
    You may use other command which can send an email instead. But this has
    been tested with msmtp only.

    It can be configured for example like this (change your configuration
    accordingly to fit your needs):

        cp /usr/share/muttdelay/msmtprc.example  ~/.msmtprc
        vim ~/.msmtprc

    And ensure that you can send mails like this:

        msmtp your@address.example.com <<< Hallo

    If it works, you can go on. Or if you want to use another command to
    send mails just edit

        /etc/default/muttdelay

    accordingly.

   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>