Преглед на файлове

Maildir: fix setting flags on messages without ":2," part

this is mostly hypothetical, as all messages i've encountered actually
have it even if no flags are set on them.
Oswald Buddenhagen преди 5 години
родител
ревизия
38e7b4db22
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/drv_maildir.c

+ 1 - 1
src/drv_maildir.c

@@ -1716,7 +1716,7 @@ maildir_set_msg_flags( store_t *gctx, message_t *gmsg, uint uid ATTR_UNUSED, int
 			}
 			tl = ol + 3 + fl;
 		} else {
-			tl = ol + maildir_make_flags( conf->info_delimiter, msg->gen.flags, nbuf + bl + ol );
+			tl = ol + maildir_make_flags( conf->info_delimiter, (uchar)add, nbuf + bl + ol );
 		}
 		if (!rename( buf, nbuf ))
 			break;