Extract all the email addresses that are invalid from this text file: <foo-bar@example.com>: Domain example.com does not accept mail (nullMX) <noperson628@gmail.com>: host mail.banglemail.com[138.68.190.241] said: 550 5.1.1 <noperson628@gmail.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command) <againredacted@example.info>: host emx.mail.ru[218.62.518.180] said: 550 Message was not accepted -- invalid mailbox. Local mailbox againredacted@example.info is unavailable: user not found (in reply to end of DATA command) <xsz032by05wfk5jpe@mail4you.biz>: host emx.mail.ru[217.69.139.180] said: 550 Message was not accepted -- invalid mailbox. Local mailbox xsz032by05wfk5jpe@mail4you.biz is unavailable: user not found (in reply to end of DATA command) <wontsay@bestpay.com.cn>: host mta-ent.21cn.com[183.56.203.132] said: 543 suspected spams or account(IP) exception (in reply to end of DATA command) <redactedfinally@gmail.com>: host gmail-smtp-in.l.google.com[142.250.27.26] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or
Extract all the email addresses that are invalid from this text file: <foo-bar@example.com>: Domain example.com does not accept mail (nullMX) <noperson628@gmail.com>: host mail.banglemail.com[138.68.190.241] said: 550 5.1.1 <noperson628@gmail.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command) <againredacted@example.info>: host emx.mail.ru[218.62.518.180] said: 550 Message was not accepted -- invalid mailbox. Local mailbox againredacted@example.info is unavailable: user not found (in reply to end of DATA command) <xsz032by05wfk5jpe@mail4you.biz>: host emx.mail.ru[217.69.139.180] said: 550 Message was not accepted -- invalid mailbox. Local mailbox xsz032by05wfk5jpe@mail4you.biz is unavailable: user not found (in reply to end of DATA command) <wontsay@bestpay.com.cn>: host mta-ent.21cn.com[183.56.203.132] said: 543 suspected spams or account(IP) exception (in reply to end of DATA command) <redactedfinally@gmail.com>: host gmail-smtp-in.l.google.com[142.250.27.26] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or
The invalid email addresses mentioned in the text file are: 1. noperson628@gmail.com (User unknown in virtual alias table) 2. againredacted@example.info (Local mailbox unavailable: user not found) 3. xsz032by05wfk5jpe@mail4you.biz (Local mailbox unavailable: user not found) 4. redactedfinally@gmail.com (The email account that you tried to reach does not exist) Note that foo-bar@example.com is mentioned as having a domain that does not accept mail, but this is a problem with the domain rather than the email address itself. wontsay@bestpay.com.cn is suspected of being spam, but it is not explicitly stated as an invalid email address.
Testing if the previous output contains the string 217.69.139.180
: False
Testing if the previous output contains the string gmail-smtp-in.l.google.com
: False
Testing if the previous output contains the string redactedfinally@gmail.com
: True
Testing if the previous output contains the string wontsay@bestpay.com.cn
: True
Testing if the previous output contains the string xsz032by05wfk5jpe@mail4you.biz
: True
Testing if the previous output contains the string againredacted@example.info
: True
Testing if the previous output contains the string noperson628@gmail.com
: True
Testing if the previous output contains the string foo-bar@example.com
: True