]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Update mail_add_temp_wanted_fields() comment
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 27 Apr 2018 10:52:28 +0000 (13:52 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 May 2019 06:43:19 +0000 (06:43 +0000)
src/lib-storage/mail-storage.h

index 157eba9348e398b6d6a4a77bb7fc2ca586693567..43aea8d4dd7c791a0424d9ca80f3c1bf1651274c 100644 (file)
@@ -854,7 +854,10 @@ void mail_set_seq(struct mail *mail, uint32_t seq);
 bool mail_set_uid(struct mail *mail, uint32_t uid);
 
 /* Add wanted fields/headers on top of existing ones. These will be forgotten
-   after the next mail_set_seq/uid(). */
+   after the next mail_set_seq/uid() that closes the existing mail. Note that
+   it's valid to call this function while there is no mail assigned
+   (mail->seq==0), i.e. this is called before any mail_set_seq/uid() or after
+   mail.close(). */
 void mail_add_temp_wanted_fields(struct mail *mail,
                                 enum mail_fetch_field fields,
                                 struct mailbox_header_lookup_ctx *headers)