in reply to Mail::IMAPClient and searching email subjects with double quotes

Did you attempt to pass your argument wrapped in single quotes?

my @uids = $imap->search( 'SUBJECT "test email "abc123" approved"' );

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: Mail::IMAPClient and searching email subjects with double quotes
by treize (Novice) on May 13, 2014 at 21:53 UTC

    Thanks for your reply!

    I have tried that and the same issue is still there.

      Sorry it wasn't the answer. You should try to provide an example of the data you are searching for as well as the code -- that is, the subject line itself. If we can't see it, we can't rule out that the method is properly returning no results due to your search string correctly not matching. Perhaps the subject line contains control characters or such? The relevant docs might provide more insight as well. I'd try a few more variations myself ...

      UPDATE!

      Did you try removing that final, trailing double quote?

      my @uids = $imap->search( 'SUBJECT "test email "abc123" approved' );

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      

        Still didn't work :(

        I will update my original question with more information. Thanks!