[Mimedefang] extract body from INPUTMSG?

Scott Galambos scottg at particlesoftware.com
Tue Mar 10 16:10:07 EDT 2015


Thanks but that gives me the whole INPUTMSG.  I'm just looking for the 
text body without anything else.


On 3/10/2015 3:39 PM, Joseph Brennan wrote:
>> What is the easiest way to extract a copy of the text body of a message
>> (INPUTMSG) into a variable?
>
> Just this I think (not tested)
>
> if (open(IN, '<', './INPUTMSG')) {
>      while (<IN>) {
>      # stuff it into a variable?
>      }
> close(IN);
>
> But this could be many megabytes in size, so I question whether putting
> it into a variable is a good solution for what you want to do.



More information about the MIMEDefang mailing list