flashmob / go-guerrilla

Mini SMTP server written in golang
MIT License
2.76k stars 361 forks source link

Make cgo iconv package optional #103

Closed flashmob closed 6 years ago

flashmob commented 6 years ago

To make things more portable, make use of "gopkg.in/iconv.v1" import optional, since not every system has the GNU iconv library on their system.

To use the cgo iconv package, the end-user of the API would need to import with an underscore:

_ "github.com/flashmob/go-guerrilla/mail/iconv"

Otherwise, default to using the stock charset converter in golang if above package not imported.

Todo:

This should solve issues

https://github.com/flashmob/go-guerrilla/issues/91

https://github.com/flashmob/go-guerrilla/issues/97

flashmob commented 6 years ago

PR #103 merged