Web-API:Parser

From Cerberus Helpdesk Wiki

Jump to: navigation, search

Parse a new message

$mime = <<< EOF
From: jeff@localhost
To: support@localhost
Subject: This is a test through the Web-API.
Message-Id: <abc2@local1234>
X-Mailer: cURL+PHP5
 
This is some message content.
EOF;
 
$postfields = array(
	array('message', $mime),
);
$out = $cerb5->post($base_url . 'parser/parse.xml', $postfields);

Parse a reply

$mime = <<< EOF
From: ben@localhost
To: support@localhost
Subject: [Parser #TKD-88128-525] This is a test through the Web-API.
Message-Id: <abc1@local1234>
X-Mailer: cURL+PHP5
 
This is another reply using the subject masks.
EOF;
 
$postfields = array(
	array('message', $mime),
);
$out = $cerb5->post($base_url . 'parser/parse.xml', $postfields);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox