#!/bin/sh # # show_JIS_email # # AUTHOR: # Dan Harkless # # COPYRIGHT: # This file is Copyright (C) 2000 by Dan Harkless, and is released under the # GNU General Public License . # # DESCRIPTION: # On AIX, put this line: # # mhshow-charset-iso-2022-jp: aixterm -lang ja_JP -e show_JIS_email # # in mhn.defaults or .mh_profile to view JIS-encoded emails. # # On OSes where xterm behaves properly w.r.t. $LANG or where there's another # terminal program that does, substitute that for aixterm. # # Requires Ken Lunde's jconv program: # # http://www.ora.com/people/authors/lunde/j_tools.html # # to be in your $PATH. # # DATE MODIFICATION # ========== ================================================================== # 2000-06-19 Making sure $MORE doesn't contain -e isn't sufficient to make sure # the aixterm doesn't exit prematurely -- it won't help if more(1) # has an error (as it will if it gets improperly-coded Japanese # characters). Instead, make sure we _do_ use -e and then prompt # for exit ourselves after more(1) is done. # 2000-05-01 Original. show -noshowproc | jconv -ij -oe | more -e echo echo "[Hit RETURN to exit aixterm] \c" read dummy