SetAccount doesn't work, you're right.
This isn't a particularly elegant way of doing it but it seems to work. There's bound to be a better method but i have no idea what it is...
Create two accounts, one for home use and one for university. Create a script called "Choose account" with the code:
- Code: Select all
InputBox $account "Select an account to use for this session%accounts%" "Default"
ExportVar $account
Create another script called "Set account" with the code:
- Code: Select all
Set $path $scriptpath
AddStrings $path "Choose Account.ini"
ImportVar $account $path
DeleteHeader "X-Account:" %message
AddHeader %message "X-Account:" $account
Note that if you call the first script something different then you'll need to change the second line of the second script to have the same name. In the first script change "Default" to a default account to be selected.
Add the first script to run as an OnStart event. Add the second script to run as an OnCompose, OnReply and any other relevant events.
When you start PocoMail it'll ask you which account to use. When you create a new email or reply to one it should set the account to the one you selected at start up. Fingers crossed
