; and ; and (4) by adding at the end the following: (4) an intermediary service provider shall not knowingly divulge— (A) to any person or entity the contents of a communication while in electronic storage by that provider; or (B) to any governmental entity a record or other information pertaining to a subscriber to or customer of, a recipient of a communication from a subscriber to or customer of, or the sender of a communication to a subscriber to or customer of, the provider of electronic communication service to the public or the provider of remote computing service for, or on behalf of, which the intermediary service provider directly or indirectly delivers, transmits, stores, or processes communications. . 21. Limits on surveillance conducted for foreign intelligence purposes other than under the Foreign Intelligence Surveillance Act of 1978 (a) In general Section 2511(2)(f) of title 18, United States Code, is amended to read as follows: (f) (i) (A) Nothing contained in this chapter, chapter 121 or 206 of this title, or section 705 of the Communications Act of 1934 ( 47 U.S.C. 151 et seq. ) shall be deemed to affect an acquisition or activity described in clause (B) that is carried out utilizing a means other than electronic surveillance, as defined in section 101 of the Foreign Intelligence Surveillance Act of 1978 ( 50 U.S.C. 1801 ). (B) An acquisition or activity described in this clause is— (I) an acquisition by the United States Government of foreign intelligence information from international or foreign communications that— (aa) is acquired pursuant to express statutory authority; or (bb) only includes information of persons who are not United States persons and are located outside the United States; or (II) a foreign intelligence activity involving a foreign electronic communications system that— (aa) is conducted pursuant to express statutory authority