--- func.inc	2008-02-17 18:30:36.000000000 +0100
+++ func.inc	2008-02-18 20:44:31.358219395 +0100
@@ -75,9 +75,23 @@
   rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash');
 
 // set page title
-if (empty($_action) || $_action == 'list')
-  $OUTPUT->set_pagetitle(rcube_charset_convert($IMAP->get_mailbox_name(), 'UTF-7'));
+if (empty($_action) || $_action == 'list') {
 
+  $mboxname = $IMAP->get_mailbox_name();
+
+  if($mboxname=='INBOX') 
+	$OUTPUT->set_pagetitle(Q(rcube_label('inbox')));
+  elseif($CONFIG['trash_mbox'] && $CONFIG['trash_mbox']==$mboxname) 
+	$OUTPUT->set_pagetitle(Q(rcube_label('trash')));
+  elseif($CONFIG['drafts_mbox'] && $CONFIG['drafts_mbox']==$mboxname) 
+	$OUTPUT->set_pagetitle(Q(rcube_label('drafts')));
+  elseif($CONFIG['sent_mbox'] && $CONFIG['sent_mbox']==$mboxname) 
+	$OUTPUT->set_pagetitle(Q(rcube_label('sent')));
+  elseif($CONFIG['junk_mbox'] && $CONFIG['junk_mbox']==$mboxname) 
+	$OUTPUT->set_pagetitle(Q(rcube_label('junk')));
+  else
+	$OUTPUT->set_pagetitle(rcube_charset_convert($mboxname, 'UTF-7'));
+}
 
 
 // return the message list as HTML table
