summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/services/mail_service.py
diff options
context:
space:
mode:
authorPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-30 14:10:25 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-30 14:10:25 -0200
commitfb7f661648480b16d75a6147605767720be26d00 (patch)
tree55d3d110846f329ee7eaa904ab92ce9792112c90 /service/pixelated/adapter/services/mail_service.py
parente8e9cbaaa713a1f00ed8d00cb4744d8f4f340f38 (diff)
parentcad4bbf073663db828fa7ac43b27ae00556e2797 (diff)
Merge branch 'message_sending_error_handling'
Diffstat (limited to 'service/pixelated/adapter/services/mail_service.py')
-rw-r--r--service/pixelated/adapter/services/mail_service.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py
index 3b70890b..7bf76676 100644
--- a/service/pixelated/adapter/services/mail_service.py
+++ b/service/pixelated/adapter/services/mail_service.py
@@ -13,8 +13,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-
-
class MailService:
__slots__ = ['leap_session', 'account', 'mailbox_name']
@@ -44,8 +42,10 @@ class MailService:
def mail_exists(self, mail_id):
return not(not(self.querier.get_header_by_chash(mail_id)))
- def send(self, last_draft_ident, mail):
+ def send(self, mail):
self.mail_sender.sendmail(mail)
+
+ def move_to_send(self, last_draft_ident, mail):
if last_draft_ident:
self.mailboxes.drafts().remove(last_draft_ident)
return self.mailboxes.sent().add(mail)