[Mimedefang] extract body from INPUTMSG?

Joseph Brennan brennan at columbia.edu
Tue Mar 10 15:39:59 EDT 2015

--On March 10, 2015 at 15:13:54 -0400 Scott Galambos 
<scottg at particlesoftware.com> 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?

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.

Joseph Brennan
Columbia University Information Technology

More information about the MIMEDefang mailing list