From 86a1424b17fcdb2dcb91bb7c810e06977bfaf736 Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 26 Mar 2012 22:54:30 +0300 Subject: [PATCH] * mu-maildir.c: ignore emacs temp files --- src/mu-maildir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mu-maildir.c b/src/mu-maildir.c index 2485fc69..6dc1d819 100644 --- a/src/mu-maildir.c +++ b/src/mu-maildir.c @@ -344,6 +344,9 @@ ignore_dir_entry (struct dirent *entry, unsigned char d_type) { if (G_LIKELY(d_type == DT_REG)) { + /* ignore emacs tempfiles */ + if (entry->d_name[0] == '#') + return TRUE; /* ignore dovecot metadata */ if (entry->d_name[0] == 'd' && strncmp (entry->d_name, "dovecot", 7) == 0)