Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mir.msmtpq-0.2.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mir.msmtpq-0.2.0.tar.gz.

File metadata

  • Download URL: mir.msmtpq-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mir.msmtpq-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2debe9b52be04226ee9694a8217d98cec148779fd788d1ba3af216c20ee5cf80
MD5 55624b5ad455fc6351cf861faa707e2f
BLAKE2b-256 975dee2aae34a871a7f165586602d48dff33800addd8ac73b31bffed943ce0d7

See more details on using hashes here.

File details

Details for the file mir.msmtpq-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mir.msmtpq-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b203634e22117747593928221c0844fe343e851b35b0ebde0b5c68a0b67e438
MD5 bae88c1ceea8069540e760ed8a164bba
BLAKE2b-256 f6dffb737e2fbd9824b5c460adde78ed3516ffbec0e3085f5c5877284362410b

See more details on using hashes here.

Supported by

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