-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import getConfig from "./config.js" | |
// import { writeFile } from "node:fs/promises" | ||
Check warning on line 9 in src/main.ts GitHub Actions / build (16.x)
Check warning on line 9 in src/main.ts GitHub Actions / build (18.x)
Check warning on line 9 in src/main.ts GitHub Actions / build (20.x)
Check warning Code scanning / ESLint Require empty lines around comments Warning
Expected line before comment.
|
||
import POPUpstream from "./upstreams/POPUpstream.js" | ||
Check warning on line 10 in src/main.ts GitHub Actions / build (16.x)
Check warning on line 10 in src/main.ts GitHub Actions / build (16.x)
Check warning on line 10 in src/main.ts GitHub Actions / build (18.x)
Check warning on line 10 in src/main.ts GitHub Actions / build (18.x)
Check warning on line 10 in src/main.ts GitHub Actions / build (20.x)
Check warning on line 10 in src/main.ts GitHub Actions / build (20.x)
Check warning Code scanning / ESLint Enforce sorted import declarations within modules Warning
Imports should be sorted alphabetically.
Check warning Code scanning / ESLint Disallow unused variables Warning
'POPUpstream' is defined but never used.
|
||
import { readFile } from "node:fs/promises" | ||
import SMTPClient from "./smtp/SMTPClient.js" | ||
Check warning on line 12 in src/main.ts GitHub Actions / build (16.x)
Check warning on line 12 in src/main.ts GitHub Actions / build (18.x)
Check warning on line 12 in src/main.ts GitHub Actions / build (20.x)
Check warning Code scanning / ESLint Enforce sorted import declarations within modules Warning
Imports should be sorted alphabetically.
|
||
// import IMAPClient from "./imap/IMAPClient.js" | ||
Check warning Code scanning / ESLint Require empty lines around comments Warning
Expected line before comment.
|
||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
|
@@ -83,6 +84,18 @@ if (getConfig("pop3.enabled", true)) new POP3Server(getConfig("pop3.port", 110), | |
// const mails = await Promise.all(mailPromises) | ||
// for (const mail of mails) writeFile(`mails/${mailIds[mails.indexOf(mail)]}.txt`, mail) | ||
|
||
const up = new POPUpstream({}) | ||
// const up = new POPUpstream({}) | ||
|
||
await up.fetchNewEmails() | ||
// await up.fetchNewEmails() | ||
|
||
const down = new SMTPClient("smtp.ionos.de", 25, false) | ||
|
||
await new Promise(resolve => setTimeout(resolve, 1000)) | ||
Check warning Code scanning / ESLint Disallow returning values from Promise executor functions Warning
Return values from promise executor functions cannot be read.
|
||
await down.ehlo("127.0.0.1") | ||
Check warning on line 94 in src/main.ts GitHub Actions / build (16.x)
Check warning on line 94 in src/main.ts GitHub Actions / build (18.x)
|
||
await down.startTLS() | ||
await down.ehlo("127.0.0.1") | ||
await down.login("*@picoscratch.de", "Passwort#0000") | ||
await down.from("[email protected]") | ||
await down.to("[email protected]") | ||
await down.data(await readFile("mails/35baf742-6aab-4e39-899b-63330c40f6f9.eml", "utf-8")) | ||
await down.quit() |