cleanup, fixed erasing of b tag

This commit is contained in:
2025-06-14 12:32:51 +03:00
parent a3ecaeef55
commit 91ca01b255
4 changed files with 5 additions and 32 deletions

View File

@@ -1,4 +1,3 @@
#include "email_parser/emailparser.h"
#include <mainwindow.h>
#include <net/net.h>
#include <settings/settings.h>
@@ -15,40 +14,14 @@
# include <filesystem>
using namespace std::filesystem;
#endif
#include <QDateTime>
#include <QFile>
#include <QStackedLayout>
#include <QTextStream>
#ifdef BUILD_TRANSLATIONS
# include <QTranslator>
#endif
#include <settingsdialog.h>
#ifdef BUILD_EMAIL_MODE
// #include <vmime/vmime.hpp>
#include <email_parser/emailparser.h>
# include <email_parser/emailparser.h>
#endif
#include <QPushButton>
#include <utils/base64.h>
#include <utils/utils.h>
int main(int argc, char *argv[]) {
// std::string path = "/tmp/html";
// std::string content = read_file(path);
// Check c = parseOfdRuAnswer(content);
// std::cout <<
// return 0;
// EmailParser p;
// p.parse_file("/home/leca/example_email_receipts/avito.eml");
// p.parse_file("/home/leca/example_email_receipts/читай_город.eml");
// p.parse_file("/home/leca/example_email_receipts/lenta.eml");
// p.parse_file("/home/leca/example_email_receipts/magnit.eml");
// p.parse_file("/home/leca/example_email_receipts/pyaterochka.eml");
// p.parse_file("/home/leca/example_email_receipts/rzd.eml");
// p.parse_file("/home/leca/example_email_receipts/russteels.eml");
// p.parse_file("/home/leca/example_email_receipts/avtodor.eml");
// return 0;
curl_global_init(CURL_GLOBAL_ALL);
qRegisterMetaType<Check>("Check");