Commit f406c107 authored by Johannes Schindelin's avatar Johannes Schindelin

Skip .gitignore files

In Git, the .gitignore files are markers for directories that must not
be deleted. They are not mails.
Signed-off-by: 's avatarJohannes Schindelin <>
parent 11312314
......@@ -714,6 +714,11 @@ static void scan_new_messages(struct database *db, int start_at)/*{{{*/
int i;
for (i=start_at; i<db->n_msgs; i++) {
struct rfc822 *msg = NULL;
int len = strlen(db->msgs[i].src.mpf.path);
if (len > 10 && !strcmp(db->msgs[i].src.mpf.path + len - 11, "/.gitignore"))
switch (db->type[i]) {
case MTY_DEAD:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment