Re: Digest Number 3339

"Gordon Peterson [email protected] [blat]" <[email protected]> Thu, 11 Apr 2019 11:17:58 -0500
Newsgroups gmane.mail.blat
Message-ID <[email protected]>
--OY9Bd1T9C8tEXuW9jKkaWi5taJprtYgH6oRiqvs
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Most sends typically go well, but it's not all that unusual to have 
things go awry... whether on the initial send (which BLAT will usually 
report) or with a later bounceback from a later mail server in the chain 
(and sometimes that will occur after an e-mail has been reforwarded!)

Checking the return code returned by BLAT is of course a good idea.

You can also have a program scan the log you've recorded to check to 
make sure that things have gone normally, and to issue retries if 
necessary (and that program ought to try various strategies, including 
trying later (the server could be temporarily down or restarting), and 
counting how many retries have been done already... there's no point in 
continuing to retry if something just isn't going to work.

But just because BLAT didn't see a problem (because it sent to the first 
SMTP server) doesn't mean that it got to the final addressee properly.

Another good technique is to also have a program scan the reply address 
Inbox to check for bounces that get reported that way. One reason why 
that's VERY important is because some mail systems (e.g. AOL, IIRC) will 
stop accepting ALL e-mails from your end (to ALL their addressees) if 
they've bounced mail back to you and you keep sending mail to those 
bouncing addresses!   So you need to check your local files before you 
send to see if the address you're going to send to has been bouncing.

The biggest challenge here is that these bouncing messages can appear in 
a HUGE diversity of formats (and those formats can change without 
warning), and the mail can bounce for many different kinds of reasons.  
For example, I had sent a mail within the last week and it bounced back 
because it had been forwarded "too many" times...!

For doing this kind of thing right, I use programs written in SPITBOL (a 
textual pattern matching language... FAST, and WONDERFUL for stuff like 
this) both for scripting the original BLAT sending, processing your 
logged sends, and to fetch and track/process the e-mails that come back 
(including, but not limited to, bouncebacks).  SPITBOL doesn't depend on 
regular expressions, and has FAR better textual pattern recognition (and 
general processing) abilities than just about anything else.  It's an 
(insanely good) implementation of the SNOBOL4 programming language 
(which originated back at Bell Labs, about the time they were also 
working on C and Unix).  It's much better than PERL, which is probably 
what most people who don't know better would try to use for stuff like this.


[quote]

1a. Re: Not continuous error
>      Posted by: "Chip" [email protected] chipprogrammer
>      Date: Wed Apr 10, 2019 10:37 pm ((PDT))
>
>> Hello everyone, inserted this lines on a code:
>>
>> LOCAL cFileBlat := "B1" + LEFT(cHora,2) + SUBSTR(cHora,4,2) +
>> SUBSTR(cHora,7,2) + ".Bat"
>> LOCAL cText                                      := "Blat mensaje.txt -to
>> " + ALLTRIM(oHdr:TOE) + " -s Aprobacion" + " -log blatlog.txt"
>>
>>
>> This is to create a .bat to send automatically an e-mail, almost all the
>> mails go fine but sometimes drops the connection, this is the log:
>>
>> 2019.04.09 10:54:37 (Tue)------------Start of Session-----------------
>> Blat v3.2.19 (build : Nov 18 2017 03:14:35)
>> 32-bit Windows, Full, Unicode
>> Sending mensaje.txt to [email protected]
>> Subject: Aprobacion
>> Login name is [email protected]
>> 2019.04.09 10:54:39 (Tue)-------------End of Session------------------
>>
>> 2019.04.09 10:55:29 (Tue)------------Start of Session-----------------
>> Blat v3.2.19 (build : Nov 18 2017 03:14:35)
>> 32-bit Windows, Full, Unicode
>> Sending mensaje.txt to [email protected]
>> Subject: Aprobacion
>> Login name is [email protected]
>> 2019.04.09 10:55:31 (Tue)-------------End of Session------------------
>>
>> 2019.04.09 10:55:59 (Tue)------------Start of Session-----------------
>> Blat v3.2.19 (build : Nov 18 2017 03:14:35)
>> 32-bit Windows, Full, Unicode
>> Sending mensaje.txt to [email protected]
>> Subject: Aprobacion
>> Login name is [email protected]
>> 2019.04.09 10:56:01 (Tue)-------------End of Session------------------
>>
>> 2019.04.09 11:17:16 (Tue)------------Start of Session-----------------
>> Blat v3.2.19 (build : Nov 18 2017 03:14:35)
>> 32-bit Windows, Full, Unicode
>> Error: Connection to server was dropped.
>> *** Error ***  SMTP server error
>> Error: Not a socket.
>> Error: Not a socket.
>> 2019.04.09 11:17:38 (Tue)-------------End of Session------------------
>>
>> By chance someone knows how to maintain the connection up all the time?
>>
>> Thanks a lot in advance.
>
> Maybe with a telnet session?  If the server is going to drop your
> connection, there is nothing you can do.  In your last entry, Blat will
> return an error which you can check in your program.  If Blat returns zero,
> then everything was good.
>
> Chip
>

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--OY9Bd1T9C8tEXuW9jKkaWi5taJprtYgH6oRiqvs
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/htm=
l4/strict.dtd">
<html>
<head>
</head>






