mail - enable | disable account

Hey all,

I would like to be able to enable and disable an account in apple mail through and applescript. Does anyone happen to have this script or direct me where I can go to get one?

Hi,

take a look into Mail’s dictionary. The class account has an enabled property