[imapfilter-devel] Double-quote in query string?
Lefteris Chatzibarbas
lefcha at hellug.gr
Sat Aug 28 09:57:36 EEST 2004
On Fri, Aug 27, 2004 at 06:35:37PM -0500, David DeSimone wrote:
> I was trying to create a query like this:
>
> query =
> {
> 'seen',
> 'sentbefore ' .. date_before(7),
> 'subject "[unix-admin] Output from \"cron\" command"',
> }
>
> Notice the mail subject has literal "quote" characters that I want to
> match.
>
> Imapfilter silently produces no results.
>
> When run in verbose mode, this error becomes apparent:
>
> C (3): 1003 UID SEARCH ALL (seen) (sentbefore 20-Aug-2004)
> (subject "[unix-admin] Output from "cron" command")
> S (3): 1003 BAD Missing required close paren in Search command
>
> The quote characters are messing up the syntax.
>
> Doesn't IMAP protocol allow for this character to be sent? What can be
> done to fix this problem?
Try this:
...
'subject "[unix-admin] Output from \\"cron\\" command"',
...
More information about the Imapfilter-devel
mailing list