BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Do Custom Email Headers Persist for Replies

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Johnnie Norsworthy
Guest





PostPosted: Fri Jul 14, 2006 9:49 pm    Post subject: Do Custom Email Headers Persist for Replies Reply with quote



My software sends emails using Indy. If I add a custom header to an email
(for identifying a specific database record), will this header be removed
when someone replies to the message? Does the email program used for
replying affect this?

Thanks,
Johnnie
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jul 14, 2006 10:06 pm    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote



"Johnnie Norsworthy" <jln206 (AT) verizon (DOT) net> wrote in message
news:44b7cb30$1 (AT) newsgroups (DOT) borland.com...

Quote:
My software sends emails using Indy. If I add a custom header to
an email (for identifying a specific database record), will this header
be removed when someone replies to the message?

Usually not, especially if the header starts with 'X-'. Most programs
preserve those kinds of headers.

Quote:
Does the email program used for replying affect this?

Yes, since the program has to make a copy of the message when replying. If
it does not copy all of the headers properly, then you will have to tell the
program's author that the replying is faulty.


Gambit
Back to top
Johnnie Norsworthy
Guest





PostPosted: Fri Jul 14, 2006 10:53 pm    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote



"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:44b7cf51$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Johnnie Norsworthy" <jln206 (AT) verizon (DOT) net> wrote in message
news:44b7cb30$1 (AT) newsgroups (DOT) borland.com...

My software sends emails using Indy. If I add a custom header to
an email (for identifying a specific database record), will this header
be removed when someone replies to the message?

Usually not, especially if the header starts with 'X-'. Most programs
preserve those kinds of headers.

Thanks for the information. I am going to test with some X-Headers

Quote:
Does the email program used for replying affect this?

Yes, since the program has to make a copy of the message when replying.
If
it does not copy all of the headers properly, then you will have to tell
the
program's author that the replying is faulty.

Is there any other "secret" way I can add a simple text field that always
gets returned in an email reply? I can't assume the message body will be
retained.

What I am trying to do is file the email responses in a database and I need
some way of identifying the customer and specific ID of a record.

Thanks again,
Johnnie
Back to top
Johnnie Norsworthy
Guest





PostPosted: Fri Jul 14, 2006 11:28 pm    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:44b7cf51$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Johnnie Norsworthy" <jln206 (AT) verizon (DOT) net> wrote in message
news:44b7cb30$1 (AT) newsgroups (DOT) borland.com...

My software sends emails using Indy. If I add a custom header to
an email (for identifying a specific database record), will this header
be removed when someone replies to the message?

Usually not, especially if the header starts with 'X-'. Most programs
preserve those kinds of headers.

I created an email with two X-Headers added:
X-OID: Test
X-APT: 123456

They were included in the received message, but when I replied the response
message did not include the headers using Outlook 2003.

-Johnnie
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jul 15, 2006 12:48 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Johnnie Norsworthy" <jln206 (AT) verizon (DOT) net> wrote in message
news:44b7da36 (AT) newsgroups (DOT) borland.com...

Quote:
Is there any other "secret" way I can add a simple text field
that always gets returned in an email reply?

Some systems put the relevant data into the Subject header, so that the ID
is still in the Subject when replying. Others provide a "Reply-To" header
that includes the ID as part of the email address where the reply is to be
sent (you need custom control over the SMTP server in order to implement
this).

Quote:
I can't assume the message body will be retained.

Some systems do require that, and say as much in the body text so users
won't delete the required fields.


Gambit
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jul 15, 2006 12:57 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Johnnie Norsworthy" <jln206 (AT) verizon (DOT) net> wrote in message
news:44b7e299 (AT) newsgroups (DOT) borland.com...

Quote:
I created an email with two X-Headers added:
X-OID: Test
X-APT: 123456

They were included in the received message, but when I replied
the response message did not include the headers using Outlook 2003.

Further research reveils that many email programs do not preserve custom
headers after all, if very rarely. You would be best off sticking with
putting your data into the Subject header, or into the return address.


Gambit
Back to top
Johnnie Norsworthy
Guest





PostPosted: Sat Jul 15, 2006 2:07 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:44b7f759$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Johnnie Norsworthy" <jln206 (AT) verizon (DOT) net> wrote in message
news:44b7e299 (AT) newsgroups (DOT) borland.com...

I created an email with two X-Headers added:
X-OID: Test
X-APT: 123456

They were included in the received message, but when I replied
the response message did not include the headers using Outlook 2003.

Further research reveils that many email programs do not preserve custom
headers after all, if very rarely. You would be best off sticking with
putting your data into the Subject header, or into the return address.

I like the idea of using the return address - I never considered that one.
Maybe I can use all three methods: return address, coded subject line and
then throw inconsistent replies in a mailbox for human review.

Thanks for all you help.

-Johnnie
Back to top
Ciaran Costelloe
Guest





PostPosted: Sat Jul 15, 2006 5:50 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

Johnnie Norsworthy wrote:

Quote:
My software sends emails using Indy. If I add a custom header to an
email (for identifying a specific database record), will this header
be removed when someone replies to the message? Does the email
program used for replying affect this?

Thanks,
Johnnie

Add a References header and In-Reply-To header, they should be
preserved (while the replying client may add extra references, it
should include your one). That is what they are for.

Ciaran
Back to top
Johnnie Norsworthy
Guest





PostPosted: Sat Jul 15, 2006 7:59 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b83bbb (AT) newsgroups (DOT) borland.com...
Quote:
Johnnie Norsworthy wrote:

My software sends emails using Indy. If I add a custom header to an
email (for identifying a specific database record), will this header
be removed when someone replies to the message? Does the email
program used for replying affect this?


Add a References header and In-Reply-To header, they should be
preserved (while the replying client may add extra references, it
should include your one). That is what they are for.

Great. I'll experiment with that.
Back to top
Philip von Melle
Guest





PostPosted: Sat Jul 15, 2006 8:11 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Remy Lebeau \(TeamB\)" <no.spam (AT) no (DOT) spam.com> wrote:

Quote:
"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b83bbb (AT) newsgroups (DOT) borland.com...

Add a References header and In-Reply-To header, they
should be preserved (while the replying client may add
extra references, it should include your one). That is
what they are for.

The References header applies to newsgroup postings, not to email.

References headers certainly applies to email - see RFC2822 section 3.6.4

Philip
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jul 15, 2006 8:11 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b83bbb (AT) newsgroups (DOT) borland.com...

Quote:
Add a References header and In-Reply-To header, they
should be preserved (while the replying client may add
extra references, it should include your one). That is
what they are for.

The References header applies to newsgroup postings, not to email.


Gambit
Back to top
Johnnie Norsworthy
Guest





PostPosted: Sat Jul 15, 2006 8:11 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b83bbb (AT) newsgroups (DOT) borland.com...
Quote:
Add a References header and In-Reply-To header, they should be
preserved (while the replying client may add extra references, it
should include your one). That is what they are for.

Both the "References" header and the "In-Reply-To" header made it into the
email I received, but when I responded to that message "References" was
removed completely, and "In-Reply-To" was blanked by Outlook 2003.
Back to top
Ciaran Costelloe
Guest





PostPosted: Sun Jul 16, 2006 3:21 am    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

Johnnie Norsworthy wrote:

Quote:
"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b83bbb (AT) newsgroups (DOT) borland.com...
Add a References header and In-Reply-To header, they should be
preserved (while the replying client may add extra references, it
should include your one). That is what they are for.

Both the "References" header and the "In-Reply-To" header made it
into the email I received, but when I responded to that message
"References" was removed completely, and "In-Reply-To" was blanked by
Outlook 2003.

That is very unfortunate: to me, that means that Outlook does not
comply with the RFCs, though I suppose I should not be surprised.

It is possible that Outlook is using an X header: send an email to it,
and check if the reply has any similar X header (like X-In-Reply-To),
then try sending it an email with a similar X header and see if it
returns it. Your email program may have to then send those in addition
to the standard RFC ones.

Ciaran
Back to top
Johnnie Norsworthy
Guest





PostPosted: Mon Jul 17, 2006 8:00 pm    Post subject: Re: Do Custom Email Headers Persist for Replies Reply with quote

"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b96a68 (AT) newsgroups (DOT) borland.com...
Quote:
Johnnie Norsworthy wrote:

"Ciaran Costelloe" <ccostelloe (AT) flogas (DOT) ie> wrote in message
news:44b83bbb (AT) newsgroups (DOT) borland.com...
Add a References header and In-Reply-To header, they should be
preserved (while the replying client may add extra references, it
should include your one). That is what they are for.

Both the "References" header and the "In-Reply-To" header made it
into the email I received, but when I responded to that message
"References" was removed completely, and "In-Reply-To" was blanked by
Outlook 2003.

That is very unfortunate: to me, that means that Outlook does not
comply with the RFCs, though I suppose I should not be surprised.

It is possible that Outlook is using an X header: send an email to it,
and check if the reply has any similar X header (like X-In-Reply-To),
then try sending it an email with a similar X header and see if it
returns it. Your email program may have to then send those in addition
to the standard RFC ones.

I tried this:
I added headers:
References, In-Reply-To, X-References, X-In-Reply-To
They were all received by Outlook 2003, so I know Indy is sending them fine.

When replying:
All those headers were removed, except In-Reply-To, which was blank on the
response.

Should the headers be a specific format to be retained? I was just testing
with random alpha and number text.

-Johnnie
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.