![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to locate messages on a mail archive, looking for the
Message-ID header. It works, except on a 5% of the messages.
I have found these combinations:
Message-id
Message-ID
Message-Id
So the basic command is:
grepmail -h ^Message-[Ii][dD].*"$MSGID" ~/Mail/_Lists/_filed/os-en.2007*
which should find all those combinations. But no. My script doesn't find:
"f4sjvj$1p6$1@sea.gmane.org"
The problem is that Midnight Commander does find it in the expected file.
But not grepmail, nor grep.
cer@Telcontar:~/tmp/mailarchive> grepmail -h ^Message-[Ii][dD].*"f4sjvj$1p6$1@sea.gmane.org" ~/Mail/_Lists/_filed/os-en.200705..08
cer@Telcontar:~/tmp/mailarchive>
Or a shorter version:
cer@Telcontar:~/tmp/mailarchive> grepmail -h "f4sjvj$1p6$1@sea.gmane.org" ~/Mail/_Lists/_filed/os-en.200705..08
cer@Telcontar:~/tmp/mailarchive>
Not even plain grep:
cer@Telcontar:~/tmp/mailarchive> grep -i "f4sjvj$1p6$1@sea.gmane.org" ~/Mail/_Lists/_filed/os-en.200705..08
cer@Telcontar:~/tmp/mailarchive>
But MC finds it!
+++······························
home/cer/Mail/_Lists/_filed/os-en.200705..08 22237684/51M 41%
Subject: [opensuse] Re: SUSE 10.0: How to prevent mount of USB disk with subfs?
Date: Fri, 15 Jun 2007 01:45:54 +0200
Lines: 41
Message-ID: