[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - script to create ingoing and outgoing filters

script to create ingoing and outgoing filters

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

script to create ingoing and outgoing filters

Postby ivan » Mon Mar 24, 2008 7:11 am

Hi,

I would like to create a script that creates two filters (one for incoming and one for outgoing messages) using the From address in a message already stored in a mailbox, in order to send all messages From a To that person to that same mailbox.

I know that there is a PocoMail script that uses QuickFilter to create such a filter on incoming messages, but I don't know how to adapt it so that it also creates a filter on outgoing messages.

The existing PocoMail filter is shown below.

Any ideas?

Thanks,

Ivan


-----------------------------------------------------------------

Code: Select all
{This script is intended to auto-create a filter on a selected message after it has been moved to the desired mailbox.
{The script should be run when receiving a message from someone that is not on your address book, but whom you would like
{to automatically filter his/her messages to a predetermined mailbox you have created.
{The script is to be run after you have moved the message to the desired mailbox. Once there, just select the message
{and run the script, and all following messages from that sender will be automatically moved to the selected mailbox.

{Error control
Set $OnErrorGoto ErrorHandler
Set $OnErrorMessage "Opps... There's been some error executing the script!"

{Get the sender's email address
ReadHeader $From "From:" %Message
ExtractEMail $From

{adds filled From tag to QuickFilter command
AddStrings $CmdTag "/filter/add/From/" $From
CommandTag $CmdTag

:ErrorHandler
Exit


~ Added code tags ... Eric ~
ivan
Drop-in Visitor
 
Posts: 5
Joined: Wed Nov 03, 2004 7:55 am

Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 1 guest

cron