[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 - Restoring delivery date

Restoring delivery date

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

Restoring delivery date

Postby Eric » Wed Aug 18, 2004 6:19 am

I used this script over and over again to restore blank delivery dates and it works on one or more messages.
:) Can't remember who wrote it, but kudos to this person.

Assign this script to a User Action Button.

Compress mailbox(es) before firing this script on selected message(s)

Code: Select all
{if not manual mode, exit
If #PocoScriptMode ! 5 Then Exit
Set $DeliveryDate ""
ReadHeader $DeliveryDate "Delivery-Date:" %message
{only add it if it doesn't exist
If $DeliveryDate ! "" Then Exit

:AddDeliveryDate
ReadHeader $SentDate "Date:" %message
AddHeader %message "Delivery-Date:" $SentDate
SaveMessage %message $CurrentMailbox
DeleteMessage %message

:Exit


Enjoy :wink:
Eric
 

Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 2 guests

cron