lavab / web

AngularJS web client of Lavaboom's email service
https://mail.lavaboom.com
38 stars 21 forks source link

Cannot display PGP encrypted mails from external address #720

Open jrselzer opened 9 years ago

jrselzer commented 9 years ago

1) Export my Lavaboom public key to text file. 2) Import public key in Enigmail. 3) Send PGP/MIME encoded encrypted mail with text attachment from external address to my Lavaboom account.

Symptoms:

1) Mail is listed in inbox, but subject line is blank. 2) Clicking on mail in list opens a window. "From" field is shown correctly, "To:", "Subject:" and mail body are empty. Attachment is missing.

To exclude an error on my end, I repeated this test three times with the same result.

let4be commented 9 years ago

Blocked by https://github.com/lavab/api/issues/135

jrselzer commented 9 years ago

Additional information: I just received an external PGP-encoded mail. This time I can see the mail body, but cannot decipher it.

pzduniak commented 9 years ago

lavab/api#135 is a reverse case. @let4be please send a PGP/MIME email to yourself and check what the API returns. 22 maj 2015 07:09 "jrselzer" notifications@github.com napisał(a):

Additional information: I just received an external PGP-encoded mail. This time I can see the mail body, but cannot decipher it.

— Reply to this email directly or view it on GitHub https://github.com/lavab/web/issues/720#issuecomment-104512106.

paulhugel commented 9 years ago

Mail sent from OSX 10.10.3 Thunderbird 31.7.0 Enigmail 1.8.2

Sent encrypted mail to paulhugel@lavaboom.com

received on OSX 10.10.3 Firefox 38.0.1 Lavaboom server name and version not available ?

Copy--> PGP MESSAGE Paste--> new text document Select All--> Services--> OpenPGP:Decrypt

Dispay of decrypted message in text document screen grab attached

screen shot 2015-05-21 at 7 44 46 pm

Console report:

got server event Object { id="kCYeI0kXDHWbA88aZFmP", labels=[1], name="Encrypted message (2RjxUrI13qik1a0o5bAs)", more...} appLava...b8f5.js (line 6554)

event thread null appLava...b8f5.js (line 6554)

calling original, cache key getThreadById.DT5DtYUiX8gpFjQ4mllQ utils-9...6362.js (line 6769)

Calling threads.get ["DT5DtYUiX8gpFjQ4mllQ"] ... utils-9...6362.js (line 6733)

sockjs: sending a message {"id":"76","type":"request","method":"GET","path":"/threads/DT5DtYUiX8gpFjQ4mllQ","body":"null","headers":{"Authorization":"Bearer 7DAlIDaIFwK4zBEyhklX"}} utils-v...7203.js (line 6179)

threads.get: Object { body={...}, headers={...}, id="76", more...} utils-9...6362.js (line 6733)

inbox-threads Inbox appLava...b8f5.js (line 6466)

proxy requestList Inbox 0 27 appLava...b8f5.js (line 6554)

requestList cache value is Object { list=[10], isEnd=true} appLava...b8f5.js (line 6554)

calling original, cache key getEmailsByThreadId.DT5DtYUiX8gpFjQ4mllQ utils-9...6362.js (line 6769)

Calling emails.list [Object { thread="DT5DtYUiX8gpFjQ4mllQ", sort="-date_created"}] ... utils-9...6362.js (line 6733)

sockjs: sending a message {"id":"77","type":"request","method":"GET","path":"/emails?thread=DT5DtYUiX8gpFjQ4mllQ&sort=-date_created","body":"null","headers":{"Authorization":"Bearer 7DAlIDaIFwK4zBEyhklX"}} utils-v...7203.js (line 6179)

inbox-threads selectedIndex 1: 2 appLava...b8f5.js (line 6466)

inbox-threads selectedIndex 2: 2 appLava...b8f5.js (line 6466)

thread manifest {"version":"1.0.0","headers":{"cc":[],"from":"Paul Garrett Hugel \u003cpaul@nko.org\u003e","subject":"test today","to":["Paul Hugel \u003cpaulhugel@lavaboom.com\u003e"]},"parts":[{"hash":"e37a185c1153ad6b7b7f9e62e3d9fb18cfdd6f8e02ba78922525edd36a01b16b","size":1721,"id":"body","content_type":"text/plain"}]} appLava...b8f5.js (line 6626)

