Commit 146edd66 146edd66afcc74ef58452cd79535edf78e8317b4 by Sergey Poznyakoff

Use munre_subject() and util_reply_prefix().

1 parent 54464564
...@@ -48,8 +48,8 @@ mail_followup (int argc, char **argv) ...@@ -48,8 +48,8 @@ mail_followup (int argc, char **argv)
48 { 48 {
49 char *p = NULL; 49 char *p = NULL;
50 50
51 if (strncasecmp (str, "Re:", 3)) 51 if (munre_subject (str, NULL))
52 util_strcat (&p, "Re: "); 52 util_strcat (&p, util_reply_prefix ());
53 util_strcat (&p, str); 53 util_strcat (&p, str);
54 free (str); 54 free (str);
55 compose_header_set (&env, MU_HEADER_SUBJECT, p, COMPOSE_REPLACE); 55 compose_header_set (&env, MU_HEADER_SUBJECT, p, COMPOSE_REPLACE);
......
...@@ -97,8 +97,8 @@ reply0 (msgset_t *mspec, message_t msg, void *data) ...@@ -97,8 +97,8 @@ reply0 (msgset_t *mspec, message_t msg, void *data)
97 { 97 {
98 char *p = NULL; 98 char *p = NULL;
99 99
100 if (strncasecmp (str, "Re:", 3)) 100 if (munre_subject (str, NULL))
101 util_strcat (&p, "Re: "); 101 util_strcat (&p, util_reply_prefix ());
102 util_strcat (&p, str); 102 util_strcat (&p, str);
103 free (str); 103 free (str);
104 compose_header_set (&env, MU_HEADER_SUBJECT, p, COMPOSE_REPLACE); 104 compose_header_set (&env, MU_HEADER_SUBJECT, p, COMPOSE_REPLACE);
......