=20
<body style=3D"background-color: #fff;">
<span style=3D"display:none">&nbsp;</span>

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id=3D"ygrp-mlmsg" style=3D"position:relative;">
  <div id=3D"ygrp-msg" style=3D"z-index: 1;">
<!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id=3D"ygrp-text" >
=20=20=20=20=20=20
=20=20=20=20=20=20
      <p>Most sends typically go well, but it&#39;s not all that unusual to=
 have <br>
things go awry... whether on the initial send (which BLAT will usually <br>
report) or with a later bounceback from a later mail server in the chain <b=
r>
(and sometimes that will occur after an e-mail has been reforwarded!)<br>
<br>
Checking the return code returned by BLAT is of course a good idea.<br>
<br>
You can also have a program scan the log you&#39;ve recorded to check to <b=
r>
make sure that things have gone normally, and to issue retries if <br>
necessary (and that program ought to try various strategies, including <br>
trying later (the server could be temporarily down or restarting), and <br>
counting how many retries have been done already... there&#39;s no point in=
 <br>
continuing to retry if something just isn&#39;t going to work.<br>
<br>
But just because BLAT didn&#39;t see a problem (because it sent to the firs=
t <br>
SMTP server) doesn&#39;t mean that it got to the final addressee properly.<=
br>
<br>
Another good technique is to also have a program scan the reply address <br=
>
Inbox to check for bounces that get reported that way. One reason why <br>
that&#39;s VERY important is because some mail systems (e.g. AOL, IIRC) wil=
l <br>
stop accepting ALL e-mails from your end (to ALL their addressees) if <br>
they&#39;ve bounced mail back to you and you keep sending mail to those <br=
>
bouncing addresses!=C2=A0=C2=A0 So you need to check your local files befor=
e you <br>
send to see if the address you&#39;re going to send to has been bouncing.<b=
r>
<br>
The biggest challenge here is that these bouncing messages can appear in <b=
r>
a HUGE diversity of formats (and those formats can change without <br>
warning), and the mail can bounce for many different kinds of reasons.=C2=
=A0 <br>
For example, I had sent a mail within the last week and it bounced back <br=
>
because it had been forwarded &quot;too many&quot; times...!<br>
<br>
For doing this kind of thing right, I use programs written in SPITBOL (a <b=
r>
textual pattern matching language... FAST, and WONDERFUL for stuff like <br=
>
this) both for scripting the original BLAT sending, processing your <br>
logged sends, and to fetch and track/process the e-mails that come back <br=
>
(including, but not limited to, bouncebacks).=C2=A0 SPITBOL doesn&#39;t dep=
end on <br>
regular expressions, and has FAR better textual pattern recognition (and <b=
r>
general processing) abilities than just about anything else.=C2=A0 It&#39;s=
 an <br>
