<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>
      myOffice Email Message
    </title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <meta name="date" content="2002-11-01">
  <style type="text/css">
  </style>
  </head>
  <body>
    <span style=
      "color:#FF0000 "><b><span style=
      "font-family:MS Sans Serif ">[Reply]</span></b></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">Further to Richard's comments, the file you need to look at is in:</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">    <b> C:\Program Files\Borland\Delphi7\Source\Indy</b></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">The file is called:</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">     <b>IdMessage.pas</b></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">The lines that you need to alter are in the function</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">     <b>function TIdMessage.GenerateHeader: TIdHeaderList;</b></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#000000 ">Alter like this:</span></span>
    <p>
      <span style=
      "color:#000000 "><b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; ">    Values['X-Priority'] := IntToStr(Ord(Priority) + 1); </span></span></b></span><b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; "><span style=
      "color:#008000 ">{do not localize}</span></span></span></b>
    <p>
      <b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; "><span style=
      "color:#008000 ">//    Values['X-Library'] := gsIdProductName + ' ' + gsIdVersion; {do not localize}</span></span></span></b>
    <p>
      <b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; "><span style=
      "color:#000000 ">    </span><span style=
      "color:#008000 ">// Add the extra-headers</span></span></span></b>
    <p>
      <b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; "><span style=
      "color:#000000 ">    AddStrings(ExtraHeaders);</span></span></span></b>
    <p>
      <b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; "><span style=
      "color:#000000 ">  end;</span></span></span></b>
    <p>
      <b><span style=
      "font-family:Courier,monospace "><span style=
      "font-size:8pt; "><span style=
      "color:#000000 ">end;</span></span></span></b>
    <p>
      <span style=
      "color:#000000 "><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; ">You may want to recompile the bpl as well.</span></span></span>
    <p>
      <span style=
      "color:#000000 "><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; ">Here I commented out the line that adds the "Indy" name and version to the email headers. This is detected by practically all Spam detectors, and assumes your legitimate email to be spam. </span></span></span>
    <p>
      <span style=
      "color:#000000 "><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; ">This caused all sorts of havoc between me and Richard V, as I have a "roll your own" email system designed with Indy, and he used spamassassin (or similar) on his mail server.</span></span></span>
    <p>
      <span style=
      "color:#000000 "><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; ">kind regards</span></span></span>
    <p>
      <span style=
      "color:#000000 "><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; ">Gary</span></span></span>
    <p>
      <span style=
      "color:#000000 "><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; ">A</span></span></span><span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#FF0000 "><b>t 13:13 on 30/11/2004 you wrote </b></span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;To  : leo@cfl.co.nz,delphi@ns3.123.co.nz</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;CC  : </span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;From: Richard Vowles, Richard.Vowles@borland.com</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Content Type: text/plain</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Attached: </span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Do you run the app from the IDE? Often vendors components have code</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;detecting whether they are being used inside an IDE and change their</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;behaviour. If you are using the Indy stuff, then most spam vendors</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;detect such - Indy puts extra informtion in the mail headers. You'll</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;need to figure out how to remove it. Check the mail headers. </span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;It turns out a lot of people use Delphi apps to spam :-(</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Richard</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;-----Original Message-----</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;From: delphi-bounces@ns3.123.co.nz [mailto:delphi-bounces@ns3.123.co.nz]</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;On Behalf Of Leo</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Sent: Tuesday, 30 November 2004 12:21</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;To: delphi@ns3.123.co.nz</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Subject: [DUG] Email marked as SPAM</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;If I compile the program from IDE, a Email will be sent properly, which</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;will not marked as SPAM. But if I compile the program from command line,</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;then the email will be sent and maked as SPAM mail. </span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Any idea?</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Leo</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Software Developer</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;CFL</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;leo@cfl.co.nz</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;http://www.cfl.co.nz</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;_______________________________________________</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Delphi mailing list</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Delphi@ns3.123.co.nz</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;http://ns3.123.co.nz/mailman/listinfo/delphi</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;_______________________________________________</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Delphi mailing list</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;Delphi@ns3.123.co.nz</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;http://ns3.123.co.nz/mailman/listinfo/delphi</span></span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "font-size:10pt; "><span style=
      "color:#008000 ">&gt;</span></span></span><p>
  <font face=arial size = 1 color = Navy><DIV style="WIDTH: 260px; HEIGHT: 50px"><MARQUEE id=marquee1 style="WIDTH: 260px; HEIGHT: 200px" trueSpeed scrollAmount=5 scrollDelay=20 direction=right behavior=slide loop=1 border="2"><hr><table><tr><td><FONT color=black size=4 face = "helvetica,verdana,arial">Gary Benner </FONT></td></tr><tr><td><FONT face="arial, arial, helvetica, sans-serif" color=black size=2>e-Engineer, Lecturer, and Software Developer</FONT></td></tr><br>
<tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.123.co.nz" style="text-decoration:none; color:blue">123 Internet Limited</A></B></FONT></td></tr><tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.waiariki.ac.nz" style="text-decoration:none; color:#993333">Waiariki Institute of Technology</A></B></FONT></td></tr><tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#CECE00 size=2><B><A HREF="http://www.sunshinebags.co.nz" style="text-decoration:none; color:#CECE00">Sunshine Garden Bag Co.</A></B></FONT></td></tr><tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=red size=2><B><A HREF="http://www.sommnet.com" style="text-decoration:none; color:red" >Sommnet.com Limited</A></B></FONT></td></tr><tr><td><font face = "helvetica,verdana,arial" size = 1>Mob: 021 966 992</font></td></tr><tr><td><font face = "helvetica,verdana,arial" size = 1>Email: <A href="mailto:gary@123.co.nz" >gary@123.co.nz</A> </font></td></tr></table></MARQUEE></DIV><br>
<br>
Ref#: 41006<br>
<br>
</body>
</html>