Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

  1. # ======================================================================
  2. #
  3. # Copyright (C) 2000-2001 Paul Kulchenko ([email protected])
  4. # SOAP::Lite is free software; you can redistribute it
  5. # and/or modify it under the same terms as Perl itself.
  6. #
  7. # $Id: XMLRPC::Transport::POP3.pm,v 0.51 2001/07/18 15:15:14 $
  8. #
  9. # ======================================================================
  10. package XMLRPC::Transport::POP3;
  11. use strict;
  12. use vars qw($VERSION);
  13. $VERSION = '0.51';
  14. use XMLRPC::Lite;
  15. use SOAP::Transport::POP3;
  16. # ======================================================================
  17. package XMLRPC::Transport::POP3::Server;
  18. @XMLRPC::Transport::POP3::Server::ISA = qw(SOAP::Transport::POP3::Server);
  19. sub initialize; *initialize = \&XMLRPC::Server::initialize;
  20. # ======================================================================
  21. 1;
  22. __END__
  23. =head1 NAME
  24. XMLRPC::Transport::POP3 - Server side POP3 support for XMLRPC::Lite
  25. =head1 SYNOPSIS
  26. use XMLRPC::Transport::POP3;
  27. my $server = XMLRPC::Transport::POP3::Server
  28. -> new('pop://pop.mail.server')
  29. # if you want to have all in one place
  30. # -> new('pop://user:[email protected]')
  31. # or, if you have server that supports MD5 protected passwords
  32. # -> new('pop://user:password;[email protected]')
  33. # specify path to My/Examples.pm here
  34. -> dispatch_to('/Your/Path/To/Deployed/Modules', 'Module::Name', 'Module::method')
  35. ;
  36. # you don't need to use next line if you specified your password in new()
  37. $server->login('user' => 'password') or die "Can't authenticate to POP3 server\n";
  38. # handle will return number of processed mails
  39. # you can organize loop if you want
  40. do { $server->handle } while sleep 10;
  41. # you may also call $server->quit explicitly to purge deleted messages
  42. =head1 DESCRIPTION
  43. =head1 COPYRIGHT
  44. Copyright (C) 2000-2001 Paul Kulchenko. All rights reserved.
  45. This library is free software; you can redistribute it and/or modify
  46. it under the same terms as Perl itself.
  47. =head1 AUTHOR
  48. Paul Kulchenko (paulclinger@yahoo.com)
  49. =cut