in reply to Re^3: perl imap spam text search is not working what i need to do
in thread perl imap spam text search is not working what i need to do

yes i have two mails having that string and that search method is working for inbox but not for spam this is issue

  • Comment on Re^4: perl imap spam text search is not working what i need to do

Replies are listed 'Best First'.
Re^5: perl imap spam text search is not working what i need to do
by Corion (Patriarch) on Jul 15, 2014 at 11:56 UTC

    Are you sure that the "Bulk Mail" folder gets selected? Do you see other valid mails from the Bulk Mail folder when you are not using ->search?

    Your usage of ->select is not the recommended way. The documentation recommends using

    $imap->select('Bulk Mail') or die "Could not select: $@\n";