[Linux-disciples] Mutt seems to have what I'm looking for
Stephen R Laniel
steve at laniels.org
Fri Nov 5 09:50:25 EST 2004
On Fri, Nov 05, 2004 at 09:43:42AM -0500, Chung-chieh Shan wrote:
> Perhaps ^ can only apply to a single pattern (i.e., ^ must be followed
> immediately by ~), not a set of parenthesized patterns. I hope it
> is possible for you to put all your addresses in the same regular
> expression.
Well, I answered my second question -- I think I figured out
why
~C (person1 | person2 | person3)
wasn't working. The answer comes later on in the same URL:
/*
Note that if a regular expression contains parenthesis, or a
veritical bar ("|"), you must enclose the expression in
double or single quotes since those characters are also used
to separate different parts of Mutt's pattern language. For
example,
~f "me@(mutt\.org|cs\.hmc\.edu)"
Without the quotes, the parenthesis would truncate the
regular expression to simply me@, which is probably not what
you want.
*/
So now I have
send-hook '^~C "(person1 | person2 | person3)"' 'set pgp_autoencrypt=yes;set pgp_autosign=yes'
and mutt gives me no error. The trouble is that it's also
not working right. I tested it by composing a test message
to Adam and my parents, which should *not* be encrypted
because my parents aren't PGPable; it turned out not to be
encrypted. Nice. But then I tried to compose a message to
Adam alone, which *should* be encrypted. It wasn't.
Maybe there's some logic I'm missing here. The way I'm
reading the pattern
^~C "(person1 | person2 | person3)"
it should say "If every recipient matches 'person1 | person2
| person3', then do whatever I tell you to do." That's the
proper logic, right?
--
``I'm not going to say prayer will be mandatory.
But let's just say, 'Thine loom and churn best
be still on the Sabbath, Goodman.'"
-Ed Helms on The Daily Show
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20041105/cef11ed1/attachment.pgp
More information about the Linux-disciples
mailing list