* mu-maildir.c: ignore emacs temp files

This commit is contained in:
djcb 2012-03-26 22:54:30 +03:00
parent 6c1462cfad
commit 86a1424b17
1 changed files with 3 additions and 0 deletions

View File

@ -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)