Subject: | Feature request: ability do issue partial FETCH requests |
Date: | Fri, 26 Jun 2015 13:43:03 +0300 |
To: | bug-Net-IMAP-Simple [...] rt.cpan.org |
From: | Ivan Krylov <krylov.r00t [...] gmail.com> |
Dear Maintainer,
It is currently impossible to FETCH part of a message by specifying
offset and length of the part, like "BODY[]<${offset}.${delta}>". It
might also be useful to do FETCH requests with other specifiers, like
INTERNALSTRUCTURE.
My suggestion is to add another check (whether there are brackets [] in
$part) at Net/IMAP/Simple.pm line 678:
my $arg = $part ?
( $part =~ /[\[\]]/ ? $part : "BODY[$part]" )
: 'RFC822';
As far as I know, this should not break backward compatiblilty for
valid IMAP BODY part specifiers.
--
Best regards,
Ivan