Configure spam filter (spam assassin)
It is assumed that spamassassin and procmail are installed.
- create directory ~/.procmail (for log files)
- create file ~/mail/SPAM (for the spam)
- file ~/.procmailrc: (here just a standard rule for span, other filter rules analogous)
VERBOSE=off
COMSAT=off
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
:0fw: spamassassin.lock
* < 256000
| /usr/local/bin/spamassassin
:0:
* ^X-Spam-Status: Yes
$MAILDIR/SPAM
- teach spamassassin what is spam und what not:
sa-learn --mbox --spam < spam folder >
sa-learn --mbox --ham < non-spam folder >
- do further configurations in ~/.spamassassin/user_prefs:
required_score 3 | determine what is labeled spam (the higher, the less
likely an email is to be spam)
whilelist_from/blacklist_from < email > | allow filtering of single domains
|
Open attachments in pine
- config-menu
enable-msg-view-attachments: open attachments directly in message (not via v)
show-plain-text-internally: show text-attachments directly in pine
mimetype-search-path: path for .mime-types (s. below)
mailcap-search-path: path for .mailcap (s. below)
- configure .mime-types - set file types:
video/mpeg mpeg mpg mpe
text/html html htm
image/gif gif
image/jpeg jpeg jpg jpe
application/pdf pdf
application/postscript ps
- configure .mailcap - set application to open files with
application/pdf; xpdf -geometry 700x800 %s
application/postscript; gv %s
text/html; /usr/bin/lynx -use_mouse -force_html %s
image/gif; xv %s
video/mpeg; plaympeg %s
More information here: http://www.math.washington.edu/~chappa/pine/pine-info/misc/mime.html#mime-type
|
login per ssh without using password
- generate public/private key pair:
ssh-keygen -t rsa
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): empty
Enter same passphrase again: empty
- create .ssh directory on remote computer (if necessary)
- append public key to remote .ssh directory:
cat .ssh/id_rsa.pub | ssh user@remoteComputer 'cat >> .ssh/authorized_keys'
|
see size of files in directory (like kdirstat)
Konqueror -> View -> View mode -> File size view
|