[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 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 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 - SetAccount doesn't work...

SetAccount doesn't work...

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

SetAccount doesn't work...

Postby interfaSys » Sun Jan 15, 2006 10:53 am

I use this:

Code: Select all
ReadHeader $account "X-Account:" %message
SetAccount $account


but nothing happens, the correct account is not set.

How stable is this Pocoscript? Nothing really works as expected...
interfaSys
Poco Tourist
 
Posts: 20
Joined: Wed Aug 11, 2004 10:54 am

Re: SetAccount doesn't work...

Postby Eric » Sun Jan 15, 2006 11:03 am

interfaSys wrote:Nothing really works as expected...
Can't help you with it, but do take a look here too. :)
Eric
 

Postby interfaSys » Sun Jan 15, 2006 7:39 pm

Thanks for the tip. I know that page, but I find it amazing that since Barca relies so much on scripts to manage emails, it doesn't provide a more robust and more useful environnement.
interfaSys
Poco Tourist
 
Posts: 20
Joined: Wed Aug 11, 2004 10:54 am

Postby interfaSys » Sun Jan 15, 2006 8:27 pm

I found out that this worked:

Code: Select all
AddHeader %message "X-Account:" $account


It doesn't make sense...
interfaSys
Poco Tourist
 
Posts: 20
Joined: Wed Aug 11, 2004 10:54 am

Postby Michael » Wed Jan 18, 2006 6:06 pm

Within a message Poco (and Barca) use the "X-Account" header to keep track of the account from which messages arereceived (and the account from which messages are sent).

The SetAccount command sets the account from which the various "Read" commands get their information:
  • ReadAccount
  • ReadFullname
  • ReadEmail
    [*ReadPOPServer
  • ReadPOPLogin
  • ReadPassword
  • ReadSMTP
  • ReadSignature
  • ReadAccountTag
It is also used to specify the account to which the following actions apply:
  • SetFullname
  • SetEmail
  • SetPOPServer
  • SetPOPLogin
  • SetPassword
  • SetSMTP
  • SetSignature
  • SetAccountTag
Michael
Moderator
 
Posts: 866
Joined: Mon Jul 26, 2004 12:14 pm
Location: Victoria BC, Canada


Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 1 guest

cron