The Pennsylvania Office of Attorney General said Wednesday that it has agreed to pay BuckleySandler $1.4 million for its work investigating emails stored on OAG servers. The amount is nearly $400,000 less than the total outstanding fees billed by the firm.

Attorney General Bruce Beemer announced the agreement less than a week before a new attorney general, Josh Shapiro, is set to be sworn in.