Module: Mailmate::CLI::Send Private
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
‘mm-send` — send mail through MailMate’s ‘emate` CLI with a markdown body. Replaces the 6-line bash wrapper that previously lived at ~/.claude/skills/email/send-email. All flags pass through to `emate mailto`; `–markup markdown` is enforced.
Constant Summary collapse
- EMATE_PATH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"/Applications/MailMate.app/Contents/Resources/emate"
Instance Method Summary collapse
-
#run(argv) ⇒ Object
private
Returns the exit status of the spawned ‘emate` invocation.
Instance Method Details
#run(argv) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the exit status of the spawned ‘emate` invocation. Uses `system` (not `exec`) so the caller — and the test suite — can actually observe the result.
18 19 20 21 22 23 24 25 26 |
# File 'lib/mailmate/cli/send.rb', line 18 def run(argv) Mailmate::PlatformError.check_darwin!(component: "mm-send") unless File.executable?(EMATE_PATH) warn "mm-send: emate not found at #{EMATE_PATH}. Is MailMate installed?" return 1 end system(EMATE_PATH, "mailto", "--markup", "markdown", *argv) $?.exitstatus end |