mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.16k stars 380 forks source link

Set client meta #885

Open buhe opened 2 years ago

buhe commented 2 years ago

TLDR, support 126.com mail service. 126.com need like client name, version ...

buhe commented 2 years ago

Use case:

 let imap = new Imap({
            user: 'xxx@126.com',
            password: 'xxx',
            host: 'imap.126.com',
            port: 993,
            tls: true,
            tlsOptions: { servername: 'imap.126.com' },
            debug: console.log,
            id: {
                name: 'myemail',
                version: '1.0.0',
                vendor: "myclient",
                "support-email": 'xxx@126.com',
            },
        } as any);