SAN FRANCISCO — After last week’s win for plaintiffs in a privacy lawsuit against Google Inc., the Burlingame firm of Cotchett, Pitre & McCarthy filed a similar class action Wednesday against Yahoo over its policy of scanning email to target advertisements.

Lawyers at the plaintiffs firm accuse Yahoo of intercepting emails to boost its bottom line in violation of the Electronic Communications Privacy Act of 1986 and California’s Invasion of Privacy Act. The suit filed in U.S. District Court for the Northern District of California echoes allegations against Google over its handling of Gmail that U.S. District Judge Lucy Koh allowed to move forward in a Sept.26 order that rejected many of Google’s defenses.