Queue messages for msmtp
Project description
Script for queuing messages for sending with msmtp.
Usage
pymsmtpq <args>
Use just like msmtp or sendmail. pymsmtpq will queue the message, but WON’T SEND THEM. You will have to send them manually:
pymsmtpq --manage s
Send all queued messages:
pymsmtpq --manage h
Print management help.
Configuration
Edit the constants in the source file.
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/pymsmtpq") ; Change the path as appropriate
Add a hook to flush the queue after sending:
(add-hook 'message-sent-hook (lambda () (start-process "pymsmtpq-flush" nil "pymsmtpq" "--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.1.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for mir.msmtpq-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e48e95675d0a6a4d68487a8a1f18ad1e1170b7a192b82be283551eef9fe8ddd |
|
MD5 | b2b3f6ce14286b0b21d8aefebb1773b4 |
|
BLAKE2b-256 | df339357f560e47d6446976c338f60baa90d55b48914b28d2f3326f4c5d48774 |