regular expression query

Hi,

I know this isn't a forum for regular expressions, but I thought I'd ask this anyway.

Looking at the example in the documentation, I'm using this as my encryption trigger: (?i)(\[secure\]|\[encrypt\])
My hope was that '[secure]' as well as something like '[Secure]' in the subject line would trigger encryption. But while
'[secure]' does and '[encrypt]' does, '[Secure]' doesn't. Nor does '[Encrypt]'.

Any ideas? Your patience is greatly appreciated!

Colton Smith wrote:

Looking at the example in the documentation, I'm using this as my encryption trigger: (?i)(\[secure\]|\[encrypt\])
My hope was that '[secure]' as well as something like '[Secure]' in the subject line would trigger encryption. But while
'[secure]' does and '[encrypt]' does, '[Secure]' doesn't. Nor does '[Encrypt]'.

Any ideas? Your patience is greatly appreciated!

That's strange. I use the following Reg Expr (similar to yours but
spaces between the brackets are now accepted):

(?i)(\[\s*secure\s*\]|\[\s*encrypt\s*\])

and it works for me when I use for example the following subject:

Test [Secure]

Where did you set the Subject Trigger? for the user, domain or for the
global settings?

Kind regards,

Martijn

ยทยทยท

--
Djigzo open source email encryption