Mail sent by code/agent VS mail from user's mail file

Hi,How can we differentiate between the Mail sent by code/agent AND mail from user’s mail file?

There is difference between the two in terms of fields, what else?

Thanks,

Subject: Mail sent by code/agent VS mail from user’s mail file

There is a field called $AssistMail which contains “1” on mails sent by agents. This stops two agents bouncing mail to each other.

Subject: RE: Mail sent by code/agent VS mail from user’s mail file

Thanks Bell