Top Document: MH Frequently Asked Questions (FAQ) with Answers Previous Document: 05.15 How can I make sense of the replcomps file? Next Document: 05.17 Can I have aliases include aliases? See reader questions & answers on this topic! - Help others by sharing your knowledge Date: 22 Aug 1995 10:42:07 +0200 The idea behind the solution is that I need mhn to store the contents of the mail in the native iso8859-1 format somewhere. I did this by creating a custom editor that is invoked when I reply to a message. This editor extracts the body of the message (sorry, no multipart stuff), indents it with '> ', appends it to the draft message and invokes the ordinary editor on it. Here are the details: `isorepl' is a symbolic link from my $HOME/bin-directory to `repl'. In my .mh_profile I added the following two lines: isorepl: -form isoreplcomps -editor isoextract isoextract-next: vi The isoreplcomps file in my Mail-directory contains: %(lit)%(formataddr %<{reply-to}%?{from}%?{sender}%?{return-path}%>)\ %<(nonnull)%(void(width))%(putaddr To: )\n%>\ %(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\ %<(nonnull)%(void(width))%(putaddr cc: )\n%>\ %<{fcc}Fcc: %{fcc}\n%>\ %<{subject}Subject: Re: %{subject}\n%>\ %<{date}In-reply-to: Your message of "\ %<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id} %{message-id}%>\n%>\ -------- #<text/plain; charset=iso-8859-1 %<{message-id}In message %{message-id} %>\ %<{from}%(friendly{from}) writes%|You write%>: This is a "Usenet-like" quoting style. Modify to suit your own taste. This form will setup the proper header, as well as the first line of the new message (In <mmmmbbbb> nnnn writes etc.). The first editor, `isoextract', looks like this: #!/bin/sh # # Called from within repl where the "editalt" variable is valid # # Point to a special MHN configuration file (save old one) OLDMHN="$MHN" MHN=$HOME/`mhparam Path`/isoquotemsg export MHN # Extract message body to "native" format (should be iso-8859-1) # > More bla bla. mhn -file "$editalt" -store >> $1 2>/dev/null MHN="$OLDMHN" myname=`basename $0` next=`mhparam ${myname}-next` if [ "x$next" != "x" ]; then exec $next "$@" fi `isoquotemsg' has just one rule; how mhn should store a text message. mhn-store-text: |sed -e 's/^[ ]*$//' \ -e 's/^\([>|]\)\(.*\)$/>\1\2/' \ -e 's/^\([^>|].*\)$/> \1/' This tells mhn to pipe the message to stdout, where the sed commands will do the reformatting/quoting. (Note: the first pair of square brackets contains a space and a tab.) So, when I do a `isorepl' to a message, `repl' will create the draft message with the proper headers (based on the `isoreplcomps' format file), fire off its first editor, `isoextract', with the name of the draft file as its parameter. `isoextract' then invokes mhn in a suitable environment, tells it that it is to use the file $editalt as its source, and orders it to store the contents. The store-text rule in the custom MHN-file tells it to just pipe the message (in native iso8859-1 form) through a small set of sed commands, and `isoextract' uses the normal shell construct to append the result to the draft file. Then, if there's defined a `isoextract-next' entry in the .mh_profile, isoextract exec's this editor. User Contributions:Comment about this article, ask questions, or add new information about this topic:Top Document: MH Frequently Asked Questions (FAQ) with Answers Previous Document: 05.15 How can I make sense of the replcomps file? Next Document: 05.17 Can I have aliases include aliases? Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: Bill Wohler <wohler@newt.com>
Last Update March 27 2014 @ 02:11 PM
|
How to invest in Bitcoin and receive from $ 8383 per day: https://cutt.us/H7KgvRc?a5kQdKDU5W
How to Make $6226 FAST, Quick Cash, The Busy Budgeter: https://hideuri.com/a7o81M?&ppmne=Yu1yhHoF1
Just how to Make $7457 FAST, Rapid Cash, The Busy Budgeter: https://hideuri.com/Kjn8ZA?r4nEosWMTJLgNE
How to get 0,988 Bitcoin per week: https://soo.gd/inar?5fp7mb
Just how would certainly you utilize $92431 to make more money: https://cutt.us/PXn2tI5gS?X3U0km
What's the simplest means to earn $76177 a month: https://hideuri.com/qJodXr?z022EajPURJW
Forex + Bitcoin = $ 6282 per week: https://soo.gd/3di0p?&tdpud=PQQ23hz
Exactly how to Make $6711 FAST, Rapid Money, The Busy Budgeter: https://v.ht/mlPaUOv?ck5z2dNXkBNk9
Forex + Bitcoin = $ 4171 per week: https://cutt.us/DuuNMCrKx?&bddar=51Ep8
Invest $ 2218 and get $ 63872 every month: https://v.ht/Cud6E4m?ywlfI5R43BGfMX
Invest $ 84453 in Cryptocurrency once and get $ 338351 passive income per month: https://tiny.pl/tl1q5?&rbrti=i3Um2CK
How to get 0,931 BTC per week: https://v.ht/G2WkL?L3YWcDi