Adding customer headers into Cerb4.
Edit the following file.
cerb4/plugins/cerberusweb.core/cron.classes.php, Pop3Cron::run(), line 1111 in Cerb 4.1 (Build 891)
cerb4/plugins/cerberusweb.core/api/cron.classes.php, Pop3Cron::run(), Line 1109 Cerb 4.2 (build 911).
cerb4/plugins/cerberusweb.core/api/cron.classes.php, Pop3Cron::run(), Line 1117 Cerb 4.2.2 (build XXX).
Patch for 4.2.2 -> http://github.com/rmiddle/cerb4/commit/c0fc3d7a04f5004f94087c811e9c11326...
cerb4/plugins/cerberusweb.core/api/cron.classes.php, Pop3Cron::run(), Line 1120 Cerb 4.2.3.
cerb4/plugins/cerberusweb.core/api/cron.classes.php, Pop3Cron::run(), Line 1120 Cerb 4.3.0.
Than find the following code.
if($fp) {
fwrite($fp,$headers,strlen($headers));
fwrite($fp,"\r\n\r\n");
fwrite($fp,$body,strlen($body));
@fclose($fp);add "fwrite($fp,"Downloaded-From: $account->nickname\r\n");" above the headers
or whatever I want inserted instead of Downloaded-From ?
Example "fwrite($fp,"Message-From: $account->nickname\r\n");"
So the final code is
if($fp) {
fwrite($fp,"Downloaded-From: $account->nickname\r\n");
fwrite($fp,$headers,strlen($headers));
fwrite($fp,"\r\n\r\n");
fwrite($fp,$body,strlen($body));
@fclose($fp);Thanks
Robert
PS and Thank You WebGroup Media, LLC. for you great email management software http:\\Cerb4.com