imap_client 0.1.2 copy "imap_client: ^0.1.2" to clipboard
imap_client: ^0.1.2 copied to clipboard

outdated

An interface to get emails via the imap protocol (version 4rev1)

example/imap_client_example.dart

import "package:imap_client/imap_client.dart";

main() async {
  ImapClient client = new ImapClient();

  await client.connect("imap.gmail.com", 993, true).then((response) {
    print(response.fullResponse);
  });
  await client.capability().then((response) {
    print(response.untagged['CAPABILITY']);
  });
  await client.noop();
  await client
      .authenticate("example@gmailcom", "verysecurepassword")
      .then((response) {
    print(response.status); // NO, because credentials are invalid
  });
  await client.logout().then((response) {
    print(response.fullResponse);
  });
}
15
likes
0
pub points
63%
popularity

Publisher

unverified uploader

An interface to get emails via the imap protocol (version 4rev1)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

logging

More

Packages that depend on imap_client