Subject: | strange output from <fetch> method |
Hello!
Sorry, but I can't understand how you suggest to use your <fetch>
method and I think here is a bug.
I want to compose such command "UID FETCH 2 (UID BODY[HEADER.FIELDS
(Subject From)])", no problem I write in my script:
my $result = $imap->fetch('2', ['UID', 'BODY[HEADER.FIELDS (Subject
From)]']);
And what I receive:
print Dumper($result);
$VAR1 = {
'BODY' => [
'HEADER.FIELDS',
[
'Subject',
'From'
]
],
'UID' => '2',
'From: Name Lastname <dima@mail.xx>
Subject: test subject
' => undef
};
How I can get the responce on my request from this structure? In
addition, I don't understand what you include 'BODY' key for in the
hash, how I can use this?