Dennis Preiser
2011-12-23 15:26:35 UTC
Is it intended that superseded articles are not stored in
posted_articles_file? If not, I've attached a patch for that.
(POST_SUPERSEDE can not be used because of conflicts with "enum
defined_functions" in keymap.h.)
Dennis
diff -urp tin-2.1.0/src/post.c tin-2.1.0_r1/src/post.c
--- tin-2.1.0/src/post.c 2011-11-11 22:31:20.000000000 +0100
+++ tin-2.1.0_r1/src/post.c 2011-12-23 14:49:07.000000000 +0100
@@ -107,6 +107,7 @@
#define POST_NORMAL 2
#define POST_RESPONSE 3
#define POST_REPOST 4
+#define POST_SUPERSEDED 5
/* When prompting for subject, display no more than 20 characters */
#define DISPLAY_SUBJECT_LEN 20
@@ -1821,7 +1822,7 @@ post_article_loop:
break;
}
signal_context = cPost;
- if (type != POST_REPOST) {
+ if (type != POST_REPOST && type != POST_SUPERSEDED) {
char keyedit[MAXKEYLEN], keypost[MAXKEYLEN];
char keypostpone[MAXKEYLEN], keyquit[MAXKEYLEN];
char keymenu[MAXKEYLEN];
@@ -1984,6 +1985,7 @@ post_article_done:
break;
case POST_REPOST:
+ case POST_SUPERSEDED:
tag = 'x';
break;
@@ -4193,7 +4195,7 @@ repost_article(
"%s", sized_message(&smsg, buff, note_h.subj));
free(smsg);
}
- return (post_loop(POST_REPOST, group, func, (Superseding ? _(txt_superseding_art) : _(txt_repost_an_article)), art_type, start_line_offset));
+ return (post_loop(Superseding ? POST_SUPERSEDED : POST_REPOST, group, func, (Superseding ? _(txt_superseding_art) : _(txt_repost_an_article)), art_type, start_line_offset));
}
posted_articles_file? If not, I've attached a patch for that.
(POST_SUPERSEDE can not be used because of conflicts with "enum
defined_functions" in keymap.h.)
Dennis
diff -urp tin-2.1.0/src/post.c tin-2.1.0_r1/src/post.c
--- tin-2.1.0/src/post.c 2011-11-11 22:31:20.000000000 +0100
+++ tin-2.1.0_r1/src/post.c 2011-12-23 14:49:07.000000000 +0100
@@ -107,6 +107,7 @@
#define POST_NORMAL 2
#define POST_RESPONSE 3
#define POST_REPOST 4
+#define POST_SUPERSEDED 5
/* When prompting for subject, display no more than 20 characters */
#define DISPLAY_SUBJECT_LEN 20
@@ -1821,7 +1822,7 @@ post_article_loop:
break;
}
signal_context = cPost;
- if (type != POST_REPOST) {
+ if (type != POST_REPOST && type != POST_SUPERSEDED) {
char keyedit[MAXKEYLEN], keypost[MAXKEYLEN];
char keypostpone[MAXKEYLEN], keyquit[MAXKEYLEN];
char keymenu[MAXKEYLEN];
@@ -1984,6 +1985,7 @@ post_article_done:
break;
case POST_REPOST:
+ case POST_SUPERSEDED:
tag = 'x';
break;
@@ -4193,7 +4195,7 @@ repost_article(
"%s", sized_message(&smsg, buff, note_h.subj));
free(smsg);
}
- return (post_loop(POST_REPOST, group, func, (Superseding ? _(txt_superseding_art) : _(txt_repost_an_article)), art_type, start_line_offset));
+ return (post_loop(Superseding ? POST_SUPERSEDED : POST_REPOST, group, func, (Superseding ? _(txt_superseding_art) : _(txt_repost_an_article)), art_type, start_line_offset));
}