-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2021-04-06 at 10:09 +0200, Carlos E. R. wrote:
On 06/04/2021 05.18, David T-G wrote:
Carlos, et al --
...
% >> I don't understand how, but it works :-D
First, props to dnh for the wicked awesome var munging :-)
Hats off :-)
...
all of those ugly chars to . as each single placeholder?
Now that's a nice out of the box thinking!! :-D :-O
Something like
MSGID_CLEAN=`echo $MSGID | tr '<>$+' '.'` grepmail -h "^Message-[Ii][Dd].*$MSGID_CLEAN" ~/Mail/_Lists/_filed/os-en.2007*
or so. [Yes, I know there are sexier ways to munge, but this may be more easily handled by those whose fu is weak -- such as I :-]
Indeed! As the IDs come on a file, one line per ID, I can simply do a search and replace on that file of the nasty chars, and run the file again through my script as is.
(one reason to edit the file is that the single quote ''' is used on two of the IDs).
I could use... I have forgotten the tool. First sort the file, then find duplicate lines, just in case there are any. Ah, 'uniq'.
Done :-) cer@Telcontar:~/tmp/mailarchive> mcedit opensuse-2007-06-munged.m-id cer@Telcontar:~/tmp/mailarchive> sort opensuse-2007-06-munged.m-id | uniq -d cer@Telcontar:~/tmp/mailarchive> mcedit hacer cer@Telcontar:~/tmp/mailarchive> time ./hacer Pine.LNX.4.64.0706071117040.15609@nimrodel.valinor not found 4673A349.5030701@gmx.net not found 200706012133.01430.thadeurj@terra.com.br not found 20070616184124.GF19067@blinkenlights.visv.net not found Pine.LNX.4.64.0706251153151.14573@nimrodel.valinor not found 200706071153.50160.wstephenson@suse.de not found JM200706162234065.4685828@pop.707.to not found BAY136-F6F3946075A76AD14C88DED2260@phx.gbl not found Done 2435 (8 failed) real 47m27,468s user 44m52,623s sys 2m18,341s cer@Telcontar:~/tmp/mailarchive> The actual IDs (the above can be munged, the '.' may not be dots) are: Pine.LNX.4.64.0706071117040.15609@nimrodel.valinor 4673A349.5030701@gmx.net 200706012133.01430.thadeurj@terra.com.br 20070616184124.GF19067@blinkenlights.visv.net Pine.LNX.4.64.0706251153151.14573@nimrodel.valinor 200706071153.50160.wstephenson@suse.de JM200706162234065.4685828@pop.707.to BAY136-F6F3946075A76AD14C88DED2260@phx.gbl There are two of mine that I found in the sent folders. The others... maybe I can find them in the gmail archive, but I'll have to use the gmail web site to search manuall (my local copy was deleted long ago). - -- Cheers, Carlos E. R. (from openSUSE 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHIEARECADIWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYGwzVxQccm9iaW4ubGlz dGFzQGdteC5lcwAKCRC1MxgcbY1H1a1RAJ9E4BPfCIXUr4V7GDRGxJoNht8BeACe LoQWncJ9wfhGX21LAx22VwaEbnA= =zU1Z -----END PGP SIGNATURE-----