mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Merge bb1f1b2683 into 22f1d05464
This commit is contained in:
commit
928dbdc3cf
2 changed files with 7 additions and 4 deletions
|
|
@ -26,16 +26,16 @@ matrix:
|
|||
python: '3.5'
|
||||
- env: DJANGO='>=1.7,<1.8'
|
||||
python: '2.6'
|
||||
- env: DJANGO='>=1.7,<1.8'
|
||||
python: '3.5'
|
||||
- env: DJANGO='>=1.8,<1.9'
|
||||
python: '2.6'
|
||||
- env: DJANGO='>=1.9,<1.10'
|
||||
python: '2.6'
|
||||
- env: DJANGO='>=1.9,<1.10'
|
||||
python: '3.3'
|
||||
- env: DJANGO='>=1.9,<1.10'
|
||||
python: '3.4'
|
||||
install:
|
||||
- pip install -q Django$DJANGO --use-mirrors
|
||||
- pip install -q -e . --use-mirrors
|
||||
- pip install -q Django$DJANGO
|
||||
- pip install -q -e .
|
||||
script:
|
||||
- python setup.py test
|
||||
|
|
|
|||
|
|
@ -368,6 +368,7 @@ class Mailbox(models.Model):
|
|||
msg.subject = convert_header_to_unicode(message['subject'])[0:255]
|
||||
if 'message-id' in message:
|
||||
msg.message_id = message['message-id'][0:255]
|
||||
print("*** DEBUG REPLY MESSAGE ID *** ", repr(msg.message_id))
|
||||
if 'from' in message:
|
||||
msg.from_header = convert_header_to_unicode(message['from'])
|
||||
if 'to' in message:
|
||||
|
|
@ -378,6 +379,8 @@ class Mailbox(models.Model):
|
|||
message = self._get_dehydrated_message(message, msg)
|
||||
msg.set_body(message.as_string())
|
||||
if message['in-reply-to']:
|
||||
print("*** DEBUG REPLY IN REPLY TO *** ", repr(message['in-reply-to']))
|
||||
print("*** DEBUG REPLY QUERY *** ", Message.objects.all().values_list('message_id', flat=1))
|
||||
try:
|
||||
msg.in_reply_to = Message.objects.filter(
|
||||
message_id=message['in-reply-to']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue