]> granicus.if.org Git - mutt/commitdiff
Add unauto_view. From Jeremy Blosser.
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 3 Feb 2002 09:58:44 +0000 (09:58 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 3 Feb 2002 09:58:44 +0000 (09:58 +0000)
doc/manual.sgml.head
doc/muttrc.man.head
init.h

index 33a5cbca4d33ce4027dcdbcd9a1b40b99a4cc76a..eee4191cf72aea1103a82267fe0a910f6ef2cb87 100644 (file)
@@ -2792,6 +2792,10 @@ application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
 application/postscript; ps2ascii %s; copiousoutput
 </verb></tscreen>
 
+``unauto_view'' can be used to remove previous entries from the autoview list.
+This can be used with message-hook to autoview messages based on size, etc.
+``unauto_view *'' will remove all previous entries.
+
 <sect1>MIME Multipart/Alternative<label id="alternative_order">
 <p>
 Mutt has some heuristics for determining which attachment of a
@@ -2889,6 +2893,8 @@ The following are the commands understood by mutt.
 <item>
 <tt><ref id="auto_view" name="auto&lowbar;view"></tt> <em/mimetype/ &lsqb; <em/mimetype/ ... &rsqb;
 <item>
+<tt><ref id="auto_view" name="unauto&lowbar;view"></tt> <em/mimetype/ &lsqb; <em/mimetype/ ... &rsqb;
+<item>
 <tt><ref id="bind" name="bind"></tt> <em/map/ <em/key/ <em/function/
 <item>
 <tt><ref id="charset-hook" name="charset-hook"></tt> <em/alias/ <em/charset/
index e690570181aa8d4dd06be6f5fb33b661dd463e83..6c05f632b561cb378646ac5a190f6ad069f8e443 100644 (file)
@@ -82,8 +82,12 @@ used by mutt to determine which part of a
 \fBmultipart/alternative\fP body to display.
 A subtype of \(lq\fB*\fP\(rq matches any subtype, as does an empty
 subtype.
-.TP
+.PP
+.nf
 \fBauto_view\fP \fItype\fP[\fB/\fP\fIsubtype\fP] [ ... ]
+\fBunauto_view\fP \fItype\fP[fB/\fP\fIsubtype\fP] [ ... ]
+.fi
+.IP
 This commands permits you to specify that mutt should automatically
 convert the given MIME types to text/plain when displaying messages.
 For this to work, there must be a 
diff --git a/init.h b/init.h
index 619bf8ce34526bfb5b553f5e17cf86dab52697b2..0c45ec9b91c4af1220f19ef76d74bc058f06c133 100644 (file)
--- a/init.h
+++ b/init.h
@@ -2657,6 +2657,7 @@ struct command_t Commands[] = {
   { "subscribe",       parse_subscribe,        0 },
   { "toggle",          parse_set,              M_SET_INV },
   { "unalias",         parse_unalias,          0 },
+  { "unauto_view",     parse_unlist,           UL &AutoViewList },
   { "unhdr_order",     parse_unlist,           UL &HeaderOrderList },
   { "unhook",          mutt_parse_unhook,      0 },
   { "unignore",                parse_unignore,         0 },