purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

Addressbook refresh #504

Open romanofski opened 1 year ago

romanofski commented 1 year ago

Is your feature request related to a problem? Please describe. Currently the Addressbook is missing a refresh function to refresh addresses from a mutt alias file. The type is currently:

Maybe (IO AddressBook)

this might be fine and we need to use try and catch any exceptions to show in the UI. However one downside is that we need to "lift" and throw ParseErrors. If we use Maybe (Either Error (IO AddressBook)) it will get gnarly but may represent parsing errors better.

Describe the solution you'd like Figure out which solution is better.

Describe alternatives you've considered See description

Additional context none