Commit c2e27396 c2e27396468854a79422c94dba9f4bf2aadc3c36 by Sergey Poznyakoff

(mh_set_reply_regex): New function.

1 parent 737e2f6e
......@@ -313,6 +313,7 @@ int mh_file_copy __P((const char *from, const char *to));
char *mh_draft_name __P((void));
char *mh_create_message_id __P((int));
int mh_whom __P((char *filename, int check));
void mh_set_reply_regex __P((const char *str));
int mh_alias_read __P((char *name, int fail));
int mh_alias_get __P((char *name, list_t *return_list));
......
......@@ -795,3 +795,14 @@ mh_create_message_id (int subpart)
free (host);
return p;
}
void
mh_set_reply_regex (const char *str)
{
char *err;
int rc = munre_set_regex (str, 0, &err);
if (rc)
mh_error ("reply_regex: %s%s%s", mu_strerror (rc),
err ? ": " : "",
err ? err : "");
}
......