<row>
<entry><literal>attach_keyword</literal></entry>
<entry>regular expression</entry>
- <entry><literal>\\<attach(|ed|ments?)\\></literal></entry>
+ <entry><literal>\\<(attach|attached|attachments?)\\></literal></entry>
</row>
<row>
<entry><literal>abort_noattach</literal></entry>
# Search for the following regular expression in the body of the email
# English: attach, attached, attachment, attachments
-set attach_keyword = "\\<attach(|ed|ments?)\\>"
+set attach_keyword = "\\<(attach|attached|attachments?)\\>"
# Nederlands:
# set attach_keyword = "\\<(bijvoegen|bijgevoegd|bijlage|bijlagen)\\>"
if (p->init)
{
+ int retval;
char *s = (char *) p->init;
pp->rx = safe_calloc (1, sizeof (regex_t));
s++;
pp->not = 1;
}
- if (REGCOMP (pp->rx, s, flags) != 0)
+ retval = REGCOMP (pp->rx, s, flags);
+ if (retval != 0)
{
+ char msgbuf[STRING];
+ regerror (retval, pp->rx, msgbuf, sizeof (msgbuf));
fprintf (stderr, _("mutt_restore_default(%s): error in regexp: %s\n"),
p->option, pp->pattern);
+ fprintf (stderr, "%s\n", msgbuf);
+ mutt_sleep (0);
FREE (&pp->pattern);
FREE (&pp->rx);
}
** .pp
** For an explanation of ``soft-fill'', see the $$index_format documentation.
*/
- { "attach_keyword", DT_RX, R_NONE, UL &AttachKeyword, UL "\\<attach(|ed|ments?)\\>" },
+ { "attach_keyword", DT_RX, R_NONE, UL &AttachKeyword, UL "\\<(attach|attached|attachments?)\\>" },
/*
** .pp
** If $abort_noattach is not set to no, then the body of the message
/* if the abort is automatic, print an error message */
if (quadoption (OPT_ATTACH) == MUTT_YES)
{
- mutt_error _("Message contains text matching \"attach_keyword\". Not sending.");
+ mutt_error _("Message contains text matching \"$attach_keyword\". Not sending.");
}
goto main_loop;
}