<<< Date Index >>>     <<< Thread Index >>>

Re: Automated message processing



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday, September  4 at 10:58 PM, quoth Peter Davis:
>>     ~i <id>
>>
>> ... or:
>>
>>      grep '^Message-ID: <id>' *
>> 
>
> Yes, but both of those require searching through a potentially large 
> number of messages to find the matching id.

If you use hcache, the ~i pattern match will be just a hash-table 
lookup, which should be constant time no matter the number of 
messages.

> I figured that since I'm using MH format anyway, I should be able to 
> include a path directly to the message file itself ... except that 
> Mutt doesn't seem to give me a way to pass that information when I 
> pipe a message to a script.

Of course not - it's a *pipe*. :)

In the example:

     cat foo | somecommand

somecommand has no way of ever discovering what or where foo is. 
That's a feature, not a flaw.

~Kyle
- -- 
A tyrant must put on the appearance of uncommon devotion to religion. 
Subjects are less apprehensive of illegal treatment from a ruler whom 
they consider God-fearing and pious. On the other hand, they do less 
easily move against him, believing that he has the gods on his side.
                                                           -- Aristotle
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkjAr3sACgkQBkIOoMqOI14+ZACgkJa9BTfh8a1A29RFD2WF1BRj
crMAmgNq59r7EvHTzbB+W0ssFnUzZE4W
=y6/C
-----END PGP SIGNATURE-----