cherti / mailexporter

Export Prometheus-style metrics about mail server functionality
https://prometheus.io
GNU General Public License v3.0
45 stars 8 forks source link

IMAP support? #31

Open Mic92 opened 3 years ago

Mic92 commented 3 years ago

For full end-to-end testing IMAP support would be useful and also is easier to integrate into existing infrastructure since the exporter does not need to run on the mailserver. Is this a feature you would accept as a PR? If so is there a preferred IMAP library?

cherti commented 3 years ago

Yes, I am willing to merge IMAP support. It is something that I have already though of myself, as it has many benefits, as it would also allow monitoring the sending capabilities, which mailexporter cannot really be used for currently.

As for preferred IMAP-libraries, I would prefer to keep the dependency footprint of mailexporter low, so IMAP libraries that do not require tons of dependencies themselves would be preferred, libraries only needing the standard libraries would therefore of course be perfect, if there is one.

Fair warning, due to current private time constraints iterations on a PR might take a bit, won't mean I have forgotten you, just that my capacities are currently rather limited. :slightly_smiling_face:

Mic92 commented 3 years ago

There only seems to be one active maintained library anyway: https://github.com/emersion/go-imap The only third-party dependency seems golang.org/x/text/transform which could be counted as an extended stdlib.

cherti commented 3 years ago

Yes, that does look very promising indeed.