aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-03-13main(): Replace `unwrap`s with tryTeddy Wing
Move the `main()` function contents to a new `run()` function that returns a `Result`. This way we can easily print the error in `main()`.
2021-03-13Replace `unwrap`s with try in non-main functionsTeddy Wing
2021-03-13Write an attribution config fileTeddy Wing
Set attribution config strings for French and English. If the input email's body language is in French, set my French attribution string. Otherwise use English. Write the attribution string to a config file at `~/.local/share/ottolangy/attribution.muttrc`. We can then source this config file to set the attribution.
2021-03-09Use 'whatlang' to detect the language of the email bodyTeddy Wing
2021-03-09Move email body parsing code to a new functionTeddy Wing
Isolate this block.
2021-03-09Fix single-part email handlingTeddy Wing
The old code was from when I was testing with a multipart email and hadn't figured out how to extract the body from it.
2021-03-09Remove old email parsing trialsTeddy Wing
Now that we've worked out how to do this, I can remove my old essays.
2021-03-09Work out how to get the body of a multipart emailTeddy Wing
Figured out why I was getting an empty string before: I was inputting a multipart email. I need to actually look through each part to get the message body. Look for the body of the "text/plain" part.
2021-03-09Try extracting the body of an email messageTeddy Wing
2021-03-09Testing out different libraries for email parsingTeddy Wing
2021-03-08New Rust v1.50.0 projectTeddy Wing
Generated with: $ cargo init --bin
2021-03-08Add ideaTeddy Wing