MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / parseMessage

Method parseMessage

src/bitmessageqt/account.py:281–305  ·  view source on GitHub ↗
(self, toAddress, fromAddress, subject, message)

Source from the content-addressed store, hash-verified

279 self.fromAddress = self.address
280
281 def parseMessage(self, toAddress, fromAddress, subject, message):
282 super(MailchuckAccount, self).parseMessage(toAddress, fromAddress, subject, message)
283 if fromAddress == self.relayAddress:
284 matches = self.regExpIncoming.search(subject)
285 if not matches is None:
286 self.subject = ""
287 if not matches.group(1) is None:
288 self.subject += matches.group(1)
289 if not matches.group(3) is None:
290 self.subject += matches.group(3)
291 if not matches.group(2) is None:
292 self.fromLabel = matches.group(2)
293 self.fromAddress = matches.group(2)
294 if toAddress == self.relayAddress:
295 matches = self.regExpOutgoing.search(subject)
296 if not matches is None:
297 if not matches.group(2) is None:
298 self.subject = matches.group(2)
299 if not matches.group(1) is None:
300 self.toLabel = matches.group(1)
301 self.toAddress = matches.group(1)
302 self.feedback = self.ALL_OK
303 if fromAddress == self.registrationAddress and self.subject == "Registration Request Denied":
304 self.feedback = self.REGISTRATION_DENIED
305 return self.feedback

Callers

nothing calls this directly

Calls 1

parseMessageMethod · 0.45

Tested by

no test coverage detected