(self, params)
| 622 | return data |
| 623 | |
| 624 | def HandleTrashMessage(self, params): |
| 625 | if len(params) == 0: |
| 626 | raise APIError(0, 'I need parameters!') |
| 627 | msgid = self._decode(params[0], "hex") |
| 628 | |
| 629 | # Trash if in inbox table |
| 630 | helper_inbox.trash(msgid) |
| 631 | # Trash if in sent table |
| 632 | sqlExecute('''UPDATE sent SET folder='trash' WHERE msgid=?''', msgid) |
| 633 | return 'Trashed message (assuming message existed).' |
| 634 | |
| 635 | def HandleTrashInboxMessage(self, params): |
| 636 | if len(params) == 0: |
nothing calls this directly
no test coverage detected