Racket API for the Mutt email client.
This package does not support Windows.
through your local package manager.
On Mac, try brew install mutt
On Ubuntu, use sudo apt-get install mutt
Run raco pkg install mutt.
When prompted, enter your email address and name.
(optional) make further edits to your ~/.muttrc file.
If you delete your ~/.muttrc file, running raco pkg update mutt will rebuild it interactively.
Alternatively, the mutt/setup module provides a hook for reconfiguring mutt.
Checks that the mutt utility is available and creates a default ~/.muttrc file if none exists.
This function sends prompts to current-output-port and expects responses on current-input-port.
Send an email to the address to with subject subject and message body message.
If message is a filename, the email contains the contents of the file.
Otherwise, the email contains the string message.
Send carbon copies to the cc addresses; these are public recipients of the same message.
Send blind carbon copies to the bcc addresses; the to address will not see the identity of bccs.
Attach the files in the list attach*.
For each recipient address in to*, send an identical email message and include the same cc’s, bcc’s, and attachments.
|> (mutt* "all my friends are heathens"|
| #:to* pilots|
| #:subject "helpme")|
Returns #f if str does not match a basic regular expression for email addresses.
Value that the API can convert to a sequence of email addresses.
Value or sequence that the API can flatten into a sequence of email addresses.
Coerce a sequence of values into a flat list of email addresses.
Ignores strings in pre*
that do not pass the email?
predicate (but prints a warning to current-output-port
Raises an argument error if pre*
contains a path that does not exist on the local filesystem.
Contract for an argument that specifies a file (or files) to attach to an email.
2.1 Options and Parameters
Default subject to use in email addresses.
List of addresses to cc by default.
List of addresses to bcc by default.
List of files to attach by default.
Path to your Mutt
, calls to mutt
will never send emails.
This is useful for debugging —
set the parameter to #false
and subscribe to the mutt-logger
at the 'info
to see the system commands that would be invoked.
that reports events with the topic 'mutt
3 Typed API
Typed clients should import the mutt/typed module.
Q. Can racket-mutt accept certificates on the command line?
No. Run mutt on the command line to manually approve certificates.
(Make sure to "always accept" the certificate.)