(insanely good) implementation of the SNOBOL4 programming language <br>
(which originated back at Bell Labs, about the time they were also <br>
working on C and Unix).=C2=A0 It&#39;s much better than PERL, which is prob=
ably <br>
what most people who don&#39;t know better would try to use for stuff like =
this.<br>
<br>
[quote]<br>
<br>
1a. Re: Not continuous error<br>
&gt;      Posted by: &quot;Chip&quot; [email protected] chipprogramme=
r<br>
&gt;      Date: Wed Apr 10, 2019 10:37 pm ((PDT))<br>
&gt;<br>
&gt;&gt; Hello everyone, inserted this lines on a code:<br>
&gt;&gt;<br>
&gt;&gt; LOCAL cFileBlat :=3D &quot;B1&quot; + LEFT(cHora,2) + SUBSTR(cHora=
,4,2) +<br>
&gt;&gt; SUBSTR(cHora,7,2) + &quot;.Bat&quot;<br>
&gt;&gt; LOCAL cText                                      :=3D &quot;Blat m=
ensaje.txt -to<br>
&gt;&gt; &quot; + ALLTRIM(oHdr:TOE) + &quot; -s Aprobacion&quot; + &quot; -=
log blatlog.txt&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; This is to create a .bat to send automatically an e-mail, almost a=
ll the<br>
&gt;&gt; mails go fine but sometimes drops the connection, this is the log:=
<br>
&gt;&gt;<br>
&gt;&gt; 2019.04.09 10:54:37 (Tue)------------Start of Session-------------=
----<br>
&gt;&gt; Blat v3.2.19 (build : Nov 18 2017 03:14:35)<br>
&gt;&gt; 32-bit Windows, Full, Unicode<br>
&gt;&gt; Sending mensaje.txt to [email protected]<br>
&gt;&gt; Subject: Aprobacion<br>
&gt;&gt; Login name is [email protected]<br>
&gt;&gt; 2019.04.09 10:54:39 (Tue)-------------End of Session--------------=
----<br>
&gt;&gt;<br>
&gt;&gt; 2019.04.09 10:55:29 (Tue)------------Start of Session-------------=
----<br>
&gt;&gt; Blat v3.2.19 (build : Nov 18 2017 03:14:35)<br>
&gt;&gt; 32-bit Windows, Full, Unicode<br>
&gt;&gt; Sending mensaje.txt to [email protected]<br>
&gt;&gt; Subject: Aprobacion<br>
&gt;&gt; Login name is [email protected]<br>
&gt;&gt; 2019.04.09 10:55:31 (Tue)-------------End of Session--------------=
----<br>
&gt;&gt;<br>
&gt;&gt; 2019.04.09 10:55:59 (Tue)------------Start of Session-------------=
----<br>
&gt;&gt; Blat v3.2.19 (build : Nov 18 2017 03:14:35)<br>
&gt;&gt; 32-bit Windows, Full, Unicode<br>
&gt;&gt; Sending mensaje.txt to [email protected]<br>
&gt;&gt; Subject: Aprobacion<br>
&gt;&gt; Login name is [email protected]<br>
&gt;&gt; 2019.04.09 10:56:01 (Tue)-------------End of Session--------------=
----<br>
&gt;&gt;<br>
&gt;&gt; 2019.04.09 11:17:16 (Tue)------------Start of Session-------------=
----<br>
&gt;&gt; Blat v3.2.19 (build : Nov 18 2017 03:14:35)<br>
&gt;&gt; 32-bit Windows, Full, Unicode<br>
&gt;&gt; Error: Connection to server was dropped.<br>
&gt;&gt; *** Error ***  SMTP server error<br>
&gt;&gt; Error: Not a socket.<br>
&gt;&gt; Error: Not a socket.<br>
&gt;&gt; 2019.04.09 11:17:38 (Tue)-------------End of Session--------------=
----<br>
&gt;&gt;<br>
&gt;&gt; By chance someone knows how to maintain the connection up all the =
time?<br>
&gt;&gt;<br>
&gt;&gt; Thanks a lot in advance.<br>
&gt;<br>
&gt; Maybe with a telnet session?  If the server is going to drop your<br>
&gt; connection, there is nothing you can do.  In your last entry, Blat wil=
l<br>
&gt; return an error which you can check in your program.  If Blat returns =
zero,<br>
&gt; then everything was good.<br>
&gt;<br>
&gt; Chip<br>
&gt;<br>
<br>
---<br>
This email has been checked for viruses by Avast antivirus software.<br>
https://www.avast.com/antivirus<br>
<br>
</p>

    </div>
=20=20=20=20=20

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <div style=3D"color: #fff; height: 0;">__._,_.___</div>

=20=20=20=20=20=20=20=20=20=20
=20=20
=20

=20=20=20=20
    <div style=3D"clear:both"> </div>

    <div id=3D"fromDMARC" style=3D"margin-top: 10px;">
        <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background=
-color:#E3E3E3;">
        Posted by: Gordon Peterson &lt;[email protected]&gt;        <hr st=
yle=3D"height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3=
;">
     </div>
    <div style=3D"clear:both"> </div>

    <table cellspacing=3D4px style=3D"margin-top: 10px; margin-bottom: 10px=
; color: #2D50FD;">
      <tbody>
        <tr>
          <td style=3D"font-size: 12px; font-family: arial; font-weight: bo=
