procmail
[Top] [All Lists]

SUMMARY: Just want to forward selected header fields . (to pager)

1997-07-30 03:33:00
MAny thanks to both Michael Stone <mstone(_at_)itri(_dot_)loyola(_dot_)edu> and 
era
eriksson <era(_at_)iki(_dot_)fi> for their solutions.

Era pointed out the procmail archive at
http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/, mentioning
no summary was needed. Indeed I did a search for 'pager' as suggested
and it produced a lot of results, none directly what I wanted.

Michael gave me a recipe off the top of his head that appears to work
perfectly, and I am now using this very happily ....


:0c
* !X-Loop: you(_at_)your(_dot_)domain
{
   FROM=`formail -XFrom:`
   SUBJECT=`formail -XSubject:`

   :0b
   | (echo $FROM; \
      echo $SUBJECT; \
      echo "X-Loop: you(_at_)your(_dot_)domain"; \
      head -c 100) | $SENDMAIL recipient(_at_)forward(_dot_)address
}



Many thanks
David
--
David O'Byrne                           Ben there,
Computer Science Department             Dunne that,
University College Cork IRELAND         Bought the taoiseach.

<Prev in Thread] Current Thread [Next in Thread>