Skip to content

Issue #5483 parse address line#5489

Open
bschmalhofer wants to merge 7 commits intorel-11_1from
issue-#5483-parse_address_line
Open

Issue #5483 parse address line#5489
bschmalhofer wants to merge 7 commits intorel-11_1from
issue-#5483-parse_address_line

Conversation

@bschmalhofer
Copy link
Copy Markdown
Contributor

No description provided.

show that whitespace is normalized
assuming that 'map' is beautiful
Also, in the sample code of the POD, change the unmotivated 'qeber' to 'weber'.
replacing the private method _MailAddressParse()
added a couple of test cases
@bschmalhofer bschmalhofer requested a review from svenoe May 6, 2026 14:25
Start using `Path::Class::file->slurp()` for reading in sample files.
Better grouping of tests in subtests. One subtest for each tested method.
Add test cases for when the address does not contain an '@'.
Add test cases for the planned parameter 'AddressObject' in GetEmailAddress()
Not adding a test case with quoted-pair as Mail::Address gives a strange result.
just to make it more clear which test cases belong together
Keep the logic where an empty list is returned when the address
does not contain an '@'.

Test cases for GetEmailAddress() where an address object were already present.

Document that using ParseAddressLine() is recommended.

Call ParseAddressLine() instead of SplitAddressLine() in the case
where only GetEmailAddress() is called. In these case pass
the instance of Mail::Address to GetEmailAddress().
Use $AddressObject->format in the case where the stringified address object
is needed.
use that variant in MIMEBase.pm
add basic test cases
@bschmalhofer bschmalhofer force-pushed the issue-#5483-parse_address_line branch from 9c4869b to 73c94e8 Compare May 6, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant