Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: BounceEmail - Adding to Parser Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 21 August 2014 at 12:11pm | IP Logged Quote msinca

I'm just coming up to speed on using the Mailbee.Net Objects BounceMail functionality.

I've got it working pretty well and can see when it determines Hard/Soft bounces.

One area that I can't seem to get working is the DeliveryStatusParser detecting Challenge Responses.

I have 2 custom conditions that I want to check for (not at the same time):

SUBJECT LINE - "Attention! Please confirm this email."

OR

BODY TEXT - "To control spam, I now allow incoming messages only from senders I have approved beforehand."

I've tried to add
<subject keyword="Attention. Please confirm this email." type="challenge" />

to the 'lang/en/subjects.xml' file but that did not seem to work. I still get a null result from the DeliveryStatusParser.

I haven't tried the BODY TEXT issue yet but any help there would also be appreciated.

Thanks!
Mike

Back to Top View msinca's Profile Search for other posts by msinca
 
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 21 August 2014 at 12:13pm | IP Logged Quote msinca

Ooops, I put in the wrong xml string when I typed this in. I had it correct in the code:

It actually reads:

<subject keyword="Attention! Please confirm this email." type="challenge" />
Back to Top View msinca's Profile Search for other posts by msinca
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 August 2014 at 11:06pm | IP Logged Quote Igor

Hi,

I've asked the developer in charge of BounceMail component to look into this and see if they might suggest anything. Due to the vacation season, this might be a while.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 August 2014 at 11:37pm | IP Logged Quote Igor

Actually, I've just heard back - and according to the developers, only message body is analyzed for that purpose, while subject isn't.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 22 August 2014 at 10:40am | IP Logged Quote msinca

OK. I will try the message body route instead of the subject.

Do you have any documentation on how to build the search parser for the message body? I couldn't find anything other than the actual .xml files (bodytemplates.xml).

I'm trying to understand exactly what to put between the

<contents priority="1">...</contents>

I've tried a bunch of things but can't seem to get it to work properly (DeliveryStatusParser always returns 'null')

I'm also trying to understand what does 'priority' do?

Using the Raw Message below, can you please ask the developer how I would create a parser so that the DeliveryStatusParser identifies it as a "ChallengeResponse".

If I can get one "Raw Messsage" and "<contents>..</contents>" example, I can probably figure out the other ones for myself.

Tell the developer I really appreciate his assistance. It is going to be a tremendous help to our application.


Thanks!!

Mike


-------------------------------------------------
RAW MESSAGE
-------------------------------------------------
Return-Path: <srs0=lfik=5l=bounce.someothersite.net=spamblocker-challenge@smtp1.doe.com>
Received: from out35.sjc.mx.trendmicro.com (out35.sjc.mx.trendmicro.com
[222.222.222.75]) by mail.doe.com with SMTP;      Tue, 29 Jul
2014 04:17:53 -0500
Received: from iin18.sjc.mx.trendmicro.com (unknown [10.30.239.24])     by
out35.sjc.mx.trendmicro.com (Postfix) with ESMTP id 99DAB9810FC     for
<update@doe.com>; Tue, 29 Jul 2014 09:17:24 +0000 (UTC)
Received: from smtp1.doe.com (unknown [199.119.161.212])     by
iin18.sjc.mx.trendmicro.com (Postfix) with ESMTP id 2DAD4980A0D     for
<update@doe.com>; Tue, 29 Jul 2014 09:17:24 +0000 (UTC)
Received: from p0m012.mxlogic.net (mxv245.mxlogic.net
[333.333.333.245]) by smtp1.doe.com with SMTP;      Tue, 29 Jul
2014 04:16:42 -0500
Authentication-Results: p0m012.mxlogic.net; spf=none
Received: from unknown [111.111.195.106] (EHLO
ar-interior.atl.sa.someothersite.net)     by p0m012.mxlogic.net(mxl_mta-8.0.0-3)
over TLS secured channel     with ESMTP id
f7667d35.0.326583.00-2307.482115.p0m012.mxlogic.net (envelope-from
<spamblocker-challenge@bounce.someothersite.net>);     Tue, 29 Jul 2014 03:16:47
-0600 (MDT)
Received: from mdl-increase.atl.sa.someothersite.net ([111.111.195.197])     by
ar-interior.atl.sa.someothersite.net with smtp (Exim 4.34)     id 1XC3WY-0004B5-Jv
     for update@smtp1.doe.com; Tue, 29 Jul 2014 05:16:46 -0400
From: <marysmith@someothersite.net>
Date: Tue, 29 Jul 2014 05:16:21 -0400
Subject: Re: L., your doe.com update.
Reply-To: <nobody@someothersite.net>
Errors-to: nobody@someothersite.net
Precedence: auto_reply
MIME-Version: 1.0
Content-Type: multipart/alternative;
     boundary="SPMB14066253815c6ae473862a47b6c60f8b4e00534f18"
To: Job Update <update@smtp1.doe.com>
X-AnalysisOut: [v=2.1 cv=E+RDpMtl c=1 sm=1 tr=0 a=VH78+ty8h2/BtC2p3f+9Tg==]
X-AnalysisOut: [:117 a=VH78+ty8h2/BtC2p3f+9Tg==:17 a=-Fz4vOnSpNQA:10 a=LlC]
X-AnalysisOut: [Z6HWA_y4A:10 a=nrRFtkld0ZQA:10 a=BLceEmwcHowA:10 a=otouGDm]
X-AnalysisOut: [4AAAA:8 a=5Up8faWwAAAA:8 a=YlVTAMxIAAAA:8 a=gyq6jB-EWHYA:1]
X-AnalysisOut: [0 a=-Bq-4JGLRH-XIST326AA:9 a=v6MMM96S_sUA:10 a=K7R5rV4hpTL]
X-AnalysisOut: [luPlrY28A:9 a=tF_fFv5o2mG2cemX:21 a=_W_S_7VecoQA:10]
Received-SPF: None
X-Spam: [F=0.2000000000; B=0.500(0); spf=0.500; STSI=0.500(0); STSM=0.500(0); CM=0.500; MH=0.500(2014072903); S=0.200(2014051901); SC=]
X-MAIL-FROM: <spamblocker-challenge@bounce.someothersite.net>
X-SOURCE-IP: [111.111.195.106]
Message-ID: <01091724.2DAD0A0D@iin18.sjc.mx.trendmicro.com>
X-TM-Deliver-Signature: a9601834ce2df373f0189c116a84cc4d
X-Rcpt-To: <update@doe.com>
X-SmarterMail-Spam: SPF_Fail, DKIM_None
X-SmarterMail-TotalSpamWeight: 5


This is a multi-part MIME message.

--=_reb-r665F1A2D-t53F776D2
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I apologize for this automatic reply to your email.

To control spam, I now allow incoming messages only from senders I have app=
roved beforehand.

If you would like to be added to my list of approved senders, please fill o=
ut the short request form (see link below). Once I approve you, I will rece=
ive your original message in my inbox. You do not need to resend your messa=
ge. I apologize for this one-time inconvenience.

Click the link below to fill out the request:

https://webmail.pas.someothersite.net/wam/addme?a=3Dmarysmith@someothersite.net&id=
=31e4-19-74954-94d2-44fe1dc50


--=_reb-r665F1A2D-t53F776D2
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>


<style><!--
/* Font Definitions */
@font-face
     {font-family:"Cambria Math";
     panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
     {margin:0in;
     margin-bottom:.0001pt;
     font-size:12.0pt;
     font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
     {mso-style-priority:99;
     color:blue;
     text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
     {mso-style-priority:99;
     color:purple;
     text-decoration:underline;}
span.EmailStyle17
     {mso-style-type:personal-reply;
     font-family:"Calibri","sans-serif";
     color:#1F497D;}
.MsoChpDefault
     {mso-style-type:export-only;
     font-size:10.0pt;}
@page WordSection1
     {size:8.5in 11.0in;
     margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
     {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">I apologize for this automatic reply to your email.<=
o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class=3D"MsoNormal">To control spam, I now allow incoming messages only =
from senders I have approved beforehand.
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class=3D"MsoNormal">If you would like to be added to my list of approved=
senders, please fill out the short request form (see link below). Once I a=
pprove you, I will receive your original message in my inbox. You do not ne=
ed to resend your message. I apologize
for this one-time inconvenience. <o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Click the link below to fill out the request:<o:p></=
o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><a href=3D"https://webmail.pas.someothersite.net/wam/add=
me?a=3Dmarysmith@someothersite.net&id=31e4-19-74954-94d2-44fe1dc50=
0">https://webmail.pas.someothersite.net/wam/addme?a=3Dmarysmith@someothersite.net&=
amp;id=31e4-19-74954-94d2-44fe1dc50</a><o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>

--=_reb-r665F1A2D-t53F776D2--
Back to Top View msinca's Profile Search for other posts by msinca
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 08 September 2014 at 4:06am | IP Logged Quote Igor

To make sure message body is parsed, it needs to be defined in bodytemplates.xml file.

The important point here is that key description of server response need to match {DESCRIPTION} in that file, while the line which matches the template is to be defined in descriptions.xml. That's where bounce type is specified.

Message subject needs to hold one of the lines found in subjects.xml file.

Bounce types available are listed in types.xml file.

We believe that information is sufficient for dealing with bounce database internals. Please bear in mind that you're doing all this at your own risk.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide