Peter Guzis > WWW-Postini-0.01 > pshell.pl

Download:
WWW-Postini-0.01.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

pshell.pl - Interactive shell to interact with Postini email filtering service

SYNOPSIS ^

  perl pshell.pl

DESCRIPTION ^

This script is intended to demonstrate the capabilities of WWW::Postini via an interactive shell.

COMMANDS ^

help

Display help

quit

Exit shell

user EMAIL

Sets the quarantine context to that of EMAIL. This step must be successfully completed before the commands below.

list

List quarantined messages, one page at a time

The next and prev commands may be used to navigate through the paged data. Abbreviated commands of n and p are also accepted.

headers INDEX

Show header information for message number INDEX

body INDEX

Show body of message number INDEX

attach INDEX

Show attachments of message number INDEX

delete INDEX

Delete message number INDEX. To see this change reflected in the message listing, please issue a new list command.

release INDEX

Process message number INDEX, releasing it to the original recipient and marking the message as delivered. To see this change reflected in the message listing, please issue a new list command.

SAMPLE SESSION ^

Below is a sample session to better illustrate to use of this shell.

  WWW::Postini Shell 0.01 - Use 'help' for command syntax

  Login: admin@company.com
  Password: password
  Login successful
  Command: user quarantine@company.com
  User ID set to 12345678
  Command: list

  ID  Date  Recipient            Sender               Subject                    
   1) 05-04 user1@company.com    user1@sender.com     Fw: Check this out
   2) 05-03 postmaster@company.c postmaster@sender.co DELIVERY FAILURE: User foo
   3) 05-04 user2@company.com    user2@sender.com     New version of software

  Listing messages (1 - 3 of 3): delete 1
  Message deleted
  Listing messages (1 - 3 of 3): list

  ID  Date  Recipient            Sender               Subject                    
   1) 05-03 postmaster@company.c postmaster@sender.co DELIVERY FAILURE: User foo
   2) 05-04 user2@company.com    user2@sender.com     New version of software

  Listing messages (1 - 2 of 2): release 2
  Message released
  Listing messages (1 - 2 of 2): list

  ID  Date  Recipient            Sender               Subject                    
   1) 05-03 postmaster@company.c postmaster@sender.co DELIVERY FAILURE: User foo

  Listing messages (1 - 1 of 1): quit
  Goodbye!

SEE ALSO ^

WWW::Postini

AUTHOR ^

Peter Guzis, <pguzis@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005 by Peter Guzis

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.

Postini, the Postini logo, Postini Perimeter Manager and preEMPT are trademarks, registered trademarks or service marks of Postini, Inc. All other trademarks are the property of their respective owners.

syntax highlighting: