diff options
Diffstat (limited to '')
-rw-r--r-- | concat.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/concat.c b/concat.c index 45ce12d..eeab073 100644 --- a/concat.c +++ b/concat.c @@ -22,7 +22,6 @@ #include <stdlib.h> #include <sys/stat.h> #include <sysexits.h> -#include <unistd.h> #include "archive.h" #include "imap.h" @@ -117,12 +116,7 @@ void concatData(struct List threads, struct List items) { path = threadPath(envelope.messageID, "mbox"); error = stat(path, &file); - if (error && flat.len == 1) { - uint32_t uid = dataCheck(flat.ptr[0], Number).number; - error = link(uidPath(uid, "mbox"), path); - if (error) err(EX_CANTCREAT, "%s", path); - - } else if (error || file.st_mtime < uidNewest(flat, "mbox")) { + if (error || file.st_mtime < uidNewest(flat, "mbox")) { FILE *mbox = fopen(path, "w"); if (!mbox) err(EX_CANTCREAT, "%s", path); |