Daniel Barrett writes: > 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."
Very interesting indeed... for the small minority of people on this planet who writes messages in English. ;-) In all seriousness: I use some web mail portals that try to be smart by implementing something similar. I have never had any of their soft- ware catch me not including an attachment. However, several times they managed to drive me screaming mad because I used a (German) trigger word in a different context, and I had to close warning after warning before I could send my message. So I applaud your effort and your sentiment to share, but I would never in a million years use something like that. I love emacs-vm because it is great and I have been using it for more than two decades, but I also hate it because it is riddled with bugs. If I had the time, I would try to deal with the bugs... Cheers -- Volker -- ------------------------------------------------------------------------ Volker A. Brandt Consulting and Support for Solaris-based Systems Brandt & Brandt Computer GmbH | WWW: http://www.bb-c.de/ Am Wiesenpfad 6, 53340 Meckenheim, GERMANY | Email: [email protected] HR: Amtsgericht Bonn, HRB 10513 | Mastodon: @[email protected] Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt
