mutt stable branch with some hacks

Manual: Render comments in examples a lighter for readability

+80 -65
+9
ChangeLog
··· 1 + 2009-07-02 20:13 +0200 Rocco Rutte <pdmef@gmx.net> (a7ef17e2e493) 2 + 3 + * doc/manual.xml.head, doc/manual.xml.tail: Manual: Reformat 4 + paragraphs, fix &tilde; -> ~ breakage 5 + 6 + 2009-07-02 19:36 +0200 Rocco Rutte <pdmef@gmx.net> (d40e288e3fbf) 7 + 8 + * doc/manual.xml.head: Manual: rework MIME chapter a bit 9 + 1 10 2009-07-02 16:20 +0200 Rocco Rutte <pdmef@gmx.net> (705534ee1479) 2 11 3 12 * doc/gen-map-doc, doc/manual.xml.tail, functions.h: Manual: Generate
+70 -65
doc/manual.xml.head
··· 1758 1758 <example id="ex-ec-comment"> 1759 1759 <title>Commenting configuration files</title> 1760 1760 <screen> 1761 - my_hdr X-Disclaimer: Why are you listening to me? # This is a comment 1761 + my_hdr X-Disclaimer: Why are you listening to me? <emphasis role="comment"># This is a comment</emphasis> 1762 1762 </screen> 1763 1763 </example> 1764 1764 ··· 2832 2832 <example id="ex-header-weeding"> 2833 2833 <title>Header weeding</title> 2834 2834 <screen> 2835 - # Sven's draconian header weeding 2835 + <emphasis role="comment"># Sven's draconian header weeding</emphasis> 2836 2836 ignore * 2837 2837 unignore from date subject to cc 2838 2838 unignore organization organisation x-mailer: x-newsreader: x-mailing-list: ··· 3337 3337 <example id="ex-save-hook-exando"> 3338 3338 <title>Using %-expandos in <command>save-hook</command></title> 3339 3339 <screen> 3340 - # default: save all to ~/Mail/&lt;author name&gt; 3340 + <emphasis role="comment"># default: save all to ~/Mail/&lt;author name&gt;</emphasis> 3341 3341 save-hook . ~/Mail/%F 3342 3342 3343 - # save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins 3343 + <emphasis role="comment"># save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins</emphasis> 3344 3344 save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins 3345 3345 3346 - # save from aol.com to $folder/spam 3346 + <emphasis role="comment"># save from aol.com to $folder/spam</emphasis> 3347 3347 save-hook aol\\.com$ +spam 3348 3348 </screen> 3349 3349 </example> ··· 4155 4155 4156 4156 source $my_cfgdir/hooks 4157 4157 source $my_cfgdir/macros 4158 - # more source commands... 4158 + <emphasis role="comment"># more source commands...</emphasis> 4159 4159 </screen> 4160 4160 </example> 4161 4161 ··· 4231 4231 <example id="ex-myvar4"> 4232 4232 <title>Type conversions using variables</title> 4233 4233 <screen> 4234 - set my_lines = "5" # value is string "5" 4235 - set pager_index_lines = $my_lines # value is integer 5 4234 + set my_lines = "5" <emphasis role="comment"># value is string "5"</emphasis> 4235 + set pager_index_lines = $my_lines <emphasis role="comment"># value is integer 5</emphasis> 4236 4236 4237 - set my_sort = "date-received" # value is string "date-received" 4238 - set sort = "last-$my_sort" # value is sort last-date-received 4237 + set my_sort = "date-received" <emphasis role="comment"># value is string "date-received"</emphasis> 4238 + set sort = "last-$my_sort" <emphasis role="comment"># value is sort last-date-received</emphasis> 4239 4239 4240 - set my_inc = $read_inc # value is string "10" (default of $read_inc) 4241 - set my_foo = $my_inc # value is string "10" 4240 + set my_inc = $read_inc <emphasis role="comment"># value is string "10" (default of $read_inc)</emphasis> 4241 + set my_foo = $my_inc <emphasis role="comment"># value is string "10"</emphasis> 4242 4242 </screen> 4243 4243 </example> 4244 4244 ··· 4261 4261 set my_pattern = "~A" 4262 4262 set my_number = "10" 4263 4263 4264 - # same as: score ~A +10 4264 + <emphasis role="comment"># same as: score ~A +10</emphasis> 4265 4265 score $my_pattern +$my_number</screen> 4266 4266 4267 4267 <para> ··· 6817 6817 </para> 6818 6818 6819 6819 <screen> 6820 - # I'm always running X :) 6820 + <emphasis role="comment"># I'm always running X :)</emphasis> 6821 6821 video/*; xanim %s &gt; /dev/null 6822 6822 image/*; xv %s &gt; /dev/null 6823 6823 6824 - # I'm always running firefox (if my computer had more memory, maybe) 6824 + <emphasis role="comment"># I'm always running firefox (if my computer had more memory, maybe)</emphasis> 6825 6825 text/html; firefox -remote 'openURL(%s)' 6826 6826 </screen> 6827 6827 ··· 6830 6830 </para> 6831 6831 6832 6832 <screen> 6833 - # Use xanim to view all videos Xanim produces a header on startup, 6834 - # send that to /dev/null so I don't see it 6833 + <emphasis role="comment"># Use xanim to view all videos Xanim produces a header on startup, 6834 + # send that to /dev/null so I don't see it</emphasis> 6835 6835 video/*; xanim %s &gt; /dev/null 6836 6836 6837 - # Send html to a running firefox by remote 6837 + <emphasis role="comment"># Send html to a running firefox by remote</emphasis> 6838 6838 text/html; firefox -remote 'openURL(%s)'; test=RunningFirefox 6839 6839 6840 - # If I'm not running firefox but I am running X, start firefox on the 6841 - # object 6840 + <emphasis role="comment"># If I'm not running firefox but I am running X, start firefox on the 6841 + # object</emphasis> 6842 6842 text/html; firefox %s; test=RunningX 6843 6843 6844 - # Else use lynx to view it as text 6844 + <emphasis role="comment"># Else use lynx to view it as text</emphasis> 6845 6845 text/html; lynx %s 6846 6846 6847 - # This version would convert the text/html to text/plain 6847 + <emphasis role="comment"># This version would convert the text/html to text/plain</emphasis> 6848 6848 text/html; lynx -dump %s; copiousoutput 6849 6849 6850 - # I use enscript to print text in two columns to a page 6850 + <emphasis role="comment"># I use enscript to print text in two columns to a page</emphasis> 6851 6851 text/*; more %s; print=enscript -2Gr %s 6852 6852 6853 - # Firefox adds a flag to tell itself to view jpegs internally 6853 + <emphasis role="comment"># Firefox adds a flag to tell itself to view jpegs internally</emphasis> 6854 6854 image/jpeg;xv %s; x-mozilla-flags=internal 6855 6855 6856 - # Use xv to view images if I'm running X 6857 - # In addition, this uses the \ to extend the line and set my editor 6858 - # for images 6856 + <emphasis role="comment"># Use xv to view images if I'm running X</emphasis> 6857 + <emphasis role="comment"># In addition, this uses the \ to extend the line and set my editor</emphasis> 6858 + <emphasis role="comment"># for images</emphasis> 6859 6859 image/*;xv %s; test=RunningX; \ 6860 6860 edit=xpaint %s 6861 6861 6862 - # Convert images to text using the netpbm tools 6862 + <emphasis role="comment"># Convert images to text using the netpbm tools</emphasis> 6863 6863 image/*; (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm | 6864 6864 pbmtoascii -1x2 ) 2&gt;&amp;1 ; copiousoutput 6865 6865 6866 - # Send excel spreadsheets to my NT box 6866 + <emphasis role="comment"># Send excel spreadsheets to my NT box</emphasis> 6867 6867 application/ms-excel; open.pl %s 6868 6868 </screen> 6869 6869 ··· 7098 7098 <example id="ex-attach-count"> 7099 7099 <title>Attachment counting</title> 7100 7100 <screen> 7101 - ## Removing a pattern from a list removes that pattern literally. It 7102 - ## does not remove any type matching the pattern. 7103 - ## 7104 - ## attachments +A */.* 7105 - ## attachments +A image/jpeg 7106 - ## unattachments +A */.* 7107 - ## 7108 - ## This leaves "attached" image/jpeg files on the allowed attachments 7109 - ## list. It does not remove all items, as you might expect, because the 7110 - ## second */.* is not a matching expression at this time. 7111 - ## 7112 - ## Remember: "unattachments" only undoes what "attachments" has done! 7113 - ## It does not trigger any matching on actual messages. 7101 + <emphasis role="comment"> 7102 + # Removing a pattern from a list removes that pattern literally. It 7103 + # does not remove any type matching the pattern. 7104 + # 7105 + # attachments +A */.* 7106 + # attachments +A image/jpeg 7107 + # unattachments +A */.* 7108 + # 7109 + # This leaves "attached" image/jpeg files on the allowed attachments 7110 + # list. It does not remove all items, as you might expect, because the 7111 + # second */.* is not a matching expression at this time. 7112 + # 7113 + # Remember: "unattachments" only undoes what "attachments" has done! 7114 + # It does not trigger any matching on actual messages. 7114 7115 7115 - ## Qualify any MIME part with an "attachment" disposition, EXCEPT for 7116 - ## text/x-vcard and application/pgp parts. (PGP parts are already known 7117 - ## to mutt, and can be searched for with ~g, ~G, and ~k.) 7118 - ## 7119 - ## I've added x-pkcs7 to this, since it functions (for S/MIME) 7120 - ## analogously to PGP signature attachments. S/MIME isn't supported 7121 - ## in a stock mutt build, but we can still treat it specially here. 7122 - ## 7116 + # Qualify any MIME part with an "attachment" disposition, EXCEPT for 7117 + # text/x-vcard and application/pgp parts. (PGP parts are already known 7118 + # to mutt, and can be searched for with ~g, ~G, and ~k.) 7119 + # 7120 + # I've added x-pkcs7 to this, since it functions (for S/MIME) 7121 + # analogously to PGP signature attachments. S/MIME isn't supported 7122 + # in a stock mutt build, but we can still treat it specially here. 7123 + # 7124 + </emphasis> 7123 7125 attachments +A */.* 7124 7126 attachments -A text/x-vcard application/pgp.* 7125 7127 attachments -A application/x-pkcs7-.* 7126 7128 7127 - ## Discount all MIME parts with an "inline" disposition, unless they're 7128 - ## text/plain. (Why inline a text/plain part unless it's external to the 7129 - ## message flow?) 7130 - ## 7129 + <emphasis role="comment"> 7130 + # Discount all MIME parts with an "inline" disposition, unless they're 7131 + # text/plain. (Why inline a text/plain part unless it's external to the 7132 + # message flow?) 7133 + </emphasis> 7131 7134 attachments +I text/plain 7132 7135 7133 - ## These two lines make Mutt qualify MIME containers. (So, for example, 7134 - ## a message/rfc822 forward will count as an attachment.) The first 7135 - ## line is unnecessary if you already have "attach-allow */.*", of 7136 - ## course. These are off by default! The MIME elements contained 7137 - ## within a message/* or multipart/* are still examined, even if the 7138 - ## containers themselves don't qualify. 7139 - ## 7136 + <emphasis role="comment"> 7137 + # These two lines make Mutt qualify MIME containers. (So, for example, 7138 + # a message/rfc822 forward will count as an attachment.) The first 7139 + # line is unnecessary if you already have "attach-allow */.*", of 7140 + # course. These are off by default! The MIME elements contained 7141 + # within a message/* or multipart/* are still examined, even if the 7142 + # containers themselves don't qualify. 7143 + 7140 7144 #attachments +A message/.* multipart/.* 7141 7145 #attachments +I message/.* multipart/.* 7146 + </emphasis> 7142 7147 7143 - ## You probably don't really care to know about deleted attachments. 7148 + <emphasis role="comment">## You probably don't really care to know about deleted attachments.</emphasis> 7144 7149 attachments -A message/external-body 7145 7150 attachments -I message/external-body 7146 7151 </screen> ··· 7993 7998 </para> 7994 7999 7995 8000 <screen> 7996 - # use very high $read_inc to speed up reading hcache'd maildirs 8001 + <emphasis role="comment"># use very high $read_inc to speed up reading hcache'd maildirs</emphasis> 7997 8002 folder-hook . 'set read_inc=1000' 7998 - # use lower value for reading slower remote IMAP folders 8003 + <emphasis role="comment"># use lower value for reading slower remote IMAP folders</emphasis> 7999 8004 folder-hook ^imap 'set read_inc=100' 8000 - # use even lower value for reading even slower remote POP folders 8005 + <emphasis role="comment"># use even lower value for reading even slower remote POP folders</emphasis> 8001 8006 folder-hook ^pop 'set read_inc=1'</screen> 8002 8007 8003 8008 </listitem>
+1
doc/mutt.css
··· 22 22 .command { font-family: monospace; font-weight: normal; } 23 23 .command strong { font-weight: normal; } 24 24 tr { vertical-align: top; } 25 + .comment { color:#707070; }