Queue messages for msmtp
Project description
Script for queuing messages for sending with msmtp.
Usage
msmtpq <args>
Use just like msmtp or sendmail. pymsmtpq will queue the email, but WON’T SEND THEM. You will have to send them manually:
msmtpq --manage send
This allows you to control when emails are sent, allowing you to queue up emails when you don’t have Internet access.
Emacs configuration
This section describes how to use pymsmtpq with Emacs to queue emails and send asynchronously with msmtp and Emacs’s sendmail support.
Configure Emacs to use pymsmtp:
(setq message-send-mail-function 'message-send-mail-with-sendmail sendmail-program "~/bin/msmtpq") ; Change the path as appropriate
Add a hook to flush the queue after sending:
(add-hook 'message-sent-hook (lambda () (start-process "msmtpq-flush" nil "msmtpq" "--manage" "s")))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mir.msmtpq-0.2.0.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for mir.msmtpq-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b203634e22117747593928221c0844fe343e851b35b0ebde0b5c68a0b67e438 |
|
MD5 | bae88c1ceea8069540e760ed8a164bba |
|
BLAKE2b-256 | f6dffb737e2fbd9824b5c460adde78ed3516ffbec0e3085f5c5877284362410b |