emails.list: Object { body={...}, headers={...}, id="77", more...} utils-9...6362.js (line 6733)

email decoded s { id="kCYeI0kXDHWbA88aZFmP", threadId="DT5DtYUiX8gpFjQ4mllQ", date="2015-05-22T05:42:22.615999937Z", more...} {"version":"1.0.0","headers":{"cc":[],"from":"Paul Garrett Hugel \u003cpaul@nko.org\u003e","subject":"test today","to":["Paul Hugel \u003cpaulhugel@lavaboom.com\u003e"]},"parts":[{"hash":"e37a185c1153ad6b7b7f9e62e3d9fb18cfdd6f8e02ba78922525edd36a01b16b","size":1721,"id":"body","content_type":"text/plain"}]} appLava...b8f5.js (line 6614)

hotkeys: register(root), current state is main.inbox.label added from state is main.inbox.label [Object { combo=[2], description="HOTKEY.COMPOSE_EMAIL", callback=function()}, Object { combo=[1], name="Inbox", require="g", more...}, Object { combo=[1], name="Sent", require="g", more...}, Object { combo=[1], name="Spam", require="g", more...}, Object { combo=[1], name="Starred", require="g", more...}, Object { combo=[1], name="Trash", require="g", more...}, Object { combo=[1], name="Contacts", require="g", more...}, Object { combo=[1], name="Settings", require="g", more...}, Object { combo="/", description="HOTKEY.FOCUS_ON_SEARCH", callback=function()}, Object { combo="esc", description="HOTKEY.LEAVE_FROM_SEARCH", allowIn=[1], more...}, Object { combo="?", description="HOTKEY.CHEATSHEET", callback=function()}] appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Inbox", require="g", more...} appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Sent", require="g", more...} appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Spam", require="g", more...} appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Starred", require="g", more...} appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Trash", require="g", more...} appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Contacts", require="g", more...} appLava...b8f5.js (line 6670)

added hotkey Object { combo=[1], name="Settings", require="g", more...} appLava...b8f5.js (line 6670)

hotkeys.clearHotkeys false appLava...b8f5.js (line 6670)

requestListCached [c { id="DT5DtYUiX8gpFjQ4mllQ", created="2015-05-22T05:42:22.573999881Z", modified="2015-05-22T05:42:22.573999881Z", more...}, c { id="r1cn6X30LSj7dlfgQgFq", created="2015-05-20T01:14:16.897000074Z", modified="2015-05-20T01:14:16.897000074Z", more...}, c { id="J790NcPjHXxLkWwRGUpb", created="2015-05-15T18:34:24.437000036Z", modified="2015-05-15T18:34:30.549000024Z", more...}, c { id="x8JHno840JR2gzVz0OhF", created="2015-05-12T15:28:24.91199994Z", modified="2015-05-12T18:59:52.115000009Z", more...}, c { id="u9Xa1RemJOVyg2nXRSOb", created="2015-05-12T10:58:19.305999994Z", modified="2015-05-12T13:49:36.517999887Z", more...}, c { id="cizGtVUSxBWpmfNRdEdW", created="2015-05-12T13:06:52.164000034Z", modified="2015-05-12T13:46:10.48300004Z", more...}, c { id="kZlXnYnKUquQTzQY8P0V", created="2015-05-10T22:29:17.289999961Z", modified="2015-05-10T23:33:42.85100007Z", more...}, c { id="05WVBo68wpsGs9BuxvX0", created="2015-05-10T22:21:17.694999933Z", modified="2015-05-10T23:33:06.993999958Z", more...}, c { id="OitJUe2ugPmCJJyj9sl6", created="2015-05-10T22:20:10.655999898Z", modified="2015-05-10T23:30:05.078000068Z", more...}, c { id="AQJXfQPEcg0BMNI9osZC", created="2015-05-10T22:19:33.444999933Z", modified="2015-05-10T23:29:25.849999904Z", more...}] appLava...b8f5.js (line 6494)

CtrlEmailList is loading Inbox DT5DtYUiX8gpFjQ4mllQ appLava...b8f5.js (line 6494)

emails has selected tid DT5DtYUiX8gpFjQ4mllQ appLava...b8f5.js (line 6494)

