sandy_india has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm working on the script that will, connect to IMAP server, and search for all messages, in a particular folder, that matches the given subject and dump it into a file. I'm using MAIL::IMAPClient module for this and it works all fine. Now, my requirement is to search for all the messages whose SUBJECT matches and also the DATE matches. and I do not know how to do it using search method. At present, the code line looks like this:
my $imap = Mail::IMAPClient->new( Socket => $socket, User => $Username, Password => $Password ) or die "new(): $@"; $imap->select($folder) or die "Could not select: $@"; my @uids = $imap->search('SUBJECT', $subject_string) or die "Could not + find messages with subject: $@\n";
I tried changing the search method like this, but it does not work:
my @uids = $imap->search(SUBJECT => "$subject_string", DATE => "Feb 1, + 20101") or die "Could not find messages with subject: $@\n";
Is it the correct syntax? I want to search emails with a particular subject after a specific date. Thanks!