Skip to main content

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


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)

Uploaded Source

Built Distribution

mir.msmtpq-0.1.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page