found in the *statefile*.
While the `UID FETCH` command is in progress, perform the following
for each untagged `FETCH` response sent by the server:
-
- i) if no SMTP/LMTP transmission channel was opened, open one to the
+ i. if no SMTP/LMTP transmission channel was opened, open one to the
server specified with *deliver-method* and send an `EHLO` (or
- `LHO`) command with the domain specified by *deliver-ehlo*;
-
- ii) perform a mail transaction (using [SMTP pipelining][RFC 2920] if
- possible) to send the retrieved message BODY to the SMTP or LMTP
- session; and
-
- ii) append the message UID to the *statefile*.
+ `LHO`) command with the domain specified by *deliver-ehlo* (the
+ channel is kept open and shared for all messages retrieved while
+ the `UID FETCH` IMAP command is in progress);
+ i. perform a mail transaction (using [SMTP pipelining][RFC 2920] if
+ possible) to deliver the retrieved message BODY to the SMTP or
+ LMTP session; and
+ i. append the message UID to the *statefile*.
2. If a SMTP/LMTP transmission channel was opened, send a `QUIT` command
to terminate it gracefully.