From 2388747fbf954de990862a6c01713d50823e8725 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 24 Aug 2021 11:10:39 +0200 Subject: overhauled testing --- lib/JWebmail/Model/ReadMails.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/JWebmail/Model/ReadMails.pm') diff --git a/lib/JWebmail/Model/ReadMails.pm b/lib/JWebmail/Model/ReadMails.pm index 0f2e1cc..ddca7ce 100644 --- a/lib/JWebmail/Model/ReadMails.pm +++ b/lib/JWebmail/Model/ReadMails.pm @@ -38,7 +38,7 @@ sub read_headers_for { password => $auth->password, challenge => $auth->challenge, mode => 'list', - args => [$start || '0', $end || '0', $sort || 'date', $folder || ''], + args => [$start // 0, $end // 0, $sort // 'date', $folder // ''], ); die "connection error: $resp->{error}" if $rc; return $resp; @@ -176,6 +176,9 @@ Checks user name and password. Provides bundeled information on a subset of mails of a mailbox. Can be sorted and of varying size. +Arguments: + start..end inclusive 0 based range + =head2 count Returns size of the mail box folder in bytes the number of mails. @@ -224,4 +227,4 @@ Optinal challange for when you use cram authentication. L, L, L -=cut \ No newline at end of file +=cut -- cgit v1.2.3