mutt stable branch with some hacks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow initial blank lines in local mailboxes.

Some mailbox-creation tools erroneously append a blank line to a file
before appending a UNIXv7-format mail message, resulting in mailboxes
that are intended to be valid "mbox" folders but are not. Notably old
versions of Mailman do this, making archive files that cannot be read by
mutt.

This patch causes mutt to skip leading NLs and CRs when detecting magic.

+8
+8
mx.c
··· 423 423 else if ((f = fopen (path, "r")) != NULL) 424 424 { 425 425 struct utimbuf times; 426 + int ch = 0; 427 + 428 + /* Some mailbox creation tools erroneously append a blank line to 429 + * a file before appending a mail message. This allows mutt to 430 + * detect magic for and thus open those files. */ 431 + while ((ch = fgetc(f)) && (ch == '\n' || ch == '\r')); 432 + if (!feof(f) && ch) 433 + ungetc(ch, f); 426 434 427 435 fgets (tmp, sizeof (tmp), f); 428 436 if (mutt_strncmp ("From ", tmp, 5) == 0)