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.
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.
EMAIL
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.
next
prev
n
p
headers INDEX
Show header information for message number INDEX
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.
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!
WWW::Postini
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.
To install WWW::Postini, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Postini
CPAN shell
perl -MCPAN -e shell install WWW::Postini
For more information on module installation, please visit the detailed CPAN module installation guide.