strangerstudios / pmpro-mailchimp

WordPress plugin for MailChimp integration.
https://www.paidmembershipspro.com/add-ons/pmpro-mailchimp-integration/
GNU General Public License v3.0
25 stars 23 forks source link

Scrub email addresses in the log file. #135

Closed andrewlimaza closed 1 year ago

andrewlimaza commented 1 year ago

Scrubs email addresses in the log file which is publicly available if the direct URL is known. The output will be andrew@*.com. This will be easier for site admins to cross-reference between MailChimp and PMPro as doing **@gmail.com doesn't make sense as gmail is very common. This will always show 3 asterisk to make it hard to guess what the domain could be.

Notes: Site owners should delete this file when not in use, it will automatically be deleted when this Add On is updated. This will look at the entire log file and scrub all instances of emails.

andrewlimaza commented 1 year ago

Sample ouptput:

Logged On: 11/15/2023 13:29:44
Mailchimp Response: 1 error(s). Array
(
    [0] => stdClass Object
        (
            [email_address] => admin@****.local
            [error] => admin@****.local was permanently deleted and cannot be re-imported. The contact must re-subscribe to get back on the list.
            [error_code] => ERROR_GENERIC
            [field] => 
            [field_message] => 
        )

)