When parsing an email, TIdMessage.ReplyTo
looks at the Reply-To
header first, and if empty/missing then looks at the Return-Path
header. If you want to know whether Reply-To
by itself is blank/missing or not, you will have to look at TIdMessage.Headers.Values['Reply-To']
manually.
Thinking about it more, and doing some research into how Reply-To
and Return-Path
actually work, it probably makes sense to remove Return-Path
from the TIdMessage.ReplyTo
property, so I have made that change now.