Below is my .procmailrc. Please help me with any corrections I need to make, or anything missing. Email being sent from
example@gmail.com,
example@yahoo.com, or
example@messaging.sprintpcs.com are not being sent to my printer. I did put the correct name of my printer and cups is running as shown by this command.
Code:
chris@ubuntu:~$ lpstat -a
Deskjet_D2400_2 accepting requests since Mon 10 Dec 2007 08:27:03 AM CST
OfficeJet-7110 accepting requests since Mon 30 Jul 2007 02:03:09 PM CDT
PDF accepting requests since Fri 19 Oct 2007 12:32:56 AM CDT
PSC-1400 accepting requests since Sun 09 Sep 2007 02:38:46 AM CDT
chris@ubuntu:~$
Code:
# .procmailrc
# routes incoming mail to appropriate mailboxes
# assignments
PATH=/usr/bin:/usr/local/bin:/bin
MAILDIR=$HOME/Mail
DEFAULT=/var/mail/chris
#LOGFILE=$MAILDIR/log.`date +%y-%m-%d`
LOGFILE=$MAILDIR/.procmaillog
SHELL=/bin/bash
# recipes
# :0 [flags] [: [lock-file] ]
# zero or more conditions
# one action line or nested block
# Put mail from SATLUG mailing list into satlug
:0: # the last colon means use a lockfie
* ^(From|Cc|To).*satlug
satlug # put these messages in th 'satlug' folder
:0:
* ^(From).*(example@gmail.com|example@yahoo.com|example@messaging.sprintpcs.com)
{
:0 c
example
:0
| lpr -p -P Deskjet_D2400_2
}
:0:
* From.*root@ubuntu
* Subject: Cron <root@ubuntu>
cron