Skip to content

Commit

Permalink
lib-mail: Clarify istream-attachment-extractor's error handling API u…
Browse files Browse the repository at this point in the history
…sage.
  • Loading branch information
sirainen committed Aug 23, 2016
1 parent bb35c31 commit 8c225e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib-mail/istream-attachment-extractor.h
Expand Up @@ -41,9 +41,12 @@ struct istream_attachment_settings {
int (*open_attachment_ostream)(struct istream_attachment_info *info,
struct ostream **output_r,
const char **error_r, void *context);
/* Finish output stream */
/* Finish output stream. If success==FALSE, *error contains the error
and the error shouldn't be replaced (other than maybe enhanced).
Otherwise, if close_attachment_ostream() fails and returns -1, it
should also set *error. */
int (*close_attachment_ostream)(struct ostream *output, bool success,
const char **error_r, void *context);
const char **error, void *context);
};

struct istream *
Expand Down

0 comments on commit 8c225e4

Please sign in to comment.