This patch has a bug: if you press Cancel, the mail will be sent as if you
pressed Yes.  I suspect this is easy to fix, but I do not have the Mutt
sources on hand.

--- compose.c.old	Fri May 12 22:06:05 2000
+++ compose.c	Sat May 13 00:23:06 2000
@@ -889,6 +889,45 @@
 	  break;
 	}
 
+	/* begin gf-inspired hack */
+
+	if (menu->max == 1)
+	{
+	  ATTACHPTR *idx = ((ATTACHPTR **) menu->data)[0];
+	  FILE *fp;
+	  char buf[LONG_STRING];
+	  regex_t preg;
+	  int send = 1;
+
+	  if ((fp = fopen (idx->content->filename, "r")) != NULL)
+	  {
+	    REGCOMP (&preg, "attach", REG_ICASE);
+
+	    FOREVER
+	    {
+	      if (fgets (buf, sizeof buf - 1, fp) == NULL)
+		break;
+
+	      if (regexec (&preg, buf, 0, 0, 0) == 0)
+	      {
+		/* he's done it again! :-) */
+		if (mutt_yesorno ("You have not attached anything!  Continue sending?", 0) == M_NO)
+		  send = 0;
+	      
+		menu->redraw = REDRAW_FULL;
+		break;
+	      }
+	    }
+
+	    regfree (&preg);
+	    fclose (fp);
+
+	    if (!send)
+	      break;
+	  }
+	}
+
+	/* end of gf-inspired hack */
       
 #ifdef MIXMASTER
         if (msg->chain && mix_check_message (msg) != 0)
