diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
commit | 0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch) | |
tree | 3f3789daa2f6db22da6e55e92bee0062a7d613fe /src/lib-storage/mail-copy.h | |
parent | Initial commit. (diff) | |
download | dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip |
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib-storage/mail-copy.h')
-rw-r--r-- | src/lib-storage/mail-copy.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib-storage/mail-copy.h b/src/lib-storage/mail-copy.h new file mode 100644 index 0000000..02048db --- /dev/null +++ b/src/lib-storage/mail-copy.h @@ -0,0 +1,20 @@ +#ifndef MAIL_COPY_H +#define MAIL_COPY_H + +struct mail; +struct mail_save_context; +struct mailbox; + +int mail_storage_copy(struct mail_save_context *ctx, struct mail *mail); + +/* If save context already doesn't have some metadata fields set, copy them + from the given mail (e.g. received date, from envelope, guid). */ +int mail_save_copy_default_metadata(struct mail_save_context *ctx, + struct mail *mail); + +/* Returns TRUE if mail can be copied using hard linking from src to dest. + (Assuming the storage itself supports this.) */ +bool mail_storage_copy_can_use_hardlink(struct mailbox *src, + struct mailbox *dest); + +#endif |