Pine configuration

Home | UNIX | Oracle | Code | Practical | Private

Pine configuration


Installation
On RHEL5, make sure those packages are installed,
rpm -q \
ncurses-devel \
lynx \
wget \
aspell

Download and install Pine,
wget ftp.cac.washington.edu/pine/pine.tar.gz
tar xvzf pine.tar.gz
cd pine4.64
./build NOSSL slx
cp bin/pine /usr/local/bin/
cp bin/pico /usr/local/bin/
Note. 'slx' for Linux plateforms


Preparation
Fix the permission (otherwise Pine will warn you),
cd /var/spool
chown mail:mail mail
chmod 1777 mail
cd mail
chown USERNAME:mail USERNAME
chmod 600 USERNAME


Configuration
Before starting Pine, eventualy create the dotfile based on our example,
cd ~/
wget pbraun.nethence.com/code/mail/.pinerc
vi .pinerc
edit to your taste :
- change USERNAME where it appears (:%s/USERNAME/your_username/g)
- change personal-name, user-domain, customized-hdrs and alt-addresses
note. the From customized header is only necessary if using an alternate user acount

Note. 'rsh-open-timeout=0' to prevent terrible lags
Note. default signature file is,
cd ~/
vi .signature
Note. default addressbook file is ~/.addressbook
Note. 'user-domain' defines the return path (MAIL FROM). The default is fqdn local hostname
Note. when starting Pine, we get in the folder list (initial-keystroke-list=L) but we've included incoming folder in it se we get everything on the same screen.
Note. as for sorting we recommend two possible configurations,
sort-key=tHread/Reverse
#sort-key=Arrival/Reverse

Don't forget to create the defined mbox folder if they don't exist,
#touch path/to/Drafts
#touch path/to/Sent
#touch path/to//Trash


Ready to go
Prevent Pine from messing with your configuration,
chmod 400 .pinerc

Finaly launch Pine,
pine
Note. to navigate, use arrow keys
Note. press '?' to ask for help


Mbox virtual user
If you need to access your mbox virtual user,
postponed-folder=/var/spool/virtual/example.net/user.imap/Drafts
default-fcc=/var/spool/virtual/example.net/user.imap/Sent
default-saved-msg-folder=/var/spool/virtual/example.net/user.imap/Trash
inbox-path=/var/spool/virtual/example.net/user.imap/inbox
incoming-folders=sent /var/spool/virtual/example.net/user.imap/Sent,
trash /var/spool/virtual/example.net/user.imap/Trash
USERNAME /var/spool/mail/USERNAME
folder-collections=user.imap /var/spool/virtual/example.net/user.imap/[*],
folders mail/[*]
goto-default-rule=inbox-or-folder-in-first-collection


Additional notes
If using multiple emails, eventually add a role to automaticly change your From header accordingly,
S (Setup) > R (Rules) > R (Roles)

To read messages on a remote box (having /etc/rimapd) through SSH,
rsh-path=/usr/bin/ssh
rsh-command="%s %s -q -l %s exec /etc/r%sd"
rsh-open-timeout=5
Ref. docstore.mik.ua/orelly/networking_2ndEd/ssh/ch11_03.htm

To use IMAP,
#{SERVER/user=USERNAME}foldername

Additional and alternate settings (unused),
#incoming-startup-rule=first-recent
#editor="nano -t -r 78 -x -Q #"
#editor="nano -t -H -R -i -m -p -r78 -w -x"#editor="pico -b -e -j -m -r72 -t -w -x -p -Q #"
#editor="nano --historylog --regexp --autoindent --preserve -r80 -w -x"
#editor="pico -b -e -j -m -r72 -t -w -x -p -Q #"
  #printer=
  #personal-print-command=/usr/pkg/bin/enscript -2 -r -f "Helvetica@10/10" -F "Helvetica@6/6"
#incoming-check-rule=automatic
#inc-fld-timeout=2

NetBSD package defaults,
#feature-list=enable-mail-check-cue,
# enable-suspend,
# expanded-view-of-addressbooks,
# include-header-in-reply,
# include-text-in-reply,
# show-selected-in-boldface,
# signature-at-bottom
#sort-key=Arrival/Reverse

Patches,
#
# incoming.patch
#
#incoming-folders-to-check=INBOX, nethenceCC, elge, root
#personal inbox, nethence inbox, club inbox
#[X] enable-check-incoming-folders
#inc-fld-timeout=2
#[X]recheck-all-incoming-folders
#incoming-check-rule=automatic

#
# fancy.patch
#
#(*) regular-index-with-expanded/collapsed-threads
thread-sort-key=Arrival
#[X] enhanced-fancy-thread-support
# and change sort-key at the beginning of this file

#
# all.patch
#
#quote-suppression-threshold=
#threading-display-style-rule=
#threading-index-style-rule=
#compose-rules=
#forward-rules=
#index-rules=
#replace-rules=
#reply-indent-rules=
#reply-leadin-rules=
#reply-subject-rules=
#save-rules=
#smtp-rules=
#sort-rules=
#startup-rules=
#special-text-color=
#maildir-location=
#special-text-foreground-color=
#special-text-background-color=


References
www.washington.edu/pine/getpine/
www.washington.edu/alpine/acquire/
www.washington.edu/pine/tech-notes/config.html


Home | UNIX | Oracle | Code | Practical | Private | Donate | Print | html/css
© 2010 Pierre-Philipp Braun