autark-cli 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autark.mjs +7 -1
- package/package.json +1 -1
package/autark.mjs
CHANGED
|
@@ -1130,6 +1130,10 @@ async function mailReply(rest, mode) {
|
|
|
1130
1130
|
const creds = requireAgentmailCredentials()
|
|
1131
1131
|
const messageId = required(opts['message-id'] || opts.message_id || opts._[0], '--message-id')
|
|
1132
1132
|
const body = mailBody(opts)
|
|
1133
|
+
// Reply addresses the SENDER of the target message. Following up on your
|
|
1134
|
+
// own last message therefore self-sends unless you override the recipient.
|
|
1135
|
+
// --to forces who receives the reply (the follow-up case).
|
|
1136
|
+
if (opts.to !== undefined) body.to = listOpt(opts.to, '--to')
|
|
1133
1137
|
const endpoint = mode === 'reply-all' ? 'reply-all' : 'reply'
|
|
1134
1138
|
const result = await agentmailRequest('POST', `/inboxes/${encodeURIComponent(creds.inboxId)}/messages/${encodeURIComponent(messageId)}/${endpoint}`, body)
|
|
1135
1139
|
const action = await maybeLogMailAction(opts, {
|
|
@@ -1702,7 +1706,9 @@ function mailUsage() {
|
|
|
1702
1706
|
|
|
1703
1707
|
setup --prefix <name> [--force]
|
|
1704
1708
|
send --to <email[,email]> --subject <s> [--text @body.txt] [--html @body.html] [--cc <e>] [--bcc <e>] [--reply-to <e>] [--label <l>] [--attachment <a>] [--run-id <id>] [--lead-id <id>] [--dry-run]
|
|
1705
|
-
reply --message-id <id> [--text @reply.txt] [--html @reply.html] [--run-id <id>] [--lead-id <id>]
|
|
1709
|
+
reply --message-id <id> [--to <email>] [--text @reply.txt] [--html @reply.html] [--run-id <id>] [--lead-id <id>]
|
|
1710
|
+
--to overrides the recipient — REQUIRED when following up on your
|
|
1711
|
+
own message (plain reply answers its sender: you)
|
|
1706
1712
|
reply-all --message-id <id> [--text @reply.txt] [--html @reply.html] [--run-id <id>] [--lead-id <id>]
|
|
1707
1713
|
forward --message-id <id> --to <email> [--text @body.txt] [--html @body.html] [--run-id <id>] [--lead-id <id>]
|
|
1708
1714
|
threads [--limit N]
|
package/package.json
CHANGED