diff options
Diffstat (limited to 'lib/JWebmail/Model/ReadMails.pm')
-rw-r--r-- | lib/JWebmail/Model/ReadMails.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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<JWebmail::Model::Driver::QMailAuthuser>, L<JWebmail::Model::Driver::Mock>, L<JWebmail> -=cut
\ No newline at end of file +=cut |