mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.38k stars 89 forks source link

Feature: Add ability to add signatures for webmail #102

Open nixigaj opened 7 months ago

nixigaj commented 7 months ago

It would be a nice-to-have to be able to add a signature in the destinations settings page that pre-fills the mail when you compose a new one.

mjl- commented 7 months ago

Hi nixigaj! Agreed, would be good to have. And probably a few more settings while we're at it. I plan to do some work on the webmail again, probably in a few weeks, could take this up then.

In case you would be interested to implement this, I could give some pointers. I think storing the settings in the account database would be best, not in the config file. Then add an API call to fetch the settings, and one to update the settings. When loading the webmail, read the settings through the API call. Also add a new button in the top-right of the webmail to open settings, showing a popup, where user makes changes, and finally save is done via an API call. When composing, add the signature from the settings.