Open
Conversation
applyStepConfigsToFlow() only accepted singular handler_slug and handler_config keys, but the CLI and admin UI pass the plural forms handler_slugs (array) and handler_configs (keyed object). Now handles both: - handler_slugs: iterates and calls add_handler for each slug with its matching config from handler_configs - handler_slug/handler_config: still works as before (backward compat) This means flows create --step_configs with handler_slugs and handler_configs now works in a single command.
When replying via the email CLI, wp_mail() sends through SMTP but doesn't save a copy to the sender's email client. This adds an imap_append() call after successful send to copy the message to [Gmail]/Sent Mail (with fallbacks for non-Gmail servers). Best-effort: if the IMAP append fails, the send still succeeds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When sending or replying via
wp datamachine email reply, the message is sent through SMTP (Easy WP SMTP / Amazon SES) but no copy is saved to the sender's email client. The email doesn't appear in Gmail's Sent Mail or the conversation thread on the sender's side.Fix
After a successful
wp_mail()call inexecuteReply(), append the sent message to the IMAP Sent folder viaimap_append(). This makes the reply show up in Gmail's "Sent Mail" and thread view.[Gmail]/Sent Mailfirst (Gmail's folder name)Sent,Sent Items,INBOX.Sentfor non-Gmail servers\Seenso it doesn't show as unreadContext
Discovered when replying to a partnership inquiry via CLI — the reply was delivered to the recipient but didn't appear in the sender's Gmail thread, making it invisible to the account owner.