Actually that didn’t work. It compiled OK but when I went to connect to Dovecot, it said it didn’t know what mysql was. I then looked at the formula and my edits were not there.
Adding back ‘–with-mysql’ to the args section and ENV[‘LD’]="-Lemail@example.com/lib" after the ‘]’ didn’t work. ‘brew install dovecot --with-mysql’ fails with:
checking for auth_userokay... no
checking for mysql_config... NO
checking for mysql_init in -lmysqlclient... no
configure: error: Can't build with MySQL support: libmysqlclient not found
The libraries are definitely at /firstname.lastname@example.org/lib.
Actually, they have not been installed there. There are only in Cellar:
locate libmysqlclient /usr/local/Cellaremail@example.com/5.7.24/lib/libmysqlclient.20.dylib /usr/local/Cellarfirstname.lastname@example.org/5.7.24/lib/libmysqlclient.a /usr/local/Cellaremail@example.com/5.7.24/lib/libmysqlclient.dylib
Have run ‘brew remove firstname.lastname@example.org’ and ‘brew install email@example.com’ to no avail.
Have given up on Homebrew for Dovecot and have manually installed it.