procmail
[Top] [All Lists]

Keeping headers and adding body

1999-11-29 15:41:20
Hi Mailinglist!

Since this is the first time I post here I'd like to introduce myself
shortly: My name is Armin Hahn, I am 23 years old, living in Austria
and studying Mechanical Engineering.

I think this is a real easy questions for hardcore-procmailers but I
can't figure out which program would be best to use (will I need
formail???):
My wish is to forward (bounce) any mail that is bigger than 50kBytes
to another address where I can download it without costs. But I also
want a short notification such as "Dear Armin, there was a Mail, but I
sent it to your Big-Files-Mailbox. Please look to this site because
you can check this mail only per web-interface."

The .rc file I now have looks like this:

:0
* >50000
{
  :0c
  ! destaddress(_at_)server

  :0h:
  $DEFAULT
}

This works just fine.
But what I want is: I want the header to be kept as I got it, the body
to be dumped and instead of the original body I want the notification
I described above.

I hope (and I think) you can help me out!

TIA,
  Armin

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