LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2007, 10:56 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
procmail problem (nested recipes)


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Procmail problem Tinku Linux - Newbie 2 10-15-2005 09:54 AM
procmail problem Civic Linux - Software 1 04-07-2005 10:39 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
procmail problem odious1 Linux - Networking 1 12-11-2003 12:11 PM
Procmail problem J_Szucs Linux - Newbie 1 04-26-2002 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration