emersion / go-imap

📥 An IMAP library for clients and servers
MIT License
2.02k stars 288 forks source link

imapclient: return greeting text on WaitGreeting #620

Open opsxolc opened 4 weeks ago

opsxolc commented 4 weeks ago

I've also added Templates mailbox attribute here, I didn't find any corresponding RFC, but it's commonly used anyways. If it's not ok to pull this changes together, I can move this part to a separate PR.

emersion commented 3 weeks ago

Can you explain what the use-case is for getting the server greeting? Usually it's some arbitrary text that should be ignored, much like the text in the command replies.

opsxolc commented 3 weeks ago

We use it to determine possible server soft such as axigen, zimbra, qqmail, courier, msexchange etc. And based on this information we may change the behavior of our service in some corner cases.

emersion commented 2 weeks ago

Wouldn't the ID extension be a more appropriate way to do this?