hotkeys: register(ctrlThreadList), current state is main.inbox.label added from state is main.inbox.label [Object { combo=[4], description="HOTKEY.MOVE_UP", callback=function()}, Object { combo=[4], description="HOTKEY.MOVE_DOWN", callback=function()}, Object { combo="a", description="HOTKEY.ARCHIVE_EMAIL", callback=function()}, Object { combo=[2], description="HOTKEY.DELETE_EMAIL", callback=function()}, Object { combo="r", description="HOTKEY.REPLY_EMAIL", callback=function()}] appLava...b8f5.js (line 6670)

email before sanitize

-----BEGIN PGP MESSAGE-----
Charset: utf-8
Version: GnuPG/MacGPG2 v2.0
Comment: GPGTools - https://gpgtools.org
hQIMA5n2yaHtkVtvAQ/+J1cZP2QnxHxtGIFUFitLafvmyaA5a6qvUOjFSR8117fM
9O/IOLSykhEQqszebP64fsp0xD+FqTOMVZYrsrsuvL+mRFAxUqX0FLBqZbp9oEWG
1QFGB//MjP6wUimx5Yuswxmb8A1CKG2J45mItru2MCEf2qPAkrvkrN6w4R/iPuSQ
Ye2xKabGdpz0cPp/JAnwoz+mK2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bn8dsyI5O0ZIN0
5SkwTL8mGskTa5PEW3A7UhCB1QEh/0u1HfE7aK6B0EF0FML9HegDDC3HcH5a6dvU
R70ppppG3g06sJtyootiLdzK/WEhqin17N4cKOpSE9OnYyVN8ksnvA8/oHvYjtJq
AUUUAWJ8b1llGlYU9mAhgC9/2+nccBJG4fUK2ZvbZMvaSis5vwt/EPrcI3UPXmxj
0A1Fj1pnHJm+a9RR3UptZbWoCAbJpi7KleWwUYq0aH16WdzxJQSitYrOU6ySueMy
9VohaibrgMuTZA==
=G8VF
-----END PGP MESSAGE-----

appLava...b8f5.js (line 6570)

email after sanitize

-----BEGIN PGP MESSAGE-----
Charset: utf-8
Version: GnuPG/MacGPG2 v2.0
Comment: GPGTools - https://gpgtools.org
hQIMA5n2yaHtkVtvAQ/+J1cZP2QnxHxtGIFUFitLafvmyaA5a6qvUOjFSR8117fM
9O/IOLSykhEQqszebP64fsp0xD+FqTOMVZYrsrsuvL+mRFAxUqX0FLBqZbp9oEWG
1QFGB//MjP6wUimx5Yuswxmb8A1CKG2J45mItru2MCEf2qPAkrvkrN6w4R/iPuSQ
Ye2xKabGdpz0cPp/JAnwoz+mK2p6pHURoxoWNnaQ5MwsbyWzWnp7o+3Tco9afEMx
ZUgIGxgrxzQZkFirzU5s/An8q7n5bXbGmQmACMnK1clXA3poFH0NH1EVmXReVxR6
WtIMbP5BVlnOTduunKc7+0YuMK5x7M/dcRDmIvCSlxp5kYmSfU1lnAhP9+VBZlTS
0ebfUtLTUhauba0lCR/cIECSqwc0PFfMP20h1X5OFQ8DTcyk9GgtYrjxryAAk6Gp
G94J39f//LPHlrPfULHU/W1Ltv7b2fhm/xnYqEihiiBDBx6cvlXjMGPTyN5f6E2D
Ex16KYCRB1V6zuR6CUDUUbXDqDVy7JyUdwZFSeDbiKVYS/5lQg6SAB7sjX+ThEcc
wKMcwh+3XoonI+m6WmEmtSOXvJ9/CwWSGaVfJkSuylz9T6cEiQh9cXiOFt9xn4p4
cbj9K91mPAAScfTPH/5I8z3AeIw10H3ayqZqmE2aAmonvaC7mgRp9RrNMY9T0l+F
AgwDU/zDYWl0HYgBD/456b6/DTvJdRG4o+ZTqR6s11bCBBNRwxHKe0/UHVgLFfIo
ceaWVgyLH8n6fAwDRlzotiOz53xtZq5T8q8Rsl1Gaus/V2o39t0R+3FuoJ1nSx1q
fMi6t1FBj9bmTFOQLgbhuqnuSlmfJV5V3+WSLE6BDPV7F3WXQ01i7h5ZJRacNizr
75cgNlaF1WAmuOOHcu9Xlk0byA3/32PVQjlsAuSeK7FGOa4XQvohd3HE7EK3VGp8
Fzg6X2nVZWT/SSfX7JwaROXa2XaER83Csfapsa7cH/iMLGzvbHQjl5twdw113N3m
fbeO21bmXJLsIyo8ns2TPO0DY7dB+4f0Rxs7TFYTBP/eu8Gqq0KrOOn/3adEbuTA
rKJv7mAA4TP9epi6pHcGGjbWSdaUqmhz7wAQFFd68wNL7YrFOvj8fezZckSRUOga
SN1vHZtxCBhq+vQVeURr/cEjo3KX2KyrSyHaDBmMrdLRGJpqaZ8bOd0X82JSf0H7
kNrnzGWpqNUl06iPhAo4viGSK7dOZLYwmiS2IqRyfH5oEG+hO/Bn8dsyI5O0ZIN0
5SkwTL8mGskTa5PEW3A7UhCB1QEh/0u1HfE7aK6B0EF0FML9HegDDC3HcH5a6dvU
R70ppppG3g06sJtyootiLdzK/WEhqin17N4cKOpSE9OnYyVN8ksnvA8/oHvYjtJq
AUUUAWJ8b1llGlYU9mAhgC9/2+nccBJG4fUK2ZvbZMvaSis5vwt/EPrcI3UPXmxj
0A1Fj1pnHJm+a9RR3UptZbWoCAbJpi7KleWwUYq0aH16WdzxJQSitYrOU6ySueMy
9VohaibrgMuTZA==
=G8VF
-----END PGP MESSAGE-----

