(mh_set_reply_regex): New function.
Showing
2 changed files
with
12 additions
and
0 deletions
... | @@ -313,6 +313,7 @@ int mh_file_copy __P((const char *from, const char *to)); | ... | @@ -313,6 +313,7 @@ int mh_file_copy __P((const char *from, const char *to)); |
313 | char *mh_draft_name __P((void)); | 313 | char *mh_draft_name __P((void)); |
314 | char *mh_create_message_id __P((int)); | 314 | char *mh_create_message_id __P((int)); |
315 | int mh_whom __P((char *filename, int check)); | 315 | int mh_whom __P((char *filename, int check)); |
316 | void mh_set_reply_regex __P((const char *str)); | ||
316 | 317 | ||
317 | int mh_alias_read __P((char *name, int fail)); | 318 | int mh_alias_read __P((char *name, int fail)); |
318 | int mh_alias_get __P((char *name, list_t *return_list)); | 319 | int mh_alias_get __P((char *name, list_t *return_list)); | ... | ... |
... | @@ -795,3 +795,14 @@ mh_create_message_id (int subpart) | ... | @@ -795,3 +795,14 @@ mh_create_message_id (int subpart) |
795 | free (host); | 795 | free (host); |
796 | return p; | 796 | return p; |
797 | } | 797 | } |
798 | |||
799 | void | ||
800 | mh_set_reply_regex (const char *str) | ||
801 | { | ||
802 | char *err; | ||
803 | int rc = munre_set_regex (str, 0, &err); | ||
804 | if (rc) | ||
805 | mh_error ("reply_regex: %s%s%s", mu_strerror (rc), | ||
806 | err ? ": " : "", | ||
807 | err ? err : ""); | ||
808 | } | ... | ... |
-
Please register or sign in to post a comment