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

perl pshell.pl

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

helpDisplay help
quitExit shell
user EMAILSets the quarantine context to that of EMAIL. This step must be successfully completed before the commands below.
listList 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 INDEXShow header information for message number INDEX
body INDEXShow body of message number INDEX
attach INDEXShow attachments of message number INDEX
delete INDEXDelete message number INDEX. To see this change reflected in the message listing, please issue a new list command.
release INDEXProcess 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.

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!


Peter Guzis, <pguzis@cpan.org>

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.