feat(compose): prompt before sending when a mentioned attachment is missing

Send now scans the subject and body for "attach" and its variants
(word-bounded, case-insensitive). When the text mentions one but the
message carries no attachment, an AlertDialog asks "Need to attach
anything?" — Yes returns to composing and pulses the attach button,
No sends the message as-is, and dismissing cancels the send. (#79)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-01 17:04:15 -05:00
co-authored by Claude Fable 5
parent f5c9d4c4d2
commit 671fca99a2
5 changed files with 253 additions and 32 deletions
+4
View File
@@ -45,6 +45,8 @@
<string name="action_more">More options</string>
<string name="move_picker_title">Move to</string>
<string name="cancel">Cancel</string>
<string name="action_yes">Yes</string>
<string name="action_no">No</string>
<string name="confirm_spam_title">Move to Spam?</string>
<string name="confirm_spam_text">Move %1$d message(s) to the Spam folder?</string>
<string name="confirm_trash_title">Move to Trash?</string>
@@ -53,6 +55,8 @@
<string name="confirm_delete_text">This permanently deletes %1$d message(s) and can\'t be undone.</string>
<string name="confirm_reply_all_title">Reply to all?</string>
<string name="confirm_reply_all_text">Reply to everyone included on this message?</string>
<string name="confirm_attachment_title">Need to attach anything?</string>
<string name="confirm_attachment_text">Your message mentions an attachment, but nothing is attached.</string>
<!-- Folder navigation drawer -->
<string name="drawer_open">Show folders</string>