Skip to content

Commit

Permalink
Link the maillog when a sent mail message ID is detected
Browse files Browse the repository at this point in the history
Doesn't actually link to anything yet (but it will)
  • Loading branch information
slusarz committed Mar 6, 2015
1 parent 57723ab commit 3e1250d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
24 changes: 14 additions & 10 deletions imp/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,20 @@ var ImpCore = {
tmp = $('msgloglist');

log.each(function(entry) {
df.appendChild(
new Element('LI')
.insert(
new Element('SPAN', {
className: 'iconImg imp-' + entry.t
})
).insert(
entry.m.escapeHTML()
)
);
var li = new Element('LI')
.insert(
new Element('SPAN', {
className: 'iconImg imp-' + entry.t
})
).insert(
entry.m.escapeHTML()
);
if (entry.s) {
li = li.wrap('A', {
className: 'imp-maillog-sent'
}).store('msgid', entry.s);
}
df.appendChild(li);
});

tmp.childElements().invoke('remove');
Expand Down
4 changes: 4 additions & 0 deletions imp/lib/Ajax/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,11 @@ protected function _addMaillogInfo(IMP_Ajax_Application $ajax)

foreach ($l as $v3) {
$tmp[] = array(
// 'm' = message
'm' => $v3->message,
// 's' = sent message-id
's' => $v3->msg_id,
// 't' = type
't' => $v3->action
);
}
Expand Down
5 changes: 4 additions & 1 deletion imp/themes/default/dynamic/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ span.iconImg {
padding-right: 3px;
}

/* Growler notification styles. */
/* Maillog. */
.imp-reply {
background-image: url("../graphics/answered.png");
}
Expand All @@ -79,3 +79,6 @@ span.iconImg {
.imp-forward, .imp-redirect {
background-image: url("../graphics/forwarded.png");
}
.imp-maillog-sent {
color: #36525d !important;
}

0 comments on commit 3e1250d

Please sign in to comment.