diff -u --new-file --recursive tin-19990517.orig/configure.in tin-19990517/configure.in --- tin-19990517.orig/configure.in Wed Apr 14 12:02:50 1999 +++ tin-19990517/configure.in Tue Jun 8 14:11:19 1999 @@ -362,6 +362,12 @@ [AC_DEFINE(NO_ETIQUETTE)]) AC_MSG_RESULT($enableval) +AC_MSG_CHECKING(whether to enable auto-aborting of unmodified articles/mails) +CF_ARG_DISABLE(abort-unmod, + [ --disable-abort-unmod disable auto-abort of unmodified posts], + [AC_DEFINE(ABORT_UNMODIFIED)]) +AC_MSG_RESULT($enableval) + AC_MSG_CHECKING(whether to strictly observe RFC1522 and break long lines) CF_ARG_ENABLE(break-long-lines, [ --enable-break-long-lines diff -u --new-file --recursive tin-19990517.orig/include/autoconf.hin tin-19990517/include/autoconf.hin --- tin-19990517.orig/include/autoconf.hin Tue Apr 20 08:51:02 1999 +++ tin-19990517/include/autoconf.hin Tue Jun 8 14:08:23 1999 @@ -55,6 +55,7 @@ #undef NNTP_DEFAULT_SERVER #undef NOVROOTDIR #undef NO_ETIQUETTE +#undef ABORT_UNMODIFIED #undef NO_LOCALE #undef NO_POSTING #undef NO_SHELL_ESCAPE diff -u --new-file --recursive tin-19990517.orig/src/post.c tin-19990517/src/post.c --- tin-19990517.orig/src/post.c Wed Apr 28 11:34:41 1999 +++ tin-19990517/src/post.c Tue Jun 8 14:14:10 1999 @@ -1072,7 +1072,11 @@ case iKeyPostEdit: artsize = file_size(article); invoke_editor (article, start_line_offset); +#ifndef ABORT_UNMODIFIED if ((artsize != file_size(article)) && (artsize > 0)) { +#else + if ( artsize > 0 ) { +#endif while (!check_article_to_be_posted (article, art_type, &lines) && repair_article(&ch)) ; if (ch == iKeyPostEdit || ch == iKeyOptionMenu) @@ -1652,7 +1656,11 @@ artsize = file_size(article); invoke_editor (article, start_line_offset); redraw_screen = TRUE; +#ifndef ABORT_UNMODIFIED if ((artsize != file_size(article)) && (artsize > 0)) { +#else + if ( artsize > 0 ) { +#endif while (!check_article_to_be_posted (article, art_type, &lines) && repair_article(&ch)) ; if (ch == iKeyPostEdit || ch == iKeyOptionMenu) @@ -2171,7 +2179,11 @@ artsize = file_size(article); invoke_editor (article, start_line_offset); ret_code = POSTED_REDRAW; +#ifndef ABORT_UNMODIFIED if ((artsize != file_size(article)) && (artsize > 0)) { +#else + if ( artsize > 0 ) { +#endif while (!check_article_to_be_posted (article, art_type, &lines) && repair_article(&ch)) ; if (ch == iKeyPostEdit || ch == iKeyOptionMenu) @@ -2575,7 +2587,11 @@ case iKeyPostEdit: artsize = file_size(nam); invoke_editor (nam, start_line_offset); +#ifndef ABORT_UNMODIFIED if ((artsize != file_size(nam)) && (artsize > 0)) { +#else + if ( artsize > 0 ) { +#endif if (!pcCopyArtHeader (HEADER_SUBJECT, nam, subject)) subject[0] = '\0'; break;