playground:native_mail
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
playground:native_mail [2021/12/30 00:57] – created zilog | playground:native_mail [2021/12/30 04:21] – zilog | ||
---|---|---|---|
Line 7: | Line 7: | ||
Native //mail(1)// uses **~sdfuser/ | Native //mail(1)// uses **~sdfuser/ | ||
- | <file config ~homeuser/ | + | <file config ~sdfuser/ |
### NetBSD mail(1) config file (~/ | ### NetBSD mail(1) config file (~/ | ||
Line 38: | Line 38: | ||
## uncomment to tweak the ' | ## uncomment to tweak the ' | ||
## SDF user GECOS field (use userinfo(1) to list): | ## SDF user GECOS field (use userinfo(1) to list): | ||
- | #Header From: sdfuser@beevomit.org(Me at SDF) | + | #Header From: SDFuser at SDF <sdfuser@beevomit.org> |
# Open even if no mail: | # Open even if no mail: | ||
Line 46: | Line 46: | ||
# use for contacting SDF membership: | # use for contacting SDF membership: | ||
alias sdfhelp 'SDF membership < | alias sdfhelp 'SDF membership < | ||
+ | # a list of users, both local and remote: | ||
+ | alias wrkgrp sdfuser2 sdfuser3 rmtuser@remote.addr 'The Boss < | ||
## set alt. editor(s) and pager; these will override | ## set alt. editor(s) and pager; these will override | ||
Line 56: | Line 58: | ||
#set VISUAL=$HOME/ | #set VISUAL=$HOME/ | ||
- | ## enable piping output of mailx cmds. In example, | + | ## Set an alternate escape char for composition mode; this |
- | ## typing | + | ## helps prevent command collision with ssh(1) which also uses |
+ | ## the ' | ||
+ | # set escape char to " | ||
+ | #set escape=` | ||
+ | |||
+ | ## enable piping output of mailx cmds. In example, | ||
+ | ## '|wc -w' gives word count for *body* of current | ||
set enable-pipes | set enable-pipes | ||
Line 65: | Line 73: | ||
## Set indent prefix (for Replys); use with ' | ## Set indent prefix (for Replys); use with ' | ||
set indentprefix="> | set indentprefix="> | ||
+ | | ||
+ | ## Set autograph string & alternate (use with ' | ||
+ | set sign=' | ||
+ | set Sign=' | ||
## pipe html/text type messages thru lynx(1), the text | ## pipe html/text type messages thru lynx(1), the text | ||
Line 77: | Line 89: | ||
The //mail(1)// manpage will explain basic usage; once //mail(1)// is running you can type '' | The //mail(1)// manpage will explain basic usage; once //mail(1)// is running you can type '' | ||
+ | ==== Composition ==== | ||
+ | To compose a new message either launch mail(1) with '' | ||
+ | To reply to a message to a user from within //mail(1)// type '' | ||
+ | Some useful composition commands: '' | ||
+ | |||
+ | ==== Tips & Tricks ==== | ||
+ | |||
+ | 1. If you'd rather not change the default composition mode escape character for //mail(1)// but are using secure shell (ssh) to connect to SDF you can add the following to your ** ~/ | ||
+ | |||
+ | <file config ~homeuser/ | ||
+ | # disable pty escapes: | ||
+ | EscapeChar none | ||
+ | </ | ||
+ | |||
+ | This will disable PTY escapes completely; alternately you can choose a different escape character if needed. | ||
+ | |||
+ | 2. The VISUAL editor variable can be set within ** ~/.mailrc ** to a shell script which invokes an interactive lynx(1) session on the current mail message (or several messages). | ||
+ | |||
+ | <file config ~sdfuser/ | ||
+ | #!/bin/sh -e | ||
+ | # veditor - for using lynx(1) as VISUAL editor in mail(1) | ||
+ | # | ||
+ | |||
+ | { echo '< | ||
+ | cat $* |egrep -m4 ' | ||
+ | cat $* |sed ' | ||
+ | echo '</ | ||
+ | </ | ||
+ | |||
+ | To use current message just type '' |