You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively include the text transforms of body_text to be included in the iterator of text_bodies so that the relevant text is returned.
What I found difficult about the current implementation is that an iterator using the text code returns "<html><p>I was thinking about quitting the “exporting” to focus just on the “importing”,</p><p>but then I thought, why not do both? ☺</p></html>" for .text_contents() rather than I was thinking about quitting the “exporting” to focus just on the “importing”, but then I thought, why not do both? ☺ which would seem a more natural return.
The text was updated successfully, but these errors were encountered:
The iterator returned by text_bodies returns an object that is not necessarily a text element. But can become a text element.
Perhaps it might be better to have an iterator that returns a generic object that can be converted to text using functions such as those found in
body_text
(https://github.com/stalwartlabs/mail-parser/blob/65533d3faf6f147fa288fa30eae0bb4df80b2948/src/core/message.rs#L407C12-L407C21)and perhaps make the body_text function generically available as a helper function rather than a method.
Alternatively include the text transforms of body_text to be included in the iterator of text_bodies so that the relevant text is returned.
What I found difficult about the current implementation is that an iterator using the text code returns
"<html><p>I was thinking about quitting the “exporting” to focus just on the “importing”,</p><p>but then I thought, why not do both? ☺</p></html>"
for .text_contents() rather thanI was thinking about quitting the “exporting” to focus just on the “importing”, but then I thought, why not do both? ☺
which would seem a more natural return.The text was updated successfully, but these errors were encountered: