]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Update mail_get_headers() API comment
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 18 Dec 2016 10:03:10 +0000 (12:03 +0200)
committerGitLab <gitlab@git.dovecot.net>
Sat, 24 Dec 2016 01:21:58 +0000 (03:21 +0200)
The API was changed by 990d55ce3fc461eeacce3ef830b1c5dde5c3f150

src/lib-storage/mail-storage.h

index 976a2a91eff16a093cdccc0ac81bee3f3970ab9b..b329b314cf1513fbecd6476058527b65e0730f56 100644 (file)
@@ -844,7 +844,7 @@ int mail_get_first_header(struct mail *mail, const char *field,
 int mail_get_first_header_utf8(struct mail *mail, const char *field,
                               const char **value_r);
 /* Return a NULL-terminated list of values for each found field.
-   Returns -1 if error, 0 otherwise (with or without headers found). */
+   Returns 1 if headers were found, 0 if not (value_r==NULL) or -1 if error. */
 int mail_get_headers(struct mail *mail, const char *field,
                     const char *const **value_r);
 /* Like mail_get_headers(), but decode MIME encoded words to UTF-8.