diff -ruN roundcubemail-0.1beta2.orig/program/js/app.js roundcubemail-0.1beta2/program/js/app.js
|
old
|
new
|
|
| 397 | 397 | classname:row.className, |
| 398 | 398 | deleted:this.env.messages[uid] ? this.env.messages[uid].deleted : null, |
| 399 | 399 | unread:this.env.messages[uid] ? this.env.messages[uid].unread : null, |
| | 400 | junk:this.env.messages[uid] ? this.env.messages[uid].junk : null, |
| 400 | 401 | replied:this.env.messages[uid] ? this.env.messages[uid].replied : null}; |
| 401 | 402 | |
| 402 | 403 | // set eventhandlers to table row |
| … |
… |
|
| 3280 | 3282 | |
| 3281 | 3283 | this.env.messages[uid] = {deleted:flags.deleted?1:0, |
| 3282 | 3284 | replied:flags.replied?1:0, |
| | 3285 | junk:flags.junk?1:0, |
| 3283 | 3286 | unread:flags.unread?1:0}; |
| 3284 | 3287 | |
| 3285 | 3288 | var row = document.createElement('TR'); |
| 3286 | 3289 | row.id = 'rcmrow'+uid; |
| 3287 | | row.className = 'message '+(even ? 'even' : 'odd')+(flags.unread ? ' unread' : '')+(flags.deleted ? ' deleted' : ''); |
| | 3290 | row.className = 'message '+(even ? 'even' : 'odd')+(flags.unread ? ' unread' : '')+(flags.junk ? ' junk' : '')+(flags.deleted ? ' deleted' : ''); |
| 3288 | 3291 | |
| 3289 | 3292 | if (this.in_selection(uid)) |
| 3290 | 3293 | row.className += ' selected'; |
diff -ruN roundcubemail-0.1beta2.orig/program/lib/imap.inc roundcubemail-0.1beta2/program/lib/imap.inc
|
old
|
new
|
|
| 1231 | 1231 | |
| 1232 | 1232 | /* FETCH date,from,subject headers */ |
| 1233 | 1233 | $key="fh".($c++); |
| 1234 | | $request=$key." FETCH $message_set (BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCE)])\r\n"; |
| | 1234 | $request=$key." FETCH $message_set (BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCE X-SPAM-FLAG)])\r\n"; |
| 1235 | 1235 | |
| 1236 | 1236 | if (!fputs($fp, $request)) return false; |
| 1237 | 1237 | do{ |
| … |
… |
|
| 1280 | 1280 | $result[$id]->from = $headers["from"]; |
| 1281 | 1281 | $result[$id]->to = str_replace("\n", " ", $headers["to"]); |
| 1282 | 1282 | $result[$id]->subject = str_replace("\n", "", $headers["subject"]); |
| | 1283 | $result[$id]->junk = array_key_exists("x-spam-flag", $headers) ? true : false; |
| 1283 | 1284 | $result[$id]->replyto = str_replace("\n", " ", $headers["reply-to"]); |
| 1284 | 1285 | $result[$id]->cc = str_replace("\n", " ", $headers["cc"]); |
| 1285 | 1286 | $result[$id]->bcc = str_replace("\n", " ", $headers["bcc"]); |
diff -ruN roundcubemail-0.1beta2.orig/program/steps/mail/func.inc roundcubemail-0.1beta2/program/steps/mail/func.inc
|
old
|
new
|
|
| 415 | 415 | $js_row_arr['unread'] = true; |
| 416 | 416 | if ($header->answered) |
| 417 | 417 | $js_row_arr['replied'] = true; |
| | 418 | if ($header->junk) |
| | 419 | $js_row_arr['junk'] = true; |
| | 420 | |
| | 421 | |
| 418 | 422 | // set message icon |
| 419 | 423 | if ($attrib['deletedicon'] && $header->deleted) |
| 420 | 424 | $message_icon = $attrib['deletedicon']; |
| … |
… |
|
| 428 | 432 | // set attachment icon |
| 429 | 433 | if ($attrib['attachmenticon'] && preg_match("/multipart\/m/i", $header->ctype)) |
| 430 | 434 | $attach_icon = $attrib['attachmenticon']; |
| 431 | | |
| 432 | | $out .= sprintf('<tr id="rcmrow%d" class="message%s%s %s">'."\n", |
| | 435 | |
| | 436 | $out .= sprintf('<tr id="rcmrow%d" class="message%s%s%s %s">'."\n", |
| 433 | 437 | $header->uid, |
| 434 | 438 | $header->seen ? '' : ' unread', |
| | 439 | $header->junk ? ' junk' : '', |
| 435 | 440 | $header->deleted ? ' deleted' : '', |
| 436 | 441 | $zebra_class); |
| 437 | 442 | |
| … |
… |
|
| 542 | 547 | |
| 543 | 548 | $a_msg_flags['deleted'] = $header->deleted ? 1 : 0; |
| 544 | 549 | $a_msg_flags['unread'] = $header->seen ? 0 : 1; |
| | 550 | $a_msg_flags['junk'] = $header->junk ? 1 : 0; |
| 545 | 551 | $a_msg_flags['replied'] = $header->answered ? 1 : 0; |
| 546 | 552 | $commands .= sprintf("this.add_message_row(%s, %s, %s, %b, %b);\n", |
| 547 | 553 | $header->uid, |
diff -ruN roundcubemail-0.1beta2.orig/skins/default/mail.css roundcubemail-0.1beta2/skins/default/mail.css
|
old
|
new
|
|
| 454 | 454 | background-color: #FFFFFF; |
| 455 | 455 | } |
| 456 | 456 | |
| | 457 | #messagelist tr.junk |
| | 458 | { |
| | 459 | /*font-style: oblique;*/ |
| | 460 | background-color: #e0ffcc; |
| | 461 | } |
| | 462 | |
| 457 | 463 | #messagelist tr.selected td |
| 458 | 464 | { |
| 459 | 465 | font-weight: bold; |
| … |
… |
|
| 611 | 617 | height: 18px; |
| 612 | 618 | list-style-image: none; |
| 613 | 619 | list-style-type: none; |
| 614 | | background: url(images/icons/attachment.png) 52px 1px no-repeat #DFDFDF; |
| | 620 | background: url(images/icons/attachment.png) 52px 1px no-repeat #DFDFDF; |
| 615 | 621 | border-bottom: 1px solid #FFFFFF; |
| 616 | 622 | } |
| 617 | 623 | |
diff -ruN roundcubemail-0.1beta2.orig/skins/default/templates/mail.html roundcubemail-0.1beta2/skins/default/templates/mail.html
|
old
|
new
|
|
| 56 | 56 | <roundcube:label name="select" />: |
| 57 | 57 | <roundcube:button command="select-all" label="all" classAct="active" /> |
| 58 | 58 | <roundcube:button command="select-all" prop="unread" label="unread" classAct="active" /> |
| | 59 | <roundcube:button command="select-all" prop="junk" label="junk" classAct="active" /> |
| 59 | 60 | <roundcube:button command="select-none" label="none" classAct="active" /> |
| 60 | 61 | <roundcube:label name="quota" />: <roundcube:object name="quotaDisplay" /> |
| 61 | 62 | </div> |