emailparse - Parses the content of an email.
emailparse (email:"value") emailparse ("value")
Note: In the followings examples, the _ between the { should be removed to make it work.
res={_{ for a dir("/tests/mail") do email = read(a.path); res = emailparse(email); sn_nb; ":"; res.Subject; " "; res.sn_body.length(); " "; endfor }}. return res=0:sshd-60.28.246.143 1 1:Logwatch for lynx.sednove.com (Linux) 1218190 2:Cron/local/bin/db 859 3:Cron /local/bin/compress_logs 5832 .),{asm => "-a", strict => 1}); (No linefeed in the output. This is for clarity)
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com