The token should always be sent as the last parameter, or at least after the $1text parameter.
MailStore Service Provider Edition Email Archiving Software For Service Providers.
For on-premise use check out MailStore Server.