I want to copy only header that is available in ucbletter, downloadable from here, and use it in my own cover letter. This ucbletter header is shown in below for better clarification.

Could someone help me which part of ucletter.sty I need to copy in my own document so that it appears only in the first page?

Here is the LaTeX code in which I want to replace the header with ucbletter header:

% Cover letter using letter.sty
\documentclass{letter} % Uses 10pt
%Use \documentstyle[newcent]{letter} for New Century Schoolbook postscript font

% the following commands control the margins:
\topmargin=-1in    % Make letterhead start about 1 inch from top of page
\textheight=8in  % text height can be bigger for a longer letter
\oddsidemargin=0pt % leftmargin is 1 inch
\textwidth=6.5in   % textwidth of 6.5in leaves 1 inch for right margin

%\usepackage{hyperref}

\begin{document}

\signature{FirstName LastName}           % name for signature
\longindentation=0pt                       % needed to get closing flush left
\let\raggedleft\raggedright                % needed to get date flush left

\begin{letter} {
Ms. XXX \\
XXX \\
XYZ Corporation \\
Rt. 56 \\
Anytown, XXX 05867
}

\begin{flushleft}
{\large\bf FirstName LastName}
\end{flushleft}
\medskip\hrule height 1pt
\begin{flushright}
\hfill 12345 My Address, MyCity, State 12345 \\
\hfill (123) 456-7890
\end{flushright}
\vfill % forces letterhead to top of page

\opening{To whom it may concern,}

• Could you confirm that you have permission to use this? I ask because some people mistakenly believe that if it is online, it must be all right to use it, but that's obviously not the case. – cfr May 2 '15 at 23:32
• I am currently affiliated with the University of California. – AFP May 2 '15 at 23:33
• In fact, Berkely has a LaTeX class for letters and similar documents which produces the letter head automatically. So I would suggest that you use that class. I don't have a current version but if you ask a LaTeX-using colleague, they can tell you where to get it. That class automatically puts the customised bits of your information in the standardised places so it will be better than just sticking the header on top of an ordinary letter. Also, the logo is available in metafont format which works well. (By now, I expect they may have moved to vector.) – cfr May 2 '15 at 23:34
• @cfr where is this latex class that berkeley supposedly has? i am a UCB student and i have no idea what you're talking about. – dbliss Dec 9 '16 at 21:40
• @dbliss I got a copy from a colleague. I don't know whether it is available to students, though. Normally, they would not be expected to use it. (Possibly some exceptional cases for e.g. graduate students asked to write references, but that is relatively unusual.) – cfr Dec 10 '16 at 0:15