Skip Menu |
 

This queue is for tickets about the Net-IMAP-Simple CPAN distribution.

Report information
The Basics
Id: 105501
Status: patched
Estimated: 15 min
Priority: 0/
Queue: Net-IMAP-Simple

People
Owner: jettero [...] cpan.org
Requestors: krylov.r00t [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.2207



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>
Download (untitled) / with headers
text/plain 576b
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
Download (untitled) / with headers
text/plain 380b
Sounds good to me. I didn't review it super carefully, but I'm willing to give it a go. Do you have any interest in a fork and fix on github? https://github.com/jettero/net--imap--simple … if not, I'll try to get to it this weekend. -Paul -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.
Download (untitled) / with headers
text/plain 916b
I think this was patched by pull request. Just released 1.2207. If this is false, reply to re-open ticket. On Fri Jun 26 06:43:27 2015, krylov.r00t@gmail.com wrote: Show quoted text
> 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
-- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.
Download (untitled) / with headers
text/plain 164b
forgot to actually close this -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.