Mercurial > dovecot > core-2.2
comparison src/lib-storage/index/dbox-common/dbox-attachment.c @ 22475:bbf787982cff
sdbox: Don't open mail files when expunging
It was done when mail_attachment_fs was non-empty (and default is
non-empty), even though mail_attachment_dir was empty.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 25 Aug 2017 18:40:23 +0300 |
parents | 2e2563132d5f |
children | cb108f786fb4 |
comparison
equal
deleted
inserted
replaced
22474:eb01d3b9c90b | 22475:bbf787982cff |
---|---|
28 const char **error_r) | 28 const char **error_r) |
29 { | 29 { |
30 const char *path_suffix; | 30 const char *path_suffix; |
31 uoff_t msg_size; | 31 uoff_t msg_size; |
32 | 32 |
33 if (*file->storage->attachment_dir == '\0') { | 33 if (file->storage->attachment_dir == NULL) { |
34 mail_storage_set_critical(&file->storage->storage, | 34 mail_storage_set_critical(&file->storage->storage, |
35 "%s contains references to external attachments, " | 35 "%s contains references to external attachments, " |
36 "but mail_attachment_dir is unset", file->cur_path); | 36 "but mail_attachment_dir is unset", file->cur_path); |
37 return -1; | 37 return -1; |
38 } | 38 } |