1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-27 13:35:59 +00:00

Basic HTML email rendering

Messages with a MIME text/html MIME part will now be displayed with an
`HTML` button above them that will open another window and render the
HTML when clicked.

There is no sanitization performed, and inline attachment display is
not support.

This closes #2
This commit is contained in:
James Hillyerd
2012-10-17 21:47:48 -07:00
parent 0efb28ef38
commit 24dcd62951
5 changed files with 46 additions and 1 deletions

View File

@@ -44,6 +44,12 @@
})
}
function htmlView(id) {
window.open('/mailbox/html/{{$name}}/' + id, '_blank',
'width=800,height=600,' +
'menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes')
}
function messageSource(id) {
window.open('/mailbox/source/{{$name}}/' + id, '_blank',
'width=800,height=600,' +