Useful Aliases and Environment Variables
Text file for aliases and
environment variables
with usage examples is also available.
- Aliases:
- To convert MH folders:
alias mmh 'mhonarc -mh -outdir \!$ \!:1-'
- To convert mbox files:
alias mmbox 'mhonarc -mbox -outdir \!$ \!:1-'
- To convert bulletin boards:
alias mbb 'mhonarc -msgsep "^/^A" -mbox -outdir \!$ \!:1-'
Note: To enter ^A (hidden character, CTL-A) you must type CTL-V followed by CTL-A.
- To convert a single message to html format:
alias msing 'mhonarc -single < \:!1 > \:!2'
- To add MH messages:
alias mmhadd 'mhonarc -mh -add -outdir \!$ < \!:1-'
- To add mailbox messages:
alias mmboxadd 'mhonarc -mbox -add -outdir \!$ < \!:1-'
- To add a single message to an existing MH archive:
alias maddsing 'show -noshow -noheader \!:1- | mhonarc -add -outdir \!$'
- To sort messgaes by subject:
alias msubsort 'mhonarc -subsort -outdir \!$ \!:1-'
- To archive messages in the order they appear (default is chronological):
alias mnosort 'mhonarc -nosort -outdir \!$ \!:1-'
- To sort messages by reverse chronological date (the default):
alias mreverse 'mhonarc -reverse -outdir \!$ \!:1-'
- To get help on mhonarc:
alias mhelp 'mhonarc -help | more'
- Scanning an archive to obtain message numbers for removing messages
alias mscan mhonarc -scan
- To remove messages
alias mrmm mhorac -rmm \!*
- Environment Variables:
- M2H_OUTDIR
Sets the destination of the HTML mail archive. The default is the current
working directory.
- M2H_RCFILE
Sets the Resource File. No default resource file is defined.
- M2H_TITLE
Sets the title of the index page. The default is Main Index .
- M2H_FOOTER
Sets the HTML footer file to insert at the bottom of the index page.
- M2H_HEADER
Sets the HTML header file to insert at the top of the index page.
- M2H_DOCURL
Sets the URL used to point to documentation.
- M2H_MAILTOURL
Sets the URL for email address hyperlinks. ("mailto:$TO$" is the default).
NOTE: Environment variables may be overriden by the Resource File
or Command-Line Options.
Shohreh Bozorgmehri, shohreh@uci.edu