Google Inc. has agreed to settle a class action challenging the way the company analyzes email messages on its popular Gmail service in order to build user profiles and serve targeted ads.

The deal outlined in court papers Tuesday evening doesn’t include a cash payout to class members. But plaintiffs lawyers wrote that the company agreed to implement changes to its email processing practices to settle claims on behalf of non-Gmail subscribers that their messages to Gmail users were intercepted, scanned and stored in ways that violated state and federal wiretapping laws.