(self, toAddress, fromAddress, subject, message)
| 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 |
nothing calls this directly
no test coverage detected