\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\tableofcontents

\subsection{ Notes}
\textbf{IMP 5, Horde 4}\newline
\textbf{Modifies traditional and dynamic views to display username beside the name of the opened folder}.

This describes modifications to IMP 5.0.8 (Horde 4.0.7).

Tested on Debian 6.0 (squeeze), horde-4.0.7 and imp-5.0.8.


\noindent\rule{\textwidth}{1pt}
\subsection{ Modifications}
\begin{tabular}{|l|l|}
\hline
File & Variables, Function(s)\\
\hline
imp/mailbox.php & \$title\\
\hline
Raw: imp/lib/Views/ListMessages.php & getBaseOb, \$ob->label\\
\hline
\end{tabular}
\textsl{Last updated 2011-08-09}


\noindent\rule{\textwidth}{1pt}
\subsection{ Descriptions}

\noindent\rule{\textwidth}{1pt}
\subsubsection{ mailbox.php}
\begin{itemize}
\item{Modify \$title to add username.}
\end{itemize}
\begin{quote}
Traditional view.\newline
\end{quote}

\newline
Backup your original imp/mailbox.php. Edit mailbox.php and add a new line 354 with the following code:\newline
\textbf{Form:}\newline
\begin{verbatim}

$pagetitle = $title = IMP::$mailbox->label;
$refresh_title = sprintf(_("_Refresh %s"), $title);
\end{verbatim}

\newline
\textbf{To:}\newline
\begin{verbatim}

$pagetitle = $title = IMP::$mailbox->label;
$title = $pagetitle . htmlspecialchars(' of '. $injector->getInstance('Horde_Core_Factory_Identity')->create()->getName());
$refresh_title = sprintf(_("_Refresh %s"), $title);
\end{verbatim}


\noindent\rule{\textwidth}{1pt}
\subsubsection{ Raw: ListMessages.php}
\begin{itemize}
\item{Modify \$ob->label to add username.}
\end{itemize}
\begin{quote}
Dynamic view.\newline
\end{quote}

\newline
Backup your original Raw: imp/lib/Views/ListMessages.php. Edit Raw: ListMessages.php and alter line 495 (getBaseOb) with the following code:\newline
\textbf{Form:}\newline
\begin{verbatim}

$ob->label = htmlspecialchars($mbox->label);
\end{verbatim}

\newline
\textbf{To:}\newline
\begin{verbatim}

$ob->label = htmlspecialchars($mbox->label . ' of ' . $GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')->create()->getName());
\end{verbatim}

\end{document}
