Note: These files are only accessible to licensed users.
The PocoScript Collection will keep growing as we add more scripts. If you want to share a script you wrote, just send it to us via our support email, and if it tests okay we will post it here. Filenames will be modified so spaces are replaced with an underscore ("_"), due to Unix filename restrictions. Feel free to change them after download, or leave them as they are.
Finally, scripts are offered here without any warranty - if you do find a problem with a certain script or a way to improve it send us a note.
The script allows a user to save all messages to/from someone in one of their address books to a specific mailbox. The script supports sub mailboxes based on the name (display name) of the individual from the address book. There are options so that:
1. Different master mailboxes can be used for incoming and outgoing messages
2. Control of what to do for outgoing messages with multiple recipients (in the To header)
- None - Message is not saved by the script, it will be passed back to Poco so the remaining filters can act on it.
- Save - Message is saved
3. Control of how the script acts when no sub mailbox exists
- Create - A sub-mailbox is created
- None - Message is not saved by the script, it will be passed back to Poco so the remaining filters can act on it.
- Save - The message is saved to the master mailbox.
Script to mark the messages from senders in a specific address
book with a specific colour that is configured in the ToolOptionsMessage marking
panel. The script is good for all incoming
messages.
Insert a HTML code fragment into a message. Searches the
message body for a line "*HTML*", replaces the line with the clipboard
contents, saves the resulting message in the Out mailbox, and deletes the
original message.
Modification of the "Ban Adult Sender and Delete" script. Add's
the Sender's DOMAIN ONLY to the JunkSender.txt file, then sends the message to
the Trash. Not suitable for automatic use; use only on demand.
This script toggles the "read"/"unread" status of marked messages
by changing the "X-Poco-Status" header in PocoMail V3, or the "Status"
header in PocoMail V2.
A common spam trick to to cycle through a list of words or names
and just tack on the ISP name after the @. It is very rare that a real message
to you will also be sent to another email at your ISP So, if your ISP appears
more than once in the list of recipients, it is probably junk.
A reminder to review the junk mail folder. Run with notification
of new messages arriving in the junk mail folder turned off. You will want to
check them every once in a while to ensure there aren't any legimate messages
there. This script, when configured to run from an OnTimer event, performs that
task.
Up to now, Poco cannot correctly display UTF-8 (Unicode)
characters in received messages. As a workaround for German users, this script
converts the German characters ä, ö, ü, Ä, Ö, Ü, ß, à, and the Euro sign in such
messages into a readable form. This script does NOT change the message stored in
the mailbox, i.e. this script is safe. It may be possible to adapt this script
to other languages. This script runs on Poco 3.0 or later. It will become
obsolete as soon as Poco natively supports Unicode. Copy this script into the
Scripts directory, then press Ctrl+F9 in Poco (or go to Tools, Events menu), and
make this script run in case of the following events: [OnDisplay], [OnReply],
[OnReplyAll], and [OnForward]. You'll need to shutdown and re-start Poco
afterwards!
Forwards the selected message to the SpamCop service. You must
provide your SpamCop Authorization code in the script setup. If you do not
have a SpamCop authorization code, you can get one for free at http://spamcop.net/. This script contains a
couple of extra privacy features, namely, the deletion of certain headers that
might otherwise help the recipients of the spam reports identify you. The
headers that are deleted are all "X-Poco" headers, "YahooPops" headers, and an
additional one selected by you, and input into the "Setup Script"
section. Also in the "Setup Script" section, you may specify two other text
strings that you do not want to appear in the SpamCop reports. This will
delete all occurrences of the specified text. I have found this necessary
because SpamCop will not remove your e-mail references from the generated
reports if they are contained in the body of the message, or in non-standard
headers. Finally, the script will remove the "X-Account" header - this header
can identify your e-mail address *and* your surname, if your account is
configured accordingly in PocoMail. Better safe than sorry. Once all the
mungeing and processing is completed, your prepared message is presented for you
to send, or edit before sending.
Detects and files spam from worldwide domains. This script looks
for a dot located three characters from the end of the From, Reply-To, and
Return-Path fields, indicating a domain outside the United States. Consider the
following strings:
<
>
<
>
Assuming the suffix ".br" has not been exempted by the user, the script
first strips any trailing ">" which may exist. Next, it checks for any domain
you wish to exempt from filtering, e.g. if you want messages with ".uk" to be
exempt from filtering, enter ".uk" as the $exempt_domain (you may duplicate this
code for as many domains as you wish to exempt). If you do not want any domains
to be exempt, set $exempt_domian to "" (null string). The script then checks to
see if the third character from the end of the string is a dot. If it is, the
script moves the message to the designated mailbox. Now consider these strings:
<
>
In the above cases the script will not see a dot character but will
instead see a "c" or "n" and will not filter the messages.
Lookup a word at dict.org from the clipboard. This script is
intended to be assigned to a custom button, e.g., button 7, and used in
conjunction w/ the hotkey for copying a selection to the clipboard. I.e., select
word(s), press CTRL-C, then CTRL-7 (where 7 is number of the custom button).
Removes the "From" address from the specified group in an address
book. This script is designed to be run against Incoming or selected messages
messages.
Author: Slaven Radic, updated by M.Motek, Jordan Callicoat
Date: 7 Jun 2002, updated on 17/2/2003, 17/3/2003
It will use an existing HTML file as the message body, overwriting
the current message and save the result in the Out mailbox. The script deletes
the original message so it can be used easily inside Out mailbox. Best used
manually, for example, queue the message you want to have a custom HTML body, go
to Out mailbox then run this script on that saved message. The message will be
replaced with the new one. Update: Now checks that html file exists,
adds user configurable option to delete html file after use, uses ImportSettings
command to preserve settings. Update 2: Show a dialog asking for file to
insert; Remember file with ExportVar; Show last used file in insert dialog with
ImportVar.
This script works it's way through the index file for each
mailbox, looking for any messages that are marked (Reply, Follow up etc). If it
finds a marked message it will add both the mailbox and the message details to a
slimmed down (and modified) version of the QuickGuide. It is recommended that
you Compress all your Mailboxes prior to running this script. Update:
Joel fixed a reported problem.
This script will modify From header, so that if any of the
recipient addresses is found in the selected address book, it will be expanded
to a full name and address format, for example: From:
if
found in the address book would be expanded to: From: Jane Smith
<
> Usage: for use ONLY on on incoming messages; will NOT
work on selected messages
This script can save a copy of your draft message to a file when
you save it to the Draft mailbox and/or when you send it. It can also optionally
delete the draft message file when the message has been successfully sent. You
will need to add the following two lines to the draft.dat file in the Mail
subdirectory: [Events] OnAdd_Scripts=manage_draft_message You may also
want to set up Outgoing and Post-Send filters; see the Setup section of the
script for details.
This script will select (tag) all messages that have not been
replied to. Messages originating from an account in this Poco setup will be
excluded. Once tagged the Poco "Show Only" bar can be used to display only those
messages. To display all messages in a mailbox that have annotations: a.
Select all messages in the mailbox. b. Run the TagUnreplied script by
selecting "TagUnreplied" from the "All Scripts Run" item on the "Tools"
menu. c. Select "tagged" from the "Show only"
bar.
The script checks the body of an outgoing message for "attach" or
"enclos". If either of these is found, the script looks for an attachment. If
there is no attachment, the user is notified and the message is placed in the
editor, giving the user a chance to add an attachment. If the message doesn't
mention attach/enclose, or if it does but an attachment is present, the message
is sent transparently. The filter can be disabled if a particular message is
intended to be sent w/o attachment even though the magic words attach/enclos
appear in the body. The script should be used as an outgoing filter.
Updated: The user can now also decide whether to edit the message or to
send it as is without an attachment.
When subscribed to a mailing list, it is considered bad form to
reply to individual users; that is what the list is for. However, a Reply will
usually go back to the poster, not the list, and ReplyAll just keeps
perpetuating the problem. This script fixes that problem.
It reads the currently selected message looking for the List-Post header.
That address becomes the To. The subject is read, stripped of any Re: substrings
and prefixed with our own "Re: ". The message id is read and becomes the
In-Reply-To header. The From and Date are read and become the body reply header
(On 4/5/2002, Joe Bag-o-donuts wrote:) The body is read, quoted and appended to
the new body. Finally, the signature is read, if it exists, and appended.
This script attempts to fix problems with the return addresses
generated by the ReplyAll function. Some strangely formatted "To:" recipient
lines can cause Poco to insert them back into the reply, this script removes any
"To:" entries in the reply that do not contain an "@".
This script will allow you to selective delete attachments encoded
in the message (not already saved to the attachments folder). It prompts for
each attachment still contained in the mail and delete those selected.
Will go through messages in the Junk Mail box and add the senders
domain to the JunkSender.txt file. If the Reply-to field is present the user
will be queried to ban that also. Individual email id's that belong to the
banned domain(s) are removed from the junksenders.txt file since they won't be
needed after the domain is banned. Any remarks are left intact. Script only
operates in Junk Mail box in manual mode on messages you have
selected.
Designed to work with two companion scripts: filter_messages_against_address_book.poc Which
filters the incoming mail into the Junk Mail box where this script looks unless
they are in the banned senders list in which case they are moved to the Trash
box OR unless they are in the address book in which case the message is moved to
the In box (even if in the banned list). ban_sender_and_move_to_trash.poc which
runs manually in the Junk Mail box and adds the senders email address to the
banned senders list after verifying they are not in the address book. Then it
moves the email to the Trash mail box.
Turn on the "Return receipt" header as the default. This script
can only be run against outgoing messages or via one of the following Poco
events: OnCompose, onBounceEdit, onForwardAttEdit, OnForwardEdit, OnReplyAllEdit
and OnReplyEdit. Running the script on outgoing events will cause the header to
be added to all messages. You can control this to a degree by configuring
filters to decide when to run the script. See www.jdfsoftware.com/pocofaq/events.html
for info on how to setup the events.
Set this script up to act on incoming email automatically. Script
will compare the To, From and Reply-to headers of an email address. If From
and To addresses equal My email address (spoofed) move to Trash box. If
Reply-To or From address is in the address book message is moved to the In
mailbox. Otherwise... If Reply-To or From address is in a banned domain
then message is moved to Trash box. If Reply-To or From address is in the
Banned senders file (junksender.txt) it is moved to the Trash box. If NOT in
the Banned senders file the message is moved to the Junk Mail box where it can
be reviewed before running the companion script
(Ban_Sender_and_Move_to_Trash.poc).
Set this script up to respond to one of your script buttons or as
a filter with a Ctrl-key combination. Script will go through messages in the
Junk Mail box and add the senders to the JunkSender.txt file (but only if not in
your address book). Both the Reply-to and From headers are checked against the
address book: If either is found the Address will not be banned. Instead you
are asked if you want to delete the message. Otherwise, if either is in the
banned list the email is sent to trash mail box. If neither is found both are
added to the banned list, if not blank not the same address, or if the domain is
not already banned. Script Only operates in Junk Mail box in manual mode on
messages you have selected.
The script will go through all EML attachments present in your
Attachments directory and save them as messages to the current mailbox. There
are three alternate versions of the script: the
script that prompts to see which messages are added; the
script that acts on EML attachments only in the currently selected message;
and, the
script that prompts which of the EML attachments in the current message to
add to the current mailbox.
This script copies the From, Subject, Date, To and CC and BCC
headers (if present) to the clipboard; it also cleans up the To, CC and BCC
fields and puts the message body into a temporary file. The script was designed
to work by relying on MS Word to open and correctly render the message body type
(i.e. plain text or html). You will need this
macro to make the script work. The script leaves the whole message on the
clipboard so that it can be pasted into another document.
The script will display the name for a given email address. The
script will first check to see if the user has selected an email address from
the message, if so that address will be used for the search. If no address has
been selected the script will prompt the user to supply one. The script then
searches all the user's address books and displays the name corresponding to the
first match found.
Adds the sender of the passed message to the chosen address book.
It will add the entry to the address book only if the same address is not
already present in the address book. Can be used on all incoming mail, as well
as manually; for example, select all messages in a mailbox and run the script on
all of them to create a comprehensive address book. Or if used in conjunction
with Show Only bar to select messages, the options become
limitless! Updated: This script is 3 years old, now updated to work
with PocoMail 2.6x versions.
Deletes all files with specific extensions from the attachment
directory. The user can configure the list of extensions using Poco's Script
setup functionality.
When you open an unread message and the sender has asked to be
notified when you read the message, this script will create a return receipt
message. A message box will inform you about that. Afterwards, you can send that
message, or you can delete it. Works only with PocoMail 2.61 or later.
Installation: Copy this script into the Scripts directory and add the following
line to the POCO.INI file under the [Events] heading (add the heading to the
bottom of POCO.INI if not already
present): [Events] OnDisplay_Scripts="return_receipt" Updated:
works properly with version 2.62.
Implements "Send Again" functionality by saving the current
message to the Out box. The date header will not be changed unless the message
is opened and re-queued. Best used manually on selected messages.
Examine messages for the same address in the From and To lines and
treat as spam if the address matches that of the current account. To be used
automatically via Incoming or Pre-download filters.
Reports the highlighted message to the SpamCop reporting service
Requires a SpamCop authorization code to be set via the Setup Script area to
function. To get one, visit: http://spamcop.net/anonsignup.shtml You
will receive an email with your authorization code.
Create an address book group from a list of addresses in CSV
format in clipboard. Usage: Open the file with CSV-formatted group, copy to
clipboard then run this script to create a group. If the group already exists
this script will add the addresses to it.
Emulates Outlook's option "Add contact information for people I
reply to". This script should be included in a filter run against outgoing
messages. Update: Michael Motek added ability to prompt for addition. Update 5
April 2002: Curt Wischnewski added ability to specify address book. Update 26
April 2002: Michael Motek addded ability to prompt for nickname. Update 4 July
2002: M.Motek, do not delete entry if no nickname entered; check Poco build
number; removed code for handling null fields (PocoScript bug fixed).
Add's the Sender to the JunkSender.txt file, then sends the
message to the Junk Mail folder. Not suitable for automatic use; use only on
demand. Update 13 July 2002: fixed a bug that caused junk sender files to grow.
Script to manually run on received junk mail - it checks to see if
the Sender is in the JunkSenders file and adds them if they are not, then it
moves the message to the Junk Mail mailbox. A variation of the script called ban_adult_sender_and_delete.poc
will do the same except it will move the message to Trash instead of Junk Mail
mailbox. Update: fixed saving problem. Update 13 July 2002: fixed a bug that
caused junk sender files to grow.
Script will read a message for URLs and manipulate them in such a
way as to prevent automatic HTML bugs from giving away the store. Works only
with PocoMail builds 1032 and later, as it uses the new OnAdd PocoScript mode to
run on any messages saved to a specific mailbox. This script will install both
UnbugHTML.poc and RebugHTML.poc scripts and setup OnAdd events.
There can be a problem with postal address entries being inverted
when imported from Outlook via Netscape 4.79. The attached script will flip the
address entries back.
Emulates Outlook's option "Add contact information for people I
reply to". This script should be included in a filter run against outgoing
messages. Update: Michael Motek added ability to prompt for addition. Update 5
April 2002: Curt Wischnewski added ability to specify address book.
A short script that will reprocess a message to replace any CVT
tags. The script can be run against selected messages (usually from the Draft
mailbox) or against outgoing mail. It was written to solve a problem a user
reported when they were using nested %random% tags but the script is more
general than that, it allows any CVT tag to be manually entered in the message
and then be replaced.
Emulates Outlook's option "Add contact information for people I
reply to". This script should be included in a filter run against outgoing
messages. Update: Michael Motek added ability to prompt for addition.
Script to sign an outgoing message with the ability to control the
script via the User Header. To sign your outgoing message, you have to go to the
Optional tab in the Compose window and in the "User Header" field enter
pgp: y
If this is not found the script will not sign the message. You
will also need gnupg.bat file,
make sure to update paths in both the script and the BAT file for your system.
Script will check the message against your keyring, and if the key
for it is available, the script will put the decrypted text as an attachment to
the email. NOTE: Works only with feature: leave attachment encoded in the
message. You will also need pgptest2.pl
file and have a Perl interpreter.
Script will check the message against your keyring, and if you
have the signature in it, will display verification of it. Works with PGP
library. You will also need pgptest.pl file
and have a Perl interpreter. The script adds a header "PGP-Status" to the
processed message so you are able to
use %header%:"pgp-status" inside your ControlStrip.htm to quickly
see PGP status.
Empties the trash mailbox ensuring that any detached attachments
are also deleted. Can be run from either the scripts dialog box or via a button.
Only operates on the trash mailbox. When run in debug (dry run) mode, it is
non-destructive. Only when executed outside of the 'debugger' will it actually
perform the physical file deletions.
The script can be run either from the "Debug run" button on the
"Scripts" window or against selected messages. When run against selected
messages the script will extract the values from various header fields and use
them as the default values for some of the choices. These default values will
only be used if you select the appropriate search option and ok the use of that
value. For example if the message came from "
" and you
selected to search on the "From:" and selected to use a "Search Value" then
"
" would be the default value presented in the search value
input box. Update: new version of the script released, with much better
result diplay and formatting through HTML. Updated 18 Feb 2002 for
PocoMail 2.6, now uses the internal HTML viewer for display. Updated 25 Oct 2007 to be compatible with PocoMail 4.5 filters, new files are filtersearch.poc and pocofiltersearchfields.txt.
Attempts to trace the path spam took from it's origin,
highlighting any possible open relays and uplink providers. Works by using the
message Received headers.
This script resends a selected message to the original recipient.
The user has the option of editing the message prior to sending, queuing it for
later sending or sending it immediately. If there was more than one original
recipient of the message then the message will be edited to allow the user to
remove recipients if necessary.
The script will find duplicate messages to messages in the
selection. This version, unlike the original version of this script, will only
mark the duplicate messages according to the setup window. Optionally, you can
also download the companion script markduplicates_cleanup.poc
that will remove any left over temporary files on your drive.
This script is an attempt to implement printing of a portion of an
email. The script relies on the user first copying the information to be printed
to the clipboard.
This script will extract the originating IP address from the
received headers as an attempt to determine where SPAM is originating. The
script examines the "Received" headers of a message and takes the 1st string
bracketed by square brackets ("[" and "]") from the last received header to
contain such a string and reports it.
This script is designed to be run against outgoing messages. It
allows users to have multi-line tags in a single file. The standard tagline
support should be used in a signature this script adds support for the "%nl%"
common variable tag which will insert a new line thus creating a multi-line tag.
Eg: Line1%nl%line2%nl%line3 will become: Line1 line2 line3
This script changes the background colour of a message. It would
typically be used on selected messages when the sender has selected a colour
that makes the message difficult to read. The desired colour can be picked from
the list, in plain English.
Select (tag) all messages that have an annotation (or whose
annotation contains a user specified phrase). This script is designed to be run
against selected messages. Once tagged the Poco "Show Only" bar can be used to
display only those messages. To display all messages in a mailbox that have
annotations:
Select all messages in the mailbox.
Run the TagAnnotatedMessages script by selecting "TagAnnotatedMessages" from
the "All Scripts Run" item on the "Tools" menu.
Select "tagged" from the "Show only" bar.
When run in debug mode
the script will display the text that should be used to select all messages.
This allows the user to copy that text and reset the default tag text parameter
using the "Setup Script" function.
Load raw message into user's browser so it can be printed with
formatting intact. Update: script will now check for existance of scripts
in the viewed message and warn the user if found.
Scans the body of an email to see if it contains JavaScript code,
if it does the script warns the user. Written in response to the Wire Tap
JavaScript bug, but can be used to detect any type of JavaScript embedded in the
message.
This script backs up important Poco files to the user's "A" drive.
The script is designed to be run in dry run mode. New version no longer uses BAT
files to copy, works with long filenames with spaces. The files backed up by
this script are:
All ".ini" files from your main poco directory
All address books (".ini files") from your address directory
The "mail.ini" file from your mail directory
All text (".txt") files from your mail directory
All signature files (.txt) from your signature directory
All script files (".poc") from your scripts directory
All template files (".txt") from the "Templates" directory beneath the main
Poco directory.
This script will modify TO and CC headers, so that if any of the
recipient addresses is found in the selected address book, it will be expanded
to a full name and address format, for example: To:
<
> if found in the address book would be expanded
to: To: Jane Smith <
> This script should be run on
outgoing messages only.
Script will extract all addresses from an address book and create
a file of names that can be copied back into the address book creating a single
list for all members of the chosen address book.
Script to bounce incoming messages to another address if the
message was sent to a specific address, user or domain. The bounced message will
be saved in the Out mailbox to be sent, identical to the original message apart
from the new To address. Best run on incoming mail, but can be used manually or
on outgoing mail.
Script that clearsigns outgoing messages when used with GnuPG PGP library. The scripts currently only
use standard clearsigning, which wraps the entire message in a signed block. I
am still experimenting with detached signatures, which put an attachment of the
digital signature on the message. You need BOTH to decrypt and verify. It's a
little prettier to read, but more difficult to script.
Script will check the message against your keyring, and if you
have the signature in it, will display verification of it. Works with GnuPG PGP library. You will also need gpgveri.bat
file - it contains the calls necessary to run verification against the current
message. The PIF for the batch file should be set to NOT close the window when
complete, so you have time to see the message...OR you need to add a "pause" to
it.
PocoFTP will allow you to turn Poco into a small FTP server that
functions solely through e-mail. This script will monitor incoming messages for
PocoFTP messages, and when found will process them as FTP requests. Script can
send back directory listings and requested files; it also supports multi-user
configuration with directory permissions for each user and password protection.
Similar to the Vacation Message script included with Poco, this
script will send reply messages when you are out of the office or away from the
computer. Unlike the Vacation Message, this script will first check to see if
the sender is present in the address book and if not it will not send a reply
message to protect you from spam.
This will send a message to all recipients in an address book
creating one message in the Out box. It will suppress the list of recipients
from display (all of the recipients are in the BCC: list) and you can enter
anything to be displayed in the From field.
Runs Poco's built-in filters on selected messages. The script will
run both Incoming and Outgoing filters. At the moment this script only supports
two filter actions, Move and Copy. Refilter script is based on PocoFilter script
but it accepts Poco's new Filter format, contained in file FILTER.INI.
This script expands on Poco's built-in message filters, allowing
you to have a single configuration file to control an unlimited number of
filters with great flexibility. The script reads in as input a CSV file
containing the instructions for the filter which can be setup from the Setup tab
of the Filters and Scripts window.
Use this script to remove duplicate messages you may have in your
mailbox. Make sure to compress your mailbox before running this script, best
used manually on selected messages.
This script converts a CSV 'mailbox' (exported from Outlook) to a
Poco mailbox. Due to the limitations of Outlook's Export feature, some
information normally present in the message headers may be lost through
conversion. This script is for advanced users aware of this.
This script will send a message template to all the addresses in a
single address book without using BCC field - each recipient will receive their
own message, with their address appearing in the To: field.
A simple script that will take any message passed and convert the
body of the message completely to lowercase characters. Best used if run on
outgoing mail, but it can be used for incoming mail or manually.
If you are using a third-party editor to work with PocoScript try one of these PocoScript syntax definition files: