LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-15-2006, 01:19 PM   #1
dlx1
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
.procmailrc help, how do I save just the body?


Can anyone help me with (what I thought would be)
a simple procmailrc problem?

I want to search for a specific subject in an
email and save only the body to a file. I don't want any
of the header information to be saved. From my reading
and asking around, this should work:

$ cat .procmailrc

:O b:
* ^Subject: specific subject
/home/user/textbody


It keeps saving the entire email message, including
all the header information AND envelope "From " line
at the top.


I've tried all the following search lines
:O b
:O Hb:
:O hb:
:O H:
and a few others (with and without the lock)

I have FC 4, sendmail/MailScanner.

Am I missing something obvious?
-dlx1
 
  


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
.procmailrc jayakrishnan Linux - Networking 0 11-19-2005 02:13 AM
Procmailrc file how many do I Need ?? wylie1001 Linux - Software 2 09-07-2005 07:20 PM
procmailrc davidsrsb Slackware 3 06-15-2005 11:07 AM
procmailrc filter for alias skyfly Linux - Security 1 05-19-2005 04:48 AM
procmailrc - substitute certain words to another. drand Linux - Software 1 07-11-2003 12:25 AM

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

All times are GMT -5. The time now is 12:32 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