Permalink
Browse files

* mu-maildir.c: ignore emacs temp files

  • Loading branch information...
1 parent 6c1462c commit 86a1424b17fcdb2dcb91bb7c810e06977bfaf736 @djcb committed Mar 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/mu-maildir.c
View
@@ -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)

0 comments on commit 86a1424

Please sign in to comment.