mailpile / Mailpile

A free & open modern, fast email client with user-friendly encryption and privacy features
https://mailpile.is
Other
8.82k stars 1.02k forks source link

Template error - After in mail import #341

Closed djdill closed 10 years ago

djdill commented 10 years ago

After importing all the /var/root mail.. mailpile web interface will no longer load.. I think it has something to do with the 'message_count': 22542, ...... ;)

the below is created by accessing localhost:33411/in/inbox/ localhost:33411/message/draft/=B/

still works and shows the inbox as 22K

Template error

Traceback (most recent call last): File "/root/Mail/Mailpile/mailpile/ui.py", line 280, in render_html return template.render(alldata) File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render return self.environment.handle_exception(exc_info, True) File "/root/Mail/Mailpile/static/default/html/search/index.html", line 1, in top-level template code {% extends "layouts/base.html" %} File "/root/Mail/Mailpile/static/default/html/layouts/base.html", line 153, in top-level template code {% block content %} File "/root/Mail/Mailpile/static/default/html/search/index.html", line 12, in block "content" {% include("partials/search_item.html") %} File "/root/Mail/Mailpile/static/default/html/partials/search_item.html", line 14, in top-level template code %}{% if from.photo File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 372, in getattr return getattr(obj, attribute) UndefinedError: 'dict object' has no attribute ''

search/index

DATA: defaultdict(<type 'str'>, {'status': 'success', 'url_protocol': 'http', 'name': u'skyowl', 'title': 'Mailpile dummy title', 'elapsed': '0.015', 'message_count': 22542, 'http_hostname': '127.0.0.1', 'http_method': 'GET', 'http_host': '127.0.0.1:33411', 'result': {'address_ids': [], 'search_tag_ids': ['9'], 'stats': {'count': 20, 'start': 1, 'total': 29, 'end': 20}, 'thread_ids': ['HE5', 'HE4', 'H9B', '9', '3', '2', 'GZ5', 'G74', 'FF6', 'EZ5', 'E4V', 'DCU', 'CKX', 'BSW', 'B14', 'A9H', '9HL', '8PV', '7XV', '764'], 'data': {'threads': {u'H6M': [u'H6N', u'H6O', u'H9B'], u'FF6': [], u'764': [], u'B14': [], u'GZ5': [], u'CKX': [], u'7XV': [], u'E4V': [], u'BSW': [], u'1': [u'2'], u'3': [u'6', u'7', u'8'], u'5': [], u'4': [u'5', u'9', u'A', u'B', u'C'], u'EZ5': [], u'HA1': [u'HA5', u'HA9', u'HAD', u'HAH', u'HAL', u'HAP', u'HAT', u'HAX', u'HB1', u'HB5', u'HB9', u'HBD', u'HBH', u'HBL', u'HBP', u'HBT', u'HBX', u'HC1', u'HC5', u'HC9', u'HCD', u'HCH', u'HCL', u'HCP', u'HCT', u'HCX', u'HD1', u'HD5', u'HD9', u'HDD', u'HDH', u'HDL', u'HDP', u'HDT', u'HDX', u'HE1', u'HE5'], u'DCU': [], u'8PV': [], u'B': [], u'G74': [], u'T': [u'U', u'V', u'W', u'X', u'Y', u'Z', u'10', u'11', u'12', u'13', u'14', u'15', u'16', u'17', u'18', u'19', u'1A', u'1B', u'1C', u'1D', u'1E', u'1F', u'1G', u'1H', u'1I', u'1J', u'1K', u'1L', u'1M', u'1N', u'1O', u'1P', u'1Q', u'1R', u'1S', u'1T', u'1U', u'1V', u'1W', u'1X', u'1Y', u'1Z', u'20', u'21', u'22', u'23', u'24', u'25', u'26', u'27', u'28', u'29', u'2A', u'2B', u'2C', u'2D', u'2E', u'2F', u'2G', u'2H', u'2I', u'2J', u'2K', u'2L', u'2M', u'2O', u'2P', u'2Q', u'2R', u'2S', u'2T', u'2U', u'2V', u'2W', u'2X', u'2Y', u'2Z', u'30', u'31', u'32', u'33', u'34', u'35', u'36', u'37', u'38', u'39', u'3A', u'3B', u'3C', u'3D', u'3E', u'3F', u'3G', u'3H', u'3I', u'3J', u'3K', u'3L'], u'A9H': [], u'9HL': []}, 'tags': {u'a': {u'flag_editable': True, 'stats': {}, u'name': u'Blank', u'type': u'blank', u'slug': u'blank', u'display': u'invisible'}, u'd': {'stats': {}, u'name': u'mp_read', u'display': u'invisible', u'type': u'read', u'slug': u'mp_read', u'label': False}, u'1': {'stats': {}, u'name': u'mp_rpl', u'display': u'invisible', u'type': u'replied', u'slug': u'mp_rpl', u'label': False}, u'3': {'stats': {}, u'name': u'New', u'display': u'invisible', u'type': u'unread', u'slug': u'new', u'label': False}, u'5': {'stats': {}, u'name': u'Sent', u'display_order': 4.0, u'type': u'sent', u'slug': u'sent', u'display': u'priority'}, u'6': {u'flag_editable': True, 'stats': {}, u'name': u'Drafts', u'display_order': 1.0, u'type': u'drafts', u'slug': u'drafts', u'display': u'priority'}, '9': {'stats': {}, u'name': u'Inbox', 'searched': True, u'display_order': 2.0, u'display': u'priority', u'slug': u'inbox'}}, 'messages': {}, 'addresses': {u'1': {'protocol': 'smtp', 'secure': False, 'rank': 0, 'fn': u'Cron Daemon', 'address': 'root@skyowl'}, '0': {'protocol': 'smtp', 'secure': False, 'rank': 0, 'fn': 'test@127.0.0.1', 'address': 'test@127.0.0.1'}}, 'metadata': {'HBL': {'body': {'snippet': u'PHP Warning: PHP Startup: Un'}, 'timestamp': 1389103742L, 'from_aid': '1', 'tag_tids': [u'3', u'9'], 'subject': u'Cron root@skyowl [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete', 'thread_mid': u'HA1', 'to_aids': [u'1'], 'mid': u'HBL', 'id': u'E1SndEzT45fQ3BBPDe3P4J1vKOE', 'flags': {}, 'urls': {'thread': u'/thread/=HBL/'}}, 'HBH': {'body': {'snippet': u'PHP Warning: PHP Startup: Un'}, 'timestamp': 1389101942L, 'from_aid': '1', 'tag_tids': [u'3', u'9'], 'subject': u'Cron root@skyowl [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete', 'thread_mid': u'HA1', 'to_aids': [u'1'], 'mid': u'HBH', 'id': u'8X5g9AL_wdS8vPnHSeznN0plfZ4', 'flags': {}, 'urls': {'thread': u'/thread/=HBH/'}}, 'H6O': {'body': {'snippet': u'*****

BjarniRunar commented 10 years ago

I am pretty sure this has been fixed.

djdill commented 10 years ago

Confirmed.. Fixed :+1: