Adding "IN-REPLY-TO" keyword to a mail header with UPOPMAIL | Uniface 9 | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Adding "IN-REPLY-TO" keyword to a mail header with UPOPMAIL
12 May 2017
10:56 am
Avatar
jnrHerzet
New Member
Forum Posts: 2
Member Since:
13 Nov 2014
sp_UserOfflineSmall Offline

Hi ,

Is there a way to set the “IN-REPLY-TO” field in a mail header when sending it with UPOPMAIL ?   The keyword isn’t mentioned in the documentation (sendMail) and I need it to be able to respond to automatically generated mails.   

I’d like to write something like this : 

$$header = “TO=doctor.gonzo@my.net;FROM=%%$user%%%@shrubco.com;SUBJECT=Conference Registration;IN-REPLY-TO=incomingMessageID
activate “UPOPMail”.SendMail(“mailhost.wangle.com”, $$header, MAIL_MESSAGE, “”,0)

 Many thanks …

Best Regards,

Georges

 

 
12 May 2017
12:22 pm
Avatar
diseli
Admin
Forum Posts: 746
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Georges,

Which Uniface version are you using?

With Uniface 9.4 the UPOPMAIL component was enhanced to support sending HTML email. As a result of this a new operation was introduced that is called Send that allows you send emails as text or HTML. In contrast to the old SendMail Operation the new operation defines the message header using the following operations:

* SetToList
* SetCCList
* SetBCCList
* SetReplyTo
* SetFrom
* SetSubject
* SetPriority
SetMessageId

I guess that ReplyTo is what you ar looking for:

“Specify the email address that is to receive any replies to the current message.”

Hope this helps.

Best regards,

Daniel Iseli
Uniface Technical Support

12 May 2017
12:39 pm
Avatar
Iain Sharp
Member
Forum Posts: 591
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

No, that’s not the one he’s asking for, that header is “when replying to this message send the reply to this email”, what he’s looking for is access to the IN-REPLY-TO header, which is “This message is a reply to message Id XXXXXXXX”. 

I don’t think any of those headers are it. We used to hack message headers by putting carriage returns and new header info in the Subject, but since it switched to unicode and therefore encodes the subject this isn’t possible any more. 

I haven’t investgated whether the same trick would allow access to the headers section from (say) SetReplyTo (so you do something like)

 

XXX->SetReplyTo(“me@my.domain%%^IN-REPLY-TO=XXXXXXXXXXXXX”)

and the %%^ puts in a newline and therefore access to a new header. 

But I do know the others (SetToList,SetCCList,SetBCCList & SetFrom) parse the input, so it can’t be done there. SetSubject encodes the input so that doesn’t work, SetPriority is numeric only so no chance there. 

12 May 2017
12:54 pm
Avatar
diseli
Admin
Forum Posts: 746
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Iain Sharp said
No, that’s not the one he’s asking for, that header is “when replying to this message send the reply to this email”, what he’s looking for is access to the IN-REPLY-TO header, which is “This message is a reply to message Id XXXXXXXX”. 

I don’t think any of those headers are it. We used to hack message headers by putting carriage returns and new header info in the Subject, but since it switched to unicode and therefore encodes the subject this isn’t possible any more. 

I haven’t investgated whether the same trick would allow access to the headers section from (say) SetReplyTo (so you do something like)

 

XXX->SetReplyTo(“me@my.domain%%^IN-REPLY-TO=XXXXXXXXXXXXX”)

and the %%^ puts in a newline and therefore access to a new header. 

But I do know the others (SetToList,SetCCList,SetBCCList & SetFrom) parse the input, so it can’t be done there. SetSubject encodes the input so that doesn’t work, SetPriority is numeric only so no chance there.   

Thanks for clarifying this, Iain.

I guess, in that case this is currently not possible using UPOPMAIL. Sorry. Looks like a valid candidate for the wish list (once it’s up-and-running again on the new site).

12 May 2017
1:59 pm
Avatar
jnrHerzet
New Member
Forum Posts: 2
Member Since:
13 Nov 2014
sp_UserOfflineSmall Offline

Thanks for your answers !   We use Uniface 9.7 .   And , right,  it’s the “In-Reply-To” attribute which I want to use, not the “ReplyTo”.   So this would be a “nice to have”. 

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1676

Iain Sharp: 591

Theo Neeskens: 331

rogerw: 226

gianni: 220

lalitpct: 194

istiller: 182

-GHAN-: 171

sochaz: 165

Knut: 162

Member Stats:

Guest Posters: 3

Members: 3356

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 1946

Posts: 8404

Newest Members:

LesliePaimi, RonnieChast, EdB, Davidrof, Swimmerchola, Vikadions, vondes, Marilynheed, HowardKer, JamesHoofs

Administrators: admin: 23, Adrian Gosbell: 265, diseli: 746, Bob Maier: 2, Nico Peereboom: 55, Michael Rabone: 4, richiet: 406, JanCees: 24