Skip to main content

Queue messages for msmtp

Project description

Script for queuing messages for sending with msmtp.


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.


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mir.msmtpq, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size mir.msmtpq-0.1.0-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mir.msmtpq-0.1.0.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page