#! /usr/bin/crm114 # # paolo_ov3.crm - paolo test script # Copyright 2009 William S. Yerazunis. # This file is under GPLv3, as described in COPYING. window alter (:_dw:) /Return-path: \nEnvelope-to: \nDelivery-date:\nReceived: from\n by paranoia with esmtp\n id 1E24Zm-0008Pl-Bq\nReceived: from\nX-Identity-Key: id1\nDate: Mon\nFrom: International Medical Corporation\nX-Accept-Language: en-us, en\nMIME-Version: 1.0\nTo: bengen@vdst-ka.inka.de\nSubject: You have some free time?\nContent-Type: multipart\/related; boundary="------------000708090009050006030006"\nMessage-Id: \nX-CRM114-Version: 20050415.BlameTheIRS\nX-CRM114-Status: SPAM\nContent-Length: 21549\n\nThis is a multi-part message in MIME format.\n--------------000708090009050006030006\nContent-Type: text\/html; charset=us-ascii\nContent-Transfer-Encoding: 7bit\n\n<\/head>

<\/a><\/p>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx<\/font><\/p>

wwwwwwwwwww? xxxxx<\/font><\/p><\/body><\/html>\n\n--------------000708090009050006030006\nContent-Type: image\/gif;\n name="clonic.GIF"\nContent-Transfer-Encoding: base64\nContent-ID: \nContent-Disposition: inline;\n filename="clonic.GIF"\n\noooooooooooooooooooooooo\/\/\/\/\/oooooooooooooooooooooooooooooo\/oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\nooooooooooooooooooooooooooooo\/oooooooooooooooooooooooooooooooooooooooooooooooooo\n...more garbage follows...\n\n--------------000708090009050006030006--\n\n\n/ { match (:: :headers: :body:) /(.*?)\n\n(.*)/ } isolate (:headers:) { match [:headers:] /^Content-Type: .* boundary="(.+)"/ \ (:x: :boundary:) output /:boundary:=:*:boundary:\n/ } isolate (:c:) /0/ { eval (:c:) /:@::*:c:+1:/ match [:body:] (:x: :headers:) /\n--:*:boundary:\n(.+?)\n\n/ output /:c:=:*:c:\n:*:headers:\n\n/ liaf }