]> granicus.if.org Git - mutt/commitdiff
Change abort_unmodified so it doesn't abort a message that has an
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 19 Sep 2003 12:56:49 +0000 (12:56 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 19 Sep 2003 12:56:49 +0000 (12:56 +0000)
attachment.  Catches the "send a file from the command line,
quickly" case.

send.c

diff --git a/send.c b/send.c
index 08539f917ea5d0c676d1a976d6e71532947e4f9f..7271501dac81b4707bab77608333de005baff4b4 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1353,7 +1353,7 @@ ci_send_message (int flags,               /* send mode */
       if (stat (msg->content->filename, &st) == 0)
       {
        /* if the file was not modified, bail out now */
-       if (mtime == st.st_mtime &&
+       if (mtime == st.st_mtime && !msg->content->next &&
            query_quadoption (OPT_ABORT, _("Abort unmodified message?")) == M_YES)
        {
          mutt_message _("Aborted unmodified message.");