Skip Menu |
 

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

Report information
The Basics
Id: 122163
Status: open
Priority: 0/
Queue: Net-IMAP-Simple

People
Owner: jettero [...] cpan.org
Requestors: thomas.delepinne [...] ecampus-hainaut.be
Cc:
AdminCc:

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



X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:99
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="_000_AM4PR0601MB19881776D569503760A3A01CBADA0AM4PR0601MB1988_"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Exchange-Antispam-Report-Test: UriScan:(21748063052155)(21532816269658);
X-Spam-Score: 2.101
X-MS-Publictraffictype: Email
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id F1CE0240366 for <cpan-bug+Net-IMAP-Simple [...] hipster.bestpractical.com>; Wed, 21 Jun 2017 20:51:51 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IVTPohJYe7rG for <cpan-bug+Net-IMAP-Simple [...] hipster.bestpractical.com>; Wed, 21 Jun 2017 20:51:50 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id D462924027A for <bug-Net-IMAP-Simple [...] rt.cpan.org>; Wed, 21 Jun 2017 20:51:49 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 5B1D9120DA0 for <bug-Net-IMAP-Simple [...] rt.cpan.org>; Wed, 21 Jun 2017 17:51:48 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id A6185120DB5 for <bug-Net-IMAP-Simple [...] rt.cpan.org>; Wed, 21 Jun 2017 17:51:45 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0133.outbound.protection.outlook.com [104.47.2.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 620ED120DA0 for <bug-Net-IMAP-Simple [...] rt.cpan.org>; Wed, 21 Jun 2017 17:51:37 -0700 (PDT)
Received: from AM4PR0601MB1988.eurprd06.prod.outlook.com (10.166.132.28) by AM4PR0601MB1985.eurprd06.prod.outlook.com (10.166.132.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Wed, 21 Jun 2017 07:13:09 +0000
Received: from AM4PR0601MB1988.eurprd06.prod.outlook.com ([fe80::857b:9d10:db00:55e0]) by AM4PR0601MB1988.eurprd06.prod.outlook.com ([fe80::857b:9d10:db00:55e0%14]) with mapi id 15.01.1178.018; Wed, 21 Jun 2017 07:13:09 +0000
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] campusnumerique.onmicrosoft.com
Authentication-Results: rt.cpan.org; dkim=none (message not signed) header.d=none;rt.cpan.org; dmarc=none action=none header.from=ecampus-hainaut.be;
Delivered-To: cpan-bug+Net-IMAP-Simple [...] hipster.bestpractical.com
Subject: Change in "get" method behaviour between 1.2206 and later versions
Thread-Index: AdLqXdWCQYCK0VPTSFiVZFl6QqUWcQ==
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=campusnumerique.onmicrosoft.com; s=selector1-ecampushainaut-be01i; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Kt9ItQAR748dKPbi47BamIbveKPxqldEL1ry6Hzq0Oo=; b=wqD16T9rt2BwYeL7OBaum6lgfzvDltw8akEFM+ALRcUUhsidAOMhFB2mAdBrNjLC1+jNr3SkiNxp2EfaJw4D181jHX2pi9q7NutvoFkWkYjMup7q4B2p8ldYuQIm19IfbBoObUOEhwy5TyBCSCFNbGCR4LUZLvr43RS4RYzga+c=
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_70_90 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODYTEXTP_SIZE_3000_LESS 0, DKIM_SIGNATURE 0, NO_URI_HTTPS 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __C230066_P5 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __RDNS_OUTLOOK 0, __SANE_MSGID 0, __STYLE_RATWARE_NEG 0, __STYLE_TAG 0, __SUBJ_ALPHA_END 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __zen.spamhaus.org_ERROR '
Date: Wed, 21 Jun 2017 07:13:09 +0000
X-Originatororg: ecampus-hainaut.be
X-MS-Office365-Filtering-Correlation-ID: f00c7722-06c9-4c55-28e4-08d4b874f8c4
X-Spam-Level: **
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.6.22.3916
X-MS-Exchange-Crosstenant-ID: 42a960cb-bb11-4d31-9dfb-654d08bdf881
To: "bug-Net-IMAP-Simple [...] rt.cpan.org" <bug-Net-IMAP-Simple [...] rt.cpan.org>
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(20161123555025)(2016111802025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(20161123562025)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM4PR0601MB1985;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM4PR0601MB1985;
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075);SRVR:AM4PR0601MB1985;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(39830400002)(39400400002)(39410400002)(39450400003)(38730400002)(66066001)(99286003)(110136004)(5250100002)(9686003)(2501003)(54896002)(6306002)(33656002)(6436002)(189998001)(25786009)(86362001)(14454004)(6506006)(7736002)(5660300001)(478600001)(551544002)(3280700002)(74482002)(2906002)(50986999)(54356999)(55016002)(7696004)(5640700003)(2351001)(3660700001)(8936002)(74316002)(53936002)(6916009)(2900100001)(3846002)(102836003)(8676002)(81166006)(790700001)(6116002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM4PR0601MB1985;H:AM4PR0601MB1988.eurprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en;
X-Spam-Status: No, score=2.101 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_SBL_CSS=3.335, SPF_SOFTFAIL=0.665] autolearn=no
X-Microsoft-Exchange-Diagnostics: 1;AM4PR0601MB1985;7:UXttO2MRnM9b5/u2Hp0llXHwM+kKhpFX2HR2xVdkElZtdaK3sSOan595fAygq+lyX7R1XN10UkGtKTeFr7VnfqXJ2H5VC89cFH5YecNBy7NVlAxi94VbIpvCqg4nG1u5XCLUJruvgwZrq0iZ8OYPpRqZGDuJg93tWosUZHiNxkifmByYG3Rg1voL3rs86FjVFKrexNTyHr7Zyy0ro0J3jroZ2a33eSZYXjZIXiaf9OvkS9pqBs6dvQEFqAntdc2TU9wm/qxEFo0HmWQUyPKS2DASjwagzZOcblahO+TWixWssLwG22MCPHzphNyUED02mQyaND6FRVc96IBE99uPkwc+4hDVTmPz2mnM54XKteNxgTSUtIQ/xB0Sw0e5J6NEPzA3hp0ka+dFP0ak9yisCq4+xp5wG0FuOC3n4zD/bWBUwSNUJdGOjslXfSoV8VS+Ub5ZbMAx9xSXNPNxwsoQ5yJPKqm1AQUfFWpcghpppj7m735R1I1TRijI5yhS56OevR0kvl12tkeuJJYFsYYoN+ec4R6X4uqY3q/s4cSDOn8jG6oB9U96QFpdbfj32w6OaaBKWP/LyfWwkPOXmoutkfcg5sQwMkeDKNAznbIsOcBJGU3fUYr4ni/a9yL5bHDEIp3XjWWnCAEDGlbkl4WhoOiRucGtABZ9Im9peVIYpgxXTXRIgPPiOXpIbD29cECR75k4n3omEsnemiRXi2t1qnWsxcC5IphXwCUuzQYfACTbXAhee2owWF3TuNdLDfplLgbDRyLB3I166Z/qg3RZDNK8zGjQTtd6Lov4is7cG8g=
X-Microsoft-Exchange-Diagnostics: 1;AM4PR0601MB1985;23:Nu0HkncX4bxxUHGB6lJrMsajpTEI5VhHNPB9X8nP3TjPsj7XVY/YQw+RNf3o1TKCY2ovb/ZvPb7ZoU0ZLDabQnu8o1R3zTuEnlV5Ca7p2RKUEvb9sUrAx0VaLNbwbSw8Vszo9N3jJpsS8GOtT81l/w==
X-MS-Traffictypediagnostic: AM4PR0601MB1985:|AM4PR0601MB1985:
Content-Language: fr-FR
Message-ID: <AM4PR0601MB19881776D569503760A3A01CBADA0 [...] AM4PR0601MB1988.eurprd06.prod.outlook.com>
X-MS-Tnef-Correlator:
X-Microsoft-Antispam-PRVS: <AM4PR0601MB198568149726DD31D6BEC57EBADA0 [...] AM4PR0601MB1985.eurprd06.prod.outlook.com>
Return-Path: <thomas.delepinne [...] ecampus-hainaut.be>
X-MS-Exchange-Crosstenant-Originalarrivaltime: 21 Jun 2017 07:13:09.3383 (UTC)
X-Original-To: cpan-bug+Net-IMAP-Simple [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-imap-simple
X-Forefront-PRVS: 0345CFD558
X-Greylist: delayed 57901 seconds by postgrey-1.34 at xx1.develooper.com; Wed, 21 Jun 2017 17:51:38 PDT
Thread-Topic: Change in "get" method behaviour between 1.2206 and later versions
X-MS-Has-Attach:
X-Originating-Ip: [193.190.64.17]
Accept-Language: fr-BE, en-US
X-MS-Exchange-Transport-Crosstenantheadersstamped: AM4PR0601MB1985
From: Thomas DELEPINNE <thomas.delepinne [...] ecampus-hainaut.be>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 906
Download (untitled) / with headers
text/plain 906b
After upgrading from Net::IMAP::Simple 1.2206 to 1.2207, I noticed a change in behaviour of the "get" method. Looking at both version of "Simple.pm" confirmed that some refactoring occurred. In version 1.2206, using "my $msg = $imap->get( $msgid, '1' );" would get an email's body. For version 1.2207 and later, using the same code wield an empty string. To test this, I used the following code: #!/usr/bin/perl use strict; use utf8; use warnings; use Net::IMAP::Simple::SSL; # Maibox config my $imaphost = 'imap.gmail.com'; my $imapusr = 'emailaccount'; my $imappass = 'password'; my $imap = Net::IMAP::Simple::SSL->new($imaphost) or die "Unable to connect to IMAP"; $imap->login($imapusr, $imappass) or die "Unable to log-in"; my @msgids = $imap->search("UNSEEN"); for my $msgid (@msgids) { my $msg = $imap->get($msgid,'1'); print "$msg\n"; } I use perl v5.24.1 on a Debian 4.9.30-2+deb9u1
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 5924
MIME-Version: 1.0
In-Reply-To: <AM4PR0601MB19881776D569503760A3A01CBADA0 [...] AM4PR0601MB1988.eurprd06.prod.outlook.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <AM4PR0601MB19881776D569503760A3A01CBADA0 [...] AM4PR0601MB1988.eurprd06.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-14875-1498578361-629.122163-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 60
Oh, I forgot about this issue. Thanks for opening a ticket.


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.