Question: Linux 1) What does the line LOGFILE=$HOME/logs/procmail/log.`date +%y%m` in the procmailrc example (below) do? PATH=/bin:/usr/bin:/usr/local/bin UMASK=077 LOGFILE=$HOME/logs/procmail/log.`date +%y%m` MAILDIR=$HOME/mail # Messages marked as spam by
Linux
1) What does the line
LOGFILE=$HOME/logs/procmail/log.`date +%y%m`
in the procmailrc example (below) do?
PATH=/bin:/usr/bin:/usr/local/bin UMASK=077 LOGFILE=$HOME/logs/procmail/log.`date +%y%m` MAILDIR=$HOME/mail # Messages marked as spam by SpamAssassin :0: * ^X-Spam-Flag:.YES spam # Messages with a flag value not high enough to trigger X-Spam-Flag # SpamAssassin's threshold is a score of 5 or higher. # My personal threshold is anything with a score of 3 or higher # Note that the + signs must be escaped since they are ERE metacharacters :0: * ^X-Spam_bar:.\+\+\+ spam # This looks for emails from a specific address :0: * ^From:.*bakersfield.customercare@mybrighthouse.com brighthouse # This recipe will save a copy of all emails to your Sleipnir inbox # and forward them to another email address :0c ! username@otheremail.invalid # Replace with desired email address # This recipe is a variation on the above. It will only forward email # which match the RE given. :0c * ^TO.*mdanforth.* ! username@otheremail.invalid
2) What procmail recipe would you use to move all emails with a subject containing the word "Grade" into a folder called grades?
3) What does the expandtab option for vim do?
4) What line would you add to your .vimrc file (below) to turn classic vi compatability on?
" Use autocommand to override Sleipnir default settings. " First checks that autocommand is enabled, then defines the groups to change. if has("autocmd") " Override Sleipnir's defaults for cpp/c files to the following: " tabstop=2 (tab key pressed) " shiftwidth=2 (autoindenting by cindent) " expandtabs (replace tab key with tabstop spaces) " " Needs filetype detection to be on. Considers a C/C++ to be the following: " c C source files " cpp C++ source files " ch C/C++ header files augroup cprog " Remove existing cprog autocommands au! " Add the following cprog autocommands autocmd FileType c,ch,cpp set tabstop=2 autocmd FileType c,ch,cpp set shiftwidth=2 autocmd FileType c,ch,cpp set expandtab augroup END " Turn off autoindenting for html files since it likes to indent every " single Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
