summaryrefslogtreecommitdiff
path: root/alot/db/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/db/envelope.py')
-rw-r--r--alot/db/envelope.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/alot/db/envelope.py b/alot/db/envelope.py
index b88cf71e..b742ba81 100644
--- a/alot/db/envelope.py
+++ b/alot/db/envelope.py
@@ -50,7 +50,8 @@ class Envelope(object):
def __init__(
self, template=None, bodytext=None, headers=None, attachments=None,
- sign=False, sign_key=None, encrypt=False, tags=None):
+ sign=False, sign_key=None, encrypt=False, tags=None, replied=None,
+ passed=None):
"""
:param template: if not None, the envelope will be initialised by
:meth:`parsing <parse_template>` this string before
@@ -64,6 +65,10 @@ class Envelope(object):
:type attachments: list of :class:`~alot.db.attachment.Attachment`
:param tags: tags to add after successful sendout and saving this msg
:type tags: list of str
+ :param replied: message being replied to
+ :type replied: :class:`~alot.db.message.Message`
+ :param passed: message being passed on
+ :type replied: :class:`~alot.db.message.Message`
"""
logging.debug('TEMPLATE: %s', template)
if template:
@@ -80,6 +85,8 @@ class Envelope(object):
self.encrypt = encrypt
self.encrypt_keys = {}
self.tags = tags or [] # tags to add after successful sendout
+ self.replied = replied # message being replied to
+ self.passed = passed # message being passed on
self.sent_time = None
self.modified_since_sent = False
self.sending = False # semaphore to avoid accidental double sendout