\documentclass{article}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{hyperref}
\pagestyle{headings}
\begin{document}
\subsection{Notes}
\textbf{IMP 5, Horde 4}<br />
\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).

\section{Tested on Debian 6.0 (squeeze), horde-4.0.7 and imp-5.0.8.}
\subsection{Modifications}
<table class="horde-table">File & Variables, Function(s) \\
\hline
imp/mailbox.php & \$title \\
\hline
``imp/lib/Views/<a href="https://wiki.horde.org/ListMessages">ListMessages</a>.php`` & getBaseOb, \$ob->label \\
\hline
\textit{Last updated 2011-08-09} &  \\
\hline
</table>

\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.


\end{quote}
Backup your original imp/mailbox.php. Edit mailbox.php and add a new line 354 with the following code:<br />
\textbf{Form:}

<pre><code class="language-php">
\$pagetitle = \$title = IMP::\$mailbox->label;
\$refresh\_title = sprintf(\_("\_Refresh \%s"), \$title);
</code></pre>
\textbf{To:}

<pre><code class="language-php">
\$pagetitle = \$title = IMP::\$mailbox->label;
\$title = \$pagetitle . htmlspecialchars(' of '. \$injector->getInstance('Horde\_Core\_Factory\_Identity')->create()->getName());
\$refresh\_title = sprintf(\_("\_Refresh \%s"), \$title);
</code></pre>

\noindent\rule{\textwidth}{1pt}
\subsubsection{``<a href="https://wiki.horde.org/ListMessages">ListMessages</a>.php``}
\begin{itemize}
\item Modify \$ob->label to add username.


\end{itemize}
\begin{quote}
Dynamic view.


\end{quote}
Backup your original ``imp/lib/Views/<a href="https://wiki.horde.org/ListMessages">ListMessages</a>.php``. Edit ``<a href="https://wiki.horde.org/ListMessages">ListMessages</a>.php`` and alter line 495 (getBaseOb) with the following code:<br />
\textbf{Form:}

<pre><code class="language-php">
\$ob->label = htmlspecialchars(\$mbox->label);
</code></pre>
\textbf{To:}

<pre><code class="language-php">
\$ob->label = htmlspecialchars(\$mbox->label . ' of ' . \$GLOBALS['injector']->getInstance('Horde\_Core\_Factory\_Identity')->create()->getName());
</code></pre>
\end{document}