ld; padding: 7px 5px 5px;"  >
                          <a style=3D"text-decoration: none; color: #2D50FD=
" href=3D"https://groups.yahoo.com/neo/groups/blat/conversations/messages/1=
4087;_ylc=3DX3oDMTJwam85ODJ0BF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBzcElkAzE=
3MDUwMDczODkEbXNnSWQDMTQwODcEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxNTU0OTk5NDg2?a=
ct=3Dreply&messageNum=3D14087">Reply via web post</a>
                      </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;" >
            <a href=3D"mailto:[email protected]?subject=3DRe%3A%20%5Bblat%=
5D%20Digest%20Number%203339" style=3D"text-decoration: none; color: #2D50FD=
;">
               Reply to sender            </a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;">
            <a href=3D"mailto:[email protected]?subject=3DRe%3A%20%5Bbla=
t%5D%20Digest%20Number%203339" style=3D"text-decoration: none; color: #2D50=
FD">
              Reply to group            </a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;" >
            <a href=3D"https://groups.yahoo.com/neo/groups/blat/conversatio=
ns/newtopic;_ylc=3DX3oDMTJkZHMwNml2BF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBz=
cElkAzE3MDUwMDczODkEc2VjA2Z0cgRzbGsDbnRwYwRzdGltZQMxNTU0OTk5NDg2" style=3D"=
text-decoration: none; color: #2D50FD">Start a New Topic</a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;color: #2D50FD;" >
                            <a href=3D"https://groups.yahoo.com/neo/groups/=
blat/conversations/topics/14087;_ylc=3DX3oDMTM1NWdxYmllBF9TAzk3MzU5NzE0BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwODcEc2VjA2Z0cgRzbGsDdnR=
wYwRzdGltZQMxNTU0OTk5NDg2BHRwY0lkAzE0MDg3" style=3D"text-decoration: none; =
color: #2D50FD;">Messages in this topic</a>
                (1)
                      </td>
        </tr>
      </tbody>
    </table>

=20=20=20=20=20=20=20=20
<div id=3D"megaphoneModule">
            <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; backgr=
ound-color:#E3E3E3;">
        <div>
	     <div class=3D"stream" style=3D"margin-bottom:10px;">
        <div style=3D"background-color:white;">
            <div class=3D"sn-img" style=3D"display:inline;"><img name=3D"tn=
_file" style=3D"padding:0px 10px;vertical-align:top;margin-top:5px;" src=3D=
"https://s.yimg.com/ru/static/images/yg/img/megaphone/1464031581_phpFA8bON"=
 height=3D"82" width=3D"82"></div>
            <div class=3D"mod-txt" style=3D"display:inline-block;">
                <a rel=3D"nofollow" name=3D"sub_url" target=3D"_blank" href=
=3D"https://yho.com/1wwmgg" style=3D"color:#0000FF;display:block;margin-lef=
t:5px;text-decoration:none;"><span style=3D"font-size:15px;">Have you tried=
 the highest rated email app?</span></a>
                <div style=3D"max-width:530px;padding:2px 5px;">With 4.5 st=
ars in iTunes, the Yahoo Mail app is the highest rated email app on the mar=
ket. What are you waiting for? Now you can access all your inboxes (Gmail, =
Outlook, AOL and more) in one place. Never delete an email again with 1000G=
B of free cloud storage.</div>
            </div>
        </div>
    </div>        </div>=20=20
=20=20=20=20=20
    <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background-col=
or:#E3E3E3;">
</div>

<!------- Start Nav Bar ------>


    <div id=3D"ygrp-grfd" style=3D"font-family: Verdana; font-size: 12px; p=
adding: 15px 0;">
=20=20=20=20=20=20
<!-- |**|begin egp html banner|**| -->

      -- <BR>
Homepage:<BR>
&nbsp; <a href=3D"http://www.blat.net">http://www.blat.net</a><BR>
<BR>
</body>

<!--~-|**|PrettyHtmlStart|**|-~-->
<head>
  <style type=3D"text/css">
  <!--
  #ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
  #ygrp-sponsor #ygrp-lc {
  font-family: Arial;
}

#ygrp-sponsor #ygrp-lc #hd {
  margin: 10px 0px;
  font-weight: 700;
  font-size: 78%;
  line-height: 122%;
}

#ygrp-sponsor #ygrp-lc .ad {
  margin-bottom: 10px;
  padding: 0 0;
}

  #actions {
    font-family: Verdana;
    font-size: 11px;
    padding: 10px 0;
  }

  #activity {
    background-color: #e0ecee;
    float: left;
    font-family: Verdana;
    font-size: 10px;
    padding: 10px;
  }

  #activity span {
    font-weight: 700;
  }

  #activity span:first-child {
    text-transform: uppercase;
  }

  #activity span a {
    color: #5085b6;
    text-decoration: none;
  }

  #activity span span {
    color: #ff7900;
  }

  #activity span .underline {
    text-decoration: underline;
  }

  .attach {
    clear: both;
    display: table;
    font-family: Arial;
    font-size: 12px;
    padding: 10px 0;
    width: 400px;
  }

  .attach div a {
    text-decoration: none;
  }

  .attach img {
    border: none;
    padding-right: 5px;
  }

  .attach label {
    display: block;
    margin-bottom: 5px;
  }

  .attach label a {
    text-decoration: none;
  }
=20=20
  blockquote {
    margin: 0 0 0 4px;
  }

  .bold {
    font-family: Arial;
    font-size: 13px;
    font-weight: 700;
  }

  .bold a {
    text-decoration: none;
  }

  dd.last p a {
    font-family: Verdana;
    font-weight: 700;
  }

  dd.last p span {
    margin-right: 10px;
    font-family: Verdana;
    font-weight: 700;
  }

  dd.last p span.yshortcuts {
    margin-right: 0;
  }

  div.attach-table div div a {
    text-decoration: none;
  }

  div.attach-table {
    width: 400px;
  }

  div.file-title a, div.file-title a:active, div.file-title a:hover, div.fi=
le-title a:visited {
    text-decoration: none;
  }

  div.photo-title a, div.photo-title a:active, div.photo-title a:hover, div=
..photo-title a:visited {
    text-decoration: none;
  }

  div#ygrp-mlmsg #ygrp-msg p a span.yshortcuts {
    font-family: Verdana;
    font-size: 10px;
    font-weight: normal;
  }

  .green {
    color: #628c2a;
  }

  .MsoNormal {
    margin: 0 0 0 0;
  }

  o {
    font-size: 0;
  }

  #photos div {
    float: left;
    width: 72px;
  }

  #photos div div {
    border: 1px solid #666666;
    height: 62px;
    overflow: hidden;
    width: 62px;
  }

  #photos div label {
    color: #666666;
    font-size: 10px;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    width: 64px;
  }

  #reco-category {
    font-size: 77%;
  }

  #reco-desc {
    font-size: 77%;
  }

  .replbq {
    margin: 4px;
  }

  #ygrp-actbar div a:first-child {
   /* border-right: 0px solid #000;*/
    margin-right: 2px;
    padding-right: 5px;
  }

  #ygrp-mlmsg {
    font-size: 13px;
    font-family: Arial, helvetica,clean, sans-serif;
    *font-size: small;
    *font: x-small;
  }

  #ygrp-mlmsg table {
    font-size: inherit;
    font: 100%;
  }

  #ygrp-mlmsg select, input, textarea {
    font: 99% Arial, Helvetica, clean, sans-serif;
  }

  #ygrp-mlmsg pre, code {
    font:115% monospace;
    *font-size:100%;
  }

  #ygrp-mlmsg * {
    line-height: 1.22em;
  }

  #ygrp-mlmsg #logo {
    padding-bottom: 10px;
  }


  #ygrp-msg p a {
    font-family: Verdana;
  }

  #ygrp-msg p#attach-count span {
    color: #1E66AE;
    font-weight: 700;
  }

  #ygrp-reco #reco-head {
    color: #ff7900;
    font-weight: 700;
  }

  #ygrp-reco {
    margin-bottom: 20px;
    padding: 0px;
  }

  #ygrp-sponsor #ov li a {
    font-size: 130%;
    text-decoration: none;
  }

  #ygrp-sponsor #ov li {
    font-size: 77%;
    list-style-type: square;
    padding: 6px 0;
  }=20

  #ygrp-sponsor #ov ul {
    margin: 0;
    padding: 0 0 0 8px;
  }

  #ygrp-text {
    font-family: Georgia;
  }

  #ygrp-text p {
    margin: 0 0 1em 0;
  }

  #ygrp-text tt {
    font-size: 120%;
  }

  #ygrp-vital ul li:last-child {
    border-right: none !important;=20
  }=20
  -->
  </style>
</head>

<!--~-|**|PrettyHtmlEnd|**|-~-->
</html>
<!-- end group email -->


--OY9Bd1T9C8tEXuW9jKkaWi5taJprtYgH6oRiqvs--