Closed inits closed 3 years ago
Can you name any servers that need clients to identify?
Can you name any servers that need clients to identify?
https://mail.163.com/ this email server need this
This is now implemented but not yet released.
Lowlevel example:
if (imapClient.serverInfo.supportsId) {
final clientId = Id(name: 'my app', version: '1.0');
final serverId = await imapClient.id(clientId: clientId);
print(serverId);
}
Highlevel example:
final clientId = Id(name: 'my app', version: '1.0');
final mailClient = MailClient(account, clientId: clientId);
// MailClient will now automatically send the client ID to ID-enabled mail services.
await mailClient.connect();
// Access the server ID with mailClient.serverId after connecting:
print(mailClient.serverId);
this is sample code
https://www.ietf.org/rfc/rfc2971.txt