fix disclaim

This commit is contained in:
François 2025-05-10 08:05:35 +02:00
parent 66f299aca1
commit 3cac4d747d

View File

@ -149,7 +149,8 @@ const string MainAttachment::templateHtmlAddLink (LI_ONE+"<a "+HREF_ONE+TMPL_DOW
const string MainAttachment::templateHtmlOtherLink ("</ul>"+KAZ_HTML_DOWNLOAD_OTHER+"<ul>\n"); const string MainAttachment::templateHtmlOtherLink ("</ul>"+KAZ_HTML_DOWNLOAD_OTHER+"<ul>\n");
const string MainAttachment::templateHtmlAllLink ("</ul><ul>"+LI_ALL+KAZ_HTML_DOWNLOAD_ALL+" <a href=\""+TMPL_DOWNLOAD+"\">"+KAZ_HTML_ARCHIVE+"</a>"+LI_END+"\n"); const string MainAttachment::templateHtmlAllLink ("</ul><ul>"+LI_ALL+KAZ_HTML_DOWNLOAD_ALL+" <a href=\""+TMPL_DOWNLOAD+"\">"+KAZ_HTML_ARCHIVE+"</a>"+LI_END+"\n");
const string MainAttachment::templateHtmlCloudLink ("</ul><ul>"+LI_ALL+KAZ_HTML_DOWNLOAD_CLOUD+" <a href=\""+TMPL_DOWNLOAD+"\">"+KAZ_HTML_CLOUD+"</a>"+LI_END+"\n"); const string MainAttachment::templateHtmlCloudLink ("</ul><ul>"+LI_ALL+KAZ_HTML_DOWNLOAD_CLOUD+" <a href=\""+TMPL_DOWNLOAD+"\">"+KAZ_HTML_CLOUD+"</a>"+LI_END+"\n");
const string MainAttachment::templateHtmlFooter ("</ul></p>\n" const string MainAttachment::templateHtmlFooter ("</ul></p>\n"+
KAZ_HTML_WARNING+
"<p class=\"msg\"><a class=\"kaz2\" href=\""+KAZ_WEB_SITE+"\"> "+KAZ_WEB_SITE+" </a></p></div>\n" "<p class=\"msg\"><a class=\"kaz2\" href=\""+KAZ_WEB_SITE+"\"> "+KAZ_WEB_SITE+" </a></p></div>\n"
"<hr><p style=\"font-size:10px; color:#969696;\">"+KAZ_PLAIN_STOP+"</p>"+KAZ_HTML_STOP+"\n\n"); "<hr><p style=\"font-size:10px; color:#969696;\">"+KAZ_PLAIN_STOP+"</p>"+KAZ_HTML_STOP+"\n\n");
@ -881,7 +882,7 @@ MainAttachment::substitute (ifstream &mbox, ofstream &outbox, const SizeArg &min
LOG ("remove tag: " << endTag << " content: " << content); LOG ("remove tag: " << endTag << " content: " << content);
} }
} }
content += htmlDisclaim+KAZ_HTML_WARNING+BODY_END+HTML_END; content += htmlDisclaim+BODY_END+HTML_END;
LOG ("content: " << content); LOG ("content: " << content);
} }
if (isPlain) if (isPlain)
@ -910,7 +911,7 @@ MainAttachment::substitute (ifstream &mbox, ofstream &outbox, const SizeArg &min
outbox << boundary.substr (0, boundaryMiddleSize) << endl outbox << boundary.substr (0, boundaryMiddleSize) << endl
<< KAZ_ATTACHMENT_TEXT_HTML << endl; << KAZ_ATTACHMENT_TEXT_HTML << endl;
cerr << "eMailShrinker: force attachment" << endl; cerr << "eMailShrinker: force attachment" << endl;
string content (KAZ_HTML_CONTENT+KAZ_HTML_NOT_SAVE+htmlDisclaim+KAZ_HTML_WARNING+BODY_END+HTML_END); string content (KAZ_HTML_CONTENT+KAZ_HTML_NOT_SAVE+htmlDisclaim+BODY_END+HTML_END);
base64Encode (content); base64Encode (content);
outbox << content << endl; outbox << content << endl;