Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Sisimai::Mail::STDIN(3User Contributed Perl DocumentatiSisimai::Mail::STDIN(3)

NAME
       Sisimai::Mail::STDIN - Mailbox reader

SYNOPSIS
	   use Sisimai::Mail::STDIN;
	   my $mailbox = Sisimai::Mail::STDIN->new();
	   while( my $r	= $mailbox->read ) {
	       print $r;   # print data	read from STDIN
	   }

DESCRIPTION
       Sisimai::Mail::STDIN read email data from STDIN.

CLASS METHODS
   "new()"
       "new()" is a constructor	of Sisimai::Mail::STDIN

	   my $mailbox = Sisimai::Mail::STDIN->new();

INSTANCE METHODS
   "path()"
       "path()"	returns	"<STDIN>"

	   print $mailbox->path;   # "<STDIN>"

   "size()"
       "size()"	returns	the data size which has	been read

	   print $mailbox->size;   # 2202

   "offset()"
       "offset()" returns offset position for seeking the mbox.	The value of
       "offset"	is bytes which have already read.

	   print $mailbox->offset;   # 0

   "handle()"
       "handle()" returns file handle object (IO::Handle) of the mbox.

	   $mailbox->handle;

   "read()"
       "read()"	works as a iterator for	reading	each email in the mbox.

	   my $mailbox = Sisimai::Mail->new();
	   while( my $r	= $mailbox->read ) {
	       print $r;   # print data	read from STDIN
	   }

AUTHOR
       azumakuniyuki

COPYRIGHT
       Copyright (C) 2014-2016,2018-2020 azumakuniyuki,	All rights reserved.

LICENSE
       This software is	distributed under The BSD 2-Clause License.

perl v5.32.0			  2020-07-17	       Sisimai::Mail::STDIN(3)

NAME | SYNOPSIS | DESCRIPTION | CLASS METHODS | INSTANCE METHODS | AUTHOR | COPYRIGHT | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Sisimai::Mail::STDIN&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help