| flail documentation | Contained in the flail distribution. |
Flail::Exec::Cmd::check - Flail "check" command
Time-stamp: <2006-12-03 11:01:18 attila@stalphonsos.com>
use Flail::Exec::Cmd::check; blah;
Describe the module.
attila <attila@stalphonsos.com>
(C) 2002-2006 by attila <attila@stalphonsos.com>. all rights reserved. This code is released under a BSD license. See the LICENSE file that came with the package.
| flail documentation | Contained in the flail distribution. |
package Flail::Exec::Cmd::check; use strict; use Carp; use Flail::Utils; use base qw(Exporter); use vars qw(@EXPORT @EXPORT_OK %EXPORT_TAGS); @EXPORT_OK = qw(flail_check); @EXPORT = (); %EXPORT_TAGS = ( 'cmd' => \@EXPORT_OK ); sub flail_check { if ($_[0] eq "imap") { $::CheckType = shift(@_); } elsif ($_[0] eq "pop3") { $::CheckType = shift(@_); } elsif ($_[0] eq "spool") { $::CheckType = shift(@_); } if ($::CheckType eq "imap") { check_imap(@_); } elsif ($::CheckType eq "pop3") { check_pop3(@_); } elsif ($::CheckType eq "spool") { check_spool(@_); } else { print "don't know how to check for new mail\n"; } } 1; __END__
## # Local variables: # mode: perl # tab-width: 4 # perl-indent-level: 4 # cperl-indent-level: 4 # cperl-continued-statement-offset: 4 # indent-tabs-mode: nil # comment-column: 40 # time-stamp-line-limit: 40 # End: ##