let w_field = function
| `ResentCc l ->
string "Resent-Cc: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ Address.Encoder.w_addresses l $ close_box) (unlift k))))
$ w_crlf
| `ResentMessageID m ->
string "Resent-Message-ID: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ MsgID.Encoder.w_msg_id m $ close_box) (unlift k))))
$ w_crlf
| `ResentSender p ->
string "Resent-Sender: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ Address.Encoder.w_mailbox p $ close_box) (unlift k))))
$ w_crlf
| `ResentBcc l ->
string "Resent-Bcc: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ Address.Encoder.w_addresses l $ close_box) (unlift k))))
$ w_crlf
| `ResentFrom l ->
string "Resent-From: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ w_lst (string "," $ space) Address.Encoder.w_mailbox l $ close_box) (unlift k))))
$ w_crlf
| `ResentReplyTo l ->
string "Resent-Reply-To: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ Address.Encoder.w_addresses l $ close_box) (unlift k))))
$ w_crlf
| `ResentDate d ->
string "Resent-Date: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ Date.Encoder.w_date d $ close_box) (unlift k))))
$ w_crlf
| `ResentTo l ->
string "Resent-To: "
$ (fun k -> Wrap.(lift ((hovbox 0 $ Address.Encoder.w_addresses l $ close_box) (unlift k))))
$ w_crlf