MCPcopy Create free account
hub / github.com/BlueMatthew/WechatExporter / parsePushMail

Method parsePushMail

WechatExporter/core/MessageParser.cpp:311–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void MessageParser::parsePushMail(const WXMSG& msg, const Session& session, TemplateValues& tv) const
312{
313 std::string subject;
314 std::string digest;
315 XmlParser xmlParser(msg.content);
316 xmlParser.parseNodeValue("/msg/pushmail/content/subject", subject);
317 xmlParser.parseNodeValue("/msg/pushmail/content/digest", digest);
318
319 tv.setName("plainshare");
320
321 tv["%%SHARINGURL%%"] = "##";
322 tv["%%SHARINGTITLE%%"] = subject;
323 tv["%%MESSAGE%%"] = digest;
324}
325
326void MessageParser::parseVideo(const WXMSG& msg, const Session& session, std::string& senderId, TemplateValues& tv) const
327{

Callers

nothing calls this directly

Calls 2

parseNodeValueMethod · 0.80
setNameMethod · 0.80

Tested by

no test coverage detected