On June 19, 2025, Yeechang Lee wrote:
>A way to avoid sending a message that mentions an attachment but does not have 
>one. It is based on VM 8.2.0b and Emacs 23 (yes, really). I offer it to the 
>community hoping that others will find it useful, and for feedback.

Very interesting!

May I suggest that "my-vm-check-for-attachment-regexp" should be a
list of regexps instead of one regexp? For example,

 (
   "I've attached"
   "see \(the \)?attachment"
   "\(attached\|enclosed\|included\) \(file\|image\|picture\|document\)"
 )

A list like this is easier to read & maintain than a single regexp,
and it may reduce false positives in messages like "Hi, I'm a
psychologist who researches attachment" or "The hip bone is attached
to the thigh bone."

Dan

Reply via email to