Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

SmtpSubsetEnvelope

function SmtpSubsetEnvelope(const aSource: iSmtpEnvelope; aRecipients: TStrings; const aIdSuffix: string): iSmtpEnvelope;
A COPY OF aSource CARRYING ONLY THE NAMED RECIPIENTS, for a transaction whose recipients do not all go to the same place - some delivered locally, the rest queued for onward relay. Everything else about the session (the peer, the greeting, the identity, the arrival time, the body parameters) is carried over unchanged. THE ID IS SUFFIXED when the subset is a proper subset, because the spool names its files after it: two subsets sharing an id would overwrite each other on disk, and a suffixed id makes a split transaction visible in the queue.