Only detect ^From_ and not '^from_' by accident master
authorJoey Schulze <joey@infodrom.org>
Sat, 27 Jun 2009 17:23:35 +0000 (17:23 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 27 Jun 2009 17:23:35 +0000 (17:23 +0000)
mbox.c

diff --git a/mbox.c b/mbox.c
index cb2e9f3..9334a19 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -237,7 +237,7 @@ int inspect_mbox(char *path, char *prefix, off_t size, int opt_flags)
 #endif
        priority = 0;
       } else {
-       if (strncasecmp(buf, "From ", 5) == 0)
+       if (strncmp(buf, "From ", 5) == 0)
          stringcopy (from_, buf+5, sizeof(from_));
        else if (strncasecmp(buf, "From: ", 6) == 0)
          stringcopy (from, buf+6, sizeof(from));