I did not know of this header-field. Why not add properties for both? The xautogeneratedreply works for my purpose and the mailservers I have testet against.
Regards Bjørnar -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DZ-Jay Sent: 26. mars 2008 10:07 To: ICS support mailing Subject: Re: [twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas Hello: I don't think this is necessary. First, this headers should be handled by the application (and indeed can easily be done as you pointed out). Second, there is a conventional "X-Loop" header used and supported by many MTAs. http://www.ninebynine.org/IETF/Messaging/draft-klyne-hdrreg-mail -00.html#hdr.X-Loop Most delivery agents do this automatically. It is extremely unlikely that two modern SMTP servers enter in a delivery loop, because this used to be such a big problem before. In any case, this should be handled at the server level, and SmtpProt is intended to be an SMTP client. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html On Mar 25, 2008, at 15:27, Bjørnar Nielsen wrote: > New property: > > property XAutoGeneratedReply : Boolean read > FXAutoGeneratedReply {Bjørnar} > > > write FXAutoGeneratedReply; {Bjørnar} > > > > The reason for using this is to tell the receiving mailserver that it > should not answer this email with "I'm on holliday" or similar. Two > mailservers could send each other mails in definite if no one breaks > the loop. So if you are sending an autogenerated mail, set this flag > to not get a autogenerated mail back. > > > > In procedure TCustomSmtpClient.Data; > > if FXAutoGeneratedReply then begin > {Bjørnar} > > FHdrLines.Add('X-Autogenerated: Reply'); > {Bjørnar} > > end; > {Bjørnar} > > Regards Bjørnar -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 25.03.2008 19:17 No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 25.03.2008 19:17
-- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
