I want to re-write the Subject: line on selected outgoing emails... so I've
written my filter...
#!/usr/bin/perl -p -i
(/^$/) && ($flg = 1);
if ((!$flg) && (s/^Subject: (.*)/$1/)) {
1 while (s/^\s*(Re|Task Status Report):\s*//i);
$_ = "Subject: Task Status Report: $_";
$flg = 1;
}
.... and this part works okay. Messages passed through the filter have
their Subject: lines prefixed with "Task Status Report" and all the Re's
removed. Horray!
So now I setup my outgoing filter in pine....
sending-filters=/home/matthewm/.taskupdate.pl _TMPFILE_ _INCLUDEALLHDRS_
... but it even if I tell it to filter the headers... pine still treats the
filtered output like the body. So instead of..
<filtered headers>
<body>
I get...
<unfiltered headers>
<filtered headers>
<body>
.. so does anyone know a way to confince pine to allow me to filter the
hearders for real? Or alternativly.. some otherway to do the filtering that
doesn't involve cutting and pasting as I'm composing... ;)
M.
--
WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road. Network Operations - Systems Engineer
PO Box 4169, East Brisbane. phone: +61 7 3249 2500
Queensland, Australia. pgp key id: 0x900E515F
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list