appLava...b8f5.js (line 6570)

setThreadReadStatus decorator for threadId DT5DtYUiX8gpFjQ4mllQ labelName Inbox appLava...b8f5.js (line 6554)

Calling threads.get ["DT5DtYUiX8gpFjQ4mllQ"] ... utils-9...6362.js (line 6733)

sockjs: sending a message {"id":"78","type":"request","method":"GET","path":"/threads/DT5DtYUiX8gpFjQ4mllQ","body":"null","headers":{"Authorization":"Bearer 7DAlIDaIFwK4zBEyhklX"}} utils-v...7203.js (line 6179)

threads.get: Object { body={...}, headers={...}, id="78", more...} utils-9...6362.js (line 6733)

Calling threads.update ["DT5DtYUiX8gpFjQ4mllQ", Object { is_read=true, labels=[1]}] ... utils-9...6362.js (line 6733)

sockjs: sending a message {"id":"79","type":"request","method":"PUT","path":"/threads/DT5DtYUiX8gpFjQ4mllQ","body":"{\"is_read\":true,\"labels\":[\"WtWt9MTW00XwIdD8JInQ\"]}","headers":{"Content-Type":"application/json;charset=utf-8","Authorization":"Bearer 7DAlIDaIFwK4zBEyhklX"}} utils-v...7203.js (line 6179)

threads.update: Object { body={...}, headers={...}, id="79", more...} utils-9...6362.js (line 6733)

calling original, cache key getLabels. utils-9...6362.js (line 6769)

Calling labels.list [] ... utils-9...6362.js (line 6733)

sockjs: sending a message {"id":"80","type":"request","method":"GET","path":"/labels","body":"null","headers":{"Authorization":"Bearer 7DAlIDaIFwK4zBEyhklX"}} utils-v...7203.js (line 6179)

labels.list: Object { body={...}, headers={...}, id="80", more...} utils-9...6362.js (line 6733)

On 5/21/15 7:11 PM, Piotr Zduniak wrote:

lavab/api#135 is a reverse case. @let4be please send a PGP/MIME email to yourself and check what the API returns. 22 maj 2015 07:09 "jrselzer" notifications@github.com napisał(a):

Additional information: I just received an external PGP-encoded mail. This time I can see the mail body, but cannot decipher it.

— Reply to this email directly or view it on GitHub https://github.com/lavab/web/issues/720#issuecomment-104512106.

— Reply to this email directly or view it on GitHub https://github.com/lavab/web/issues/720#issuecomment-104512415.

let4be commented 9 years ago

Will check this tomorrow

pzduniak commented 9 years ago

https://github.com/lavab/mailer/issues/58 unblocked