</arg>
<command>unsubjectrx</command>
+<group choice="req">
+<arg choice="plain">
+<replaceable class="parameter">*</replaceable>
+</arg>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
</arg>
+</group>
</cmdsynopsis>
<para>
</para>
<para>
-<literal>unsubjectrx</literal> removes a given subjectrx from the substitution
-list.
+<literal>unsubjectrx</literal> removes a given subjectrx from the
+substitution list. If <literal>*</literal> is used as the pattern,
+all substitutions will be removed.
</para>
<example id="ex-subjectrx">
<replaceable class="parameter">pattern</replaceable>
</arg>
<arg choice="plain">
-<replaceable class="parameter">format</replaceable>
+<replaceable class="parameter">replacement</replaceable>
</arg>
<command><link linkend="display-munging">unsubjectrx</link></command>
+<group choice="req">
+<arg choice="plain">
+<replaceable class="parameter">*</replaceable>
+</arg>
<arg choice="plain">
<replaceable class="parameter">pattern</replaceable>
</arg>
+</group>
</cmdsynopsis>
</listitem>
}
mutt_extract_token(buf, s, 0);
+
+ /* "*" is a special case. */
+ if (!mutt_strcmp (buf->data, "*"))
+ {
+ mutt_free_replace_list (list);
+ return 0;
+ }
+
remove_from_replace_list(list, buf->data);
return 0;
}