On Tue, 22 Sep 2009, Jeff Mincy wrote:

  From: MySQL Student <mysqlstud...@gmail.com>
  Date: Tue, 22 Sep 2009 15:38:47 -0400

  > Try using a local SA setup for stripping the headers. By local, I mean
  > don't use your main production SA - run a separate copy with its own
  > (cut down) configuration and all data base accesses and UBL calls etc
  > turned off.

  Much better idea, thanks. Thanks for the script, too.
  Alex

formail can be used to remove headers, for example:

      To remove all Received: fields from the header:
             formail -I Received:

The following should do what you wanted to remove the X-Spam headers:
 formail -I X-Spam < msg

And if it's still in multiple-message format:

  formail -Yb -I X-Spam -s  <in >out

You can add more headers, like:

  formail -Yb -I X-Spam -I X-Greylist -s <in >out


--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  A sword is never a killer, it is but a tool in the killer's hands.
                          -- Lucius Annaeus Seneca (Martial) 4BC-65AD
-----------------------------------------------------------------------
 Approximately 8761620 firearms legally purchased in the U.S. this year

Reply via email to