this-> AddALWL

(Caronte Pcode version 2.0)

Description

void this->AddALWL (string from, string to);

Add a record to the auto light white list database, with the from email address and the to email address values .

Example.

Source:

#import( class , HashArray )

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

this->AddALWL("info@inrete.com","info@caronteantispam.it");
HashArray indexkey = new HashArray();
this->ViewALWLDB(indexkey,100,0,"",0);

for (int i = 0; i < indexkey->GetRecordCount(); i++)
{

this->Print(indexkey->GetByIndexS(i));

}

delete indexkey;

return 0;

}




Out:
1272442882(separator)info@inrete.com(separator)info@caronteantispam.it(separator)