#ifndef INDEX_ATTACHMENT_H
#define INDEX_ATTACHMENT_H
#include "sha1.h"
struct fs;
struct mail_save_context;
struct mail_storage;
struct mail_attachment_extref {
/* path without attachment_dir/ prefix */
const char *path;
/* offset in input stream where part begins */
/* If non-zero, this attachment was saved as base64-decoded and it
need to be encoded back before presenting it to client. Each line
(except last one) consists of this many base64 blocks (4 chars of
base64 encoded data). */
unsigned int base64_blocks_per_line;
/* Line feeds are CRLF instead of LF */
bool base64_have_crlf;
};
const ARRAY_TYPE(mail_attachment_extref) *
/* Delete a given attachment name from storage
(name is same as mail_attachment_extref.name). */
/* Parse extrefs value to given array. Names are allocated from the
given pool. */
const char *path_suffix,
#endif