<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook V3.1-Based Variant V1.0//EN" [
  <!ENTITY kappname "&kmail;">
  <!ENTITY % addindex "IGNORE">
  <!ENTITY % English "INCLUDE" -- change language only here -->
  <!ENTITY % ents PUBLIC "-//KDE//ENTITIES Documentation V2.0//EN">
  %ents;
  <!-- Do not define any other entities; instead, use the entities
       from kde-genent.entities and <lg>/user.entities. -->
]>

<book lang="&language;">
<bookinfo>
<title>The &kmail; Handbook</title>

<!-- note from daniel.naber@t-online.de, 2001-01-05: I'm working on this
"by hand" (using nedit) so please don't mix up the formatting too much. -->

<authorgroup>
<author>
<firstname>Daniel</firstname>
<surname>Naber</surname>
</author>
<author>
<firstname>David</firstname>
<surname>Rugge</surname>
</author>
</authorgroup>

<date>11/03/2001</date>
<releaseinfo>1.02.00</releaseinfo>

<copyright>
<year>1999</year>
<year>2000</year>
<year>2001</year>
<holder>David Rugge</holder>
</copyright>
  
<abstract>
	
<para>&kmail; is &kde;'s powerful and user friendly email client.</para>

</abstract>

<keywordset>
<keyword>KDE</keyword>
<keyword>Mail</keyword>
<keyword>email</keyword>
<keyword>Client</keyword>
<keyword>POP3</keyword>
<keyword>PGP</keyword>
<keyword>GnuPG</keyword>
</keywordset>
</bookinfo>

<chapter id="intro">
<title>Introduction</title>

<para>The &kmail; Team welcomes you to &kmail;, a user-friendly mailer for the
K Desktop Environment. Our goal is to make a mailer that is beautiful and intuitive
without sacrificing power. </para>

<para>If you have never set up an email client on a Unix system before, we
suggest that you read through the <link linkend="getting-started">Getting
Started</link> section first so that your setup goes smoothly.</para>

<para>Since people don't read documentation anyway, here is a collection of the
most helpful tips:</para>

<itemizedlist>
<listitem>
<para>You don't have to use your mouse to use &kmail;. Everything should be
possible with keys. &kmail; supports all the standard keys like
<keycap>TAB</keycap> (switch between panes). The trick is: <keycap>left
arrow</keycap>/<keycap>right arrow</keycap> always jumps to the previous/next
message, but when you hold down &Ctrl;, you can use <keycap>left
arrow</keycap>/<keycap>right arrow</keycap> to navigate in the Folders pane and
<keycap>up arrow</keycap>/<keycap>down arrow</keycap> to navigate in the Headers
pane. Use <keycap>space</keycap> to select the folder you navigated to.</para>
</listitem>
<listitem>
<para>When you are writing a new mail and you are in the
<guilabel>To:</guilabel> field, only type the first few characters of the
receiver's address, then press <keycombo>&Ctrl;<keycap>T</keycap></keycombo> to
get a list of choices. These are taken from your address book, so keep your
address book up to date and this feature will be very useful.</para>
</listitem>
<listitem>
<para>In the <guilabel>Composer</guilabel> you can select text and
drag it around with the mouse.</para>
</listitem>
<!-- TODO: add other tips for "invisible" features here -->

</itemizedlist>

<para>&kmail;'s homepage is at <ulink
url="http://kmail.kde.org">http://kmail.kde.org</ulink>, an archive of the
developer's mailing list is at <ulink
url="http://lists.kde.org/?l=kde-kmail&amp;r=1&amp;w=2">lists.kde.org</ulink>.</para>

<para>Please report bugs in &kmail; using
<menuchoice><guimenu>Help</guimenu><guimenuitem>Report
bug...</guimenuitem></menuchoice>.</para>

<para>We hope you will enjoy &kmail;!</para>

</chapter>

<chapter id="getting-started">
<title>Getting Started</title>

<para>This is a short introduction to &kmail; and its usage so you can start
working with it right away. For more in-depth information see the <link
linkend="using-kmail">Using &kmail;</link> section. Note that &kmail;'s
installation is described in <link linkend="installation">the appendix</link>.</para>

<para>Invoking &kmail; for the first time creates a directory called <filename
class="directory">Mail</filename> containing the initial files
(<filename>inbox</filename>, <filename>outbox</filename>,
<filename>sent-mail</filename>, <filename>trash</filename> and <filename>drafts</filename>) in your home
directory.  Use <menuchoice> <guimenu>Settings</guimenu>
<guimenuitem>Configuration...</guimenuitem> </menuchoice> to enter some initial
information so &kmail; will be able to properly retrieve and send your
messages.</para>

<para>The Configure window consists of seven sections:
<guilabel>Identity</guilabel>, <guilabel>Network</guilabel>,
<guilabel>Appearance</guilabel>, <guilabel>Composer</guilabel>, <guilabel>Mime
Headers</guilabel>, <guilabel>Security</guilabel>, and
<guilabel>Miscellaneous</guilabel>.

To begin sending and receiving email you will only have to change the settings
in the <guilabel>Identity</guilabel> and <guilabel>Network</guilabel>
tabs.</para>

<sect1 id="setting-your-identity">
<title>Setting your Identity</title>

<para>The settings in the <guilabel>Identity</guilabel> tab are fairly
straightforward. Fill in the <guilabel>Name</guilabel> field with your full name
(&eg; <userinput>John Doe</userinput>) and the <guilabel>Organization</guilabel>
field (optional) with the appropriate information. Next, fill in the 
<guilabel>Email Address</guilabel> and the <guilabel>Reply-To Address</guilabel> 
(optional) field with your email address.</para>

<para>Finally, set the location of your signature file in the
<guilabel>Signature File</guilabel> field. You can skip setting the signature
file if you do not have one, but every time you compose a new message, &kmail;
will ask you for your signature file. So if you don't want one, select
<guilabel>Specify signature below</guilabel> and just don't enter anything in
the field below. If you want a random signature, you may specify a program <!-- TODO: like
"fortune"? --> and check the <guilabel>The file is a program</guilabel>
box.</para>
</sect1>

<sect1 id="setting-up-your-account">
<title>Setting up your Account</title>

<para>The <guilabel>Network</guilabel> tab contains the settings that tell
&kmail; how to send and receive your email. Many of these settings can vary
greatly depending on the setup of your system and on the kind of network that
your mail server is located. If you do not know what setting to pick or what to
put in a field, consult your Internet Service Provider (<acronym>ISP</acronym>)
or System Administrator.</para>
      
<sect2 id="properties">
<title>Properties</title>

<para>The <guilabel>Properties</guilabel> section lets you customize 
how and when messages are sent.</para>

<para><guilabel>Default send method</guilabel> lets you define what happens when
a message is sent. If <guilabel>Send now</guilabel> is selected, the message is
sent to the mail server immediately, while if <guilabel>Send later</guilabel> is
selected, the message is queued in the outbox to be sent later with the
<menuchoice><guimenu>File</guimenu><guimenuitem>Send
Queued</guimenuitem></menuchoice> command or automatically when you check your
mail, depending on the settings in the <guilabel>Miscellaneous</guilabel>
tab.</para>

<para><guilabel>Message Property</guilabel> lets you select how your message
will be encoded when it is sent. <guilabel>Allow 8-bit</guilabel> means that
&kmail; will send your message in 8 bit <acronym>ASCII</acronym>, which means
that all special characters such as accented letters will be sent as-is. If
<guilabel>MIME Compliant (Quoted Printable)</guilabel> is selected, special
characters will be encoded using standard &MIME; encodings, which may be more
portable to other mailing systems than 8-bit <acronym>ASCII</acronym>.<!-- TODO:
advise what's better --></para>

</sect2>

<sect2 id="sending-mail">
<title>Sending Mail</title>

<para>The <guilabel>Sending Mail</guilabel> section provides two options for
sending mail: sendmail and
<acronym>SMTP</acronym>. <application>Sendmail</application> has a reputation of
being difficult to set up, so if you do not already have a working
<application>sendmail</application> configuration, choose
<acronym>SMTP</acronym> and fill in the <guilabel>Server</guilabel> field with
the name and domain of your mail server. You will probably not need to change
the <guilabel>Port</guilabel> setting (the default is
<guilabel>25</guilabel>).</para>

<para>If you do want to use <application>sendmail</application> and you are
using a dial-up connection, follow the instructions for setting up sendmail for
a dial-up connection in the <link linkend="faq">FAQ</link> section.</para>

</sect2>

<sect2 id="receiving-mail">
<title>Incoming Mail</title>

<para>To set up an account so you can receive mail, press the
<guibutton>Add...</guibutton> button in the <guilabel>Incoming Mail</guilabel>
section. You will then be prompted for the type of account.  Most users should
select <guilabel>Pop3</guilabel> (<acronym>IMAP</acronym> accounts are not yet
supported).<!-- fixme for 2.2 -->
 After pressing <guibutton>OK</guibutton> you will be presented with
the <guilabel>Add Account</guilabel> window. First, fill in the
<guilabel>Name</guilabel> field to name your account. You can choose any name
you like.  <guilabel>Login</guilabel>, <guilabel>Password</guilabel>, and
<guilabel>Host</guilabel> should be filled in with the appropriate information
from your <acronym>ISP</acronym> or System Administrator. Again, you should not
need to change the <guilabel>Port</guilabel> setting (the default is
<guilabel>110</guilabel>).</para>

<!-- SSL for Pop3 is currently not part of KMail
<para>With <guilabel>Use SSL for secure mail download</guilabel>
you can encrypt the messages you are fetching on their way from your mailserver
to your computer - but only if your mailserver supports that. Please understand
that this does not encrypt your mails on their normal way through the Internet.</para>
-->

<para>If you select <guilabel>Store POP password in configuration
file</guilabel> &kmail; will remember your password so you won't have to type it
every time you start &kmail; and fetch new mail.</para>

<warning><para>Be warned that we cannot really
encrypt the password, so people who can access your configuration files (&eg;
system administrators) can get your password if you select this option.</para></warning>

<para>Select <guilabel>Delete mail from server</guilabel> if you don't want to
leave your mail on the server.</para>

<para>Select <guilabel>Exclude from &quot;Check Mail&quot;</guilabel> if you
don't want to check this account whenever you use <menuchoice><guimenu>Check
mail</guimenu></menuchoice>.  You can still check for new mail on this account
with <menuchoice><guimenu>File</guimenu><guimenuitem>Check Mail
in</guimenuitem></menuchoice>.</para>

<!-- was removed:
<para>Select <guilabel>Retrieve all mail from server</guilabel> if you
want to get all mails, not only the new ones.</para>
-->

<para>Select <guilabel>Enable interval mail checking</guilabel> if you want
&kmail; to check for new mail automatically. The interval can be specified below
under <guilabel>Check interval (minutes)</guilabel>.</para>

<para><guilabel>inbox</guilabel> is the default folder for incoming mail. If you
want to change that for some reason, you can do so with <guilabel>Destination
folder</guilabel>. But what you probably want is a <link
linkend="filters">filter</link>, which has nothing to do with this
option.</para>

<para>With <guilabel>Precommand</guilabel> you can specify any program &kmail;
will execute just before fetching mail. Please specify the full path and note
that &kmail; will not continue until the program returns.</para>

<para>You are now ready to send and receive mail!</para>

</sect2>

</sect1>

<sect1 id="testing-your-setup">
<title>Testing your Setup</title>

<para>First, you should send an email to test your configuration. To send an
email, hit <keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>, select the
<guiicon>Compose new message</guiicon> icon (the empty sheet of paper) or select
the <menuchoice><guimenu>Message</guimenu><guimenuitem>New
Message</guimenuitem></menuchoice> menu item.  The <guilabel>Composer</guilabel>
window will appear. Fill in the <guilabel>To:</guilabel> field with your email
address and type something in the <guilabel>Subject</guilabel> field. Send the
mail by selecting <menuchoice><guimenu>Message</guimenu>
<guimenuitem>Send</guimenuitem></menuchoice>.</para>

<para>To check your email, select
<menuchoice><guimenu>File</guimenu><guimenuitem>Check
Mail</guimenuitem></menuchoice>. In the lower right corner of the main window, a
progress bar will indicate how much mail is being downloaded. If you receive the
message you just sent, then congratulations!  If, however, you receive any error
messages while testing your setup, make sure that your network connection is
working and recheck your settings by selecting
<menuchoice><guimenu>Settings</guimenu>
<guimenuitem>Configuration...</guimenuitem></menuchoice></para>

</sect1>

</chapter>

<chapter id="using-kmail">
<title>Using &kmail;</title>

<sect1 id="the-mail-reader-window">
<title>The Mail Reader Window</title>

<para>The <guilabel>Mail Reader</guilabel> window is the window that appears
when &kmail; is started. It is divided into three panes:</para>

<variablelist>
<varlistentry>
<term>Folders pane (upper left pane)</term>
<listitem>
<para>This pane contains a list of your message folders (other email programs
call them mailboxes). If there is a number after the folder name this indicates
that this folder contains unread mails. To select a folder, simply click on
it. The messages contained in the folder will now appear in the Headers
pane. The number of unread messages and the total number of messages in the
selected folder is now displayed in the status bar.  The folders can be
displayed in both a short view, which takes up only a small portion of the left
side of the screen, and a long view, which takes up the entire left side of the
screen but is able to show more mailboxes. You can toggle between these two views
under <guilabel>Appearance</guilabel>/<guilabel>Addressbook</guilabel> in the
<guilabel>Configure</guilabel> dialog. Also see the <link
linkend="folders">Folders Section</link> for more information about how to use
folders.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Headers pane (upper right pane)</term>
<listitem>
<para>This pane lists header information (message Status Flags, Sender, Subject,
Date) for the messages in the currently selected folder. Clicking on a header
will select that message and display it in the Message pane. You can also select
a series of messages by clicking on one message, holding down the
<keycap>Shift</keycap> key, and clicking on another message. The two messages
you just clicked on will be selected, along with all the messages in between. By
holding down the &Ctrl; key you can select any number of messages without those
in between. You may sort the messages by clicking on the column that you wish to
sort. If you click on the same column more then once, sort order will toggle
between ascending/descending. If you click on the <guilabel>Subject</guilabel>
column, you can toggle sorting between Subject ascending/descending and Status
ascending/descending.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Message pane (lower pane)</term>
<listitem>
<para>This pane displays the header and body of the currently selected
message. Attachments appear at the bottom of the message. 
You can scroll through the message page by page
using the <keycap>Page Up</keycap> and <keycap>Page down</keycap> keys, or line
by line using the <keycap>up arrow</keycap> and <keycap>down arrow</keycap>
keys. You can also use the following key shortcuts to skip through your messages
without having to use the mouse:</para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>Keyboard Shortcut</entry>
<entry>Action</entry>
</row>
</thead>
<tbody>
<row>
<entry><keycap>right arrow</keycap> or <keycap>N</keycap></entry>
<entry>Next message</entry>
</row>
<row>
<entry><keycap>left arrow</keycap> key or <keycap>P</keycap></entry>
<entry>Previous message</entry>
</row>
<row>
<entry><keycap>+</keycap></entry>
<entry>Next unread message</entry>
</row>
<row>
<entry><keycap>-</keycap></entry>
<entry>Previous unread message</entry>
</row>
<row>
<entry><keycombo
action="simul"><keycap>Ctrl</keycap><keycap>+</keycap></keycombo></entry>
<entry>Go to next folder with unread messages</entry>
</row>
<row>
<entry><keycombo
action="simul"><keycap>Ctrl</keycap><keycap>-</keycap></keycombo></entry>
<entry>Go to the previous folder with unread messages</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</listitem>
</varlistentry>
</variablelist>

<para>Messages can have one of several status flags, which can be changed from
the <menuchoice><guimenu>Message</guimenu><guimenuitem>Set
Status</guimenuitem></menuchoice> submenu. The status flags are described
below:</para>

<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>Status</entry>
<entry>Symbol</entry>
<entry>Meaning</entry>
</row>
</thead>
<tbody>
<row>
<entry><guimenuitem>New</guimenuitem></entry>
<entry>Red dot</entry>
<entry>The message has been received for the first time, and is unread.</entry>
</row>
<row>
<entry><guimenuitem>Unread</guimenuitem></entry>
<entry>Green dot</entry>
<entry>The message has already been retrieved off the server at least once, but
has not yet been read.</entry>
</row>
<row>
<entry><guimenuitem>Read</guimenuitem></entry>
<entry>Dash</entry>
<entry>The message has been read</entry>
</row>
<row>
<entry><guimenuitem>Replied</guimenuitem></entry>
<entry>Blue u-turn arrow</entry>
<entry>A reply has been composed to this message.</entry>
</row>
<row>
<entry><guimenuitem>Queued</guimenuitem></entry>
<entry>Envelope</entry>
<entry>The mesage has been queued in the outbox to be sent later.</entry>
</row>
<row>
<entry><guimenuitem>Sent</guimenuitem></entry>
<entry>Angled envelope</entry>
<entry>The message has been sent.</entry>
</row>
</tbody>
</tgroup>
</informaltable>

</sect1>

<sect1 id="the-composer-window">
<title>The Composer Window</title>

<para>The <guilabel>Composer</guilabel> window is used to write new messages.
It can be invoked from the <menuchoice><guimenu>Message</guimenu></menuchoice>
menu or from the <guiicon>document</guiicon> icon on the <guilabel>Mail
Reader</guilabel> window button bar.  If you have not set the location of your
signature file and you have <guilabel>Use a signature from file</guilabel>
checked in the <guilabel>Composer</guilabel> tab of the
<guilabel>Configure</guilabel> dialog, you will be prompted for the location of
your signature file before the <guilabel>Composer</guilabel> window
opens.</para>

<sect2 id="composing-a-message">
<title>Composing a Message</title>

<para>To write your message, fill in the appropriate fields in the
<guilabel>Composer</guilabel> window. There are a variety of shortcuts to help
you with writing your messages. The <guiicon>ellipsis</guiicon> buttons next to
the <guilabel>To:</guilabel>, <guilabel>Cc:</guilabel>, and
<guilabel>Bcc:</guilabel> fields will call up the address book so that you can
select addresses from there. If you already
started typing an address you can also press <keycombo
action="simul">&Ctrl;<keycap>T</keycap></keycombo> to get a list of possible
completions. Whenever you want to add more than one recipient in one of the
fields, use a comma to separate each address from the next one. You may need to
specify fully qualified addresses (&ie; <userinput>user@domain.com</userinput>)
even for local users.</para>

<para>You can use the <menuchoice><guimenu>View</guimenu></menuchoice> menu to
set up the header fields offered to you. When you are finished with your
message, hit the <guiicon>Send</guiicon> button (the envelope) to queue or send
the message. If you don't want to send your message yet, select
<menuchoice><guimenu>Message</guimenu><guimenuitem>Save in drafts folder</guimenuitem></menuchoice>.
</para> 

</sect2>

<sect2 id="attachments">
<title>Attachments</title>

<para>You can attach files to your message by using one of the methods
below:</para>

<itemizedlist>
<listitem>
<para>Push the <guiicon>paper clip</guiicon> button and select the file you wish
to attach.</para>
</listitem>
<listitem>
<para>Drag a file from the desktop or another directory into the
<guilabel>Composer</guilabel> window.</para> 
</listitem>
<listitem>
<para>Selecting one of the options in the
<menuchoice><guimenu>Attach</guimenu></menuchoice> menu.</para>
</listitem>
</itemizedlist>

<para>The <guilabel>Message Part Properties</guilabel> dialog will appear to
prompt you for information about your attachment. The &MIME;-type and file name
fields are automatically filled in with the appropriate values (Sometimes the
&MIME;-type value may be wrong. You can then type in any content &MIME;-type or
choose from the list of common &MIME;-types). You should then select an encoding
method for your file from the list of encoding options (normally, the default
value works fine).</para>

<para>Once a file is attached to your message, it appears in the Attachments
pane at the bottom of the <guilabel>Composer</guilabel> window. You may remove,
save, or get information about an attachment by selecting its name in the
Attachments pane and selecting
<menuchoice><guimenuitem>Remove</guimenuitem></menuchoice>,
<menuchoice><guimenuitem>Save...</guimenuitem></menuchoice>, or
<menuchoice><guimenuitem>Properties...</guimenuitem></menuchoice> from the
<menuchoice><guimenu>Attach</guimenu></menuchoice> menu. </para>

<para><application>PGP</application>/<application>GnuPG</application> keys may also 
be attached to your message by using the appropriate options in the
<menuchoice><guimenu>Attach</guimenu></menuchoice> menu. <acronym>PGP</acronym>
key attachments are handled like file attachments.</para>
</sect2>

<sect2 id="checking-the-spelling-of-your-message">
<title>Checking the Spelling of your Message</title>

<para>To check the spelling of your message, select
<menuchoice><guimenu>Edit</guimenu>
<guimenuitem>Spelling...</guimenuitem></menuchoice>. &kmail; uses &kspell; to
check spelling, which is the &kde; frontend to the the
<application>ispell</application> or <application>aspell</application> spelling
checker. Note that you may need to configure the spellchecker using
<menuchoice><guimenu>Settings</guimenu>
<guimenuitem>Spellchecker...</guimenuitem></menuchoice>.</para>

</sect2>

</sect1>

<sect1 id="folders">
<title>Message Folders</title>

<para>Message Folders are used to organize your email messages. By default, all
message folders are stored in the directory <filename
class="directory">Mail</filename>, which is created in your home directory. When
you first start &kmail; the <guilabel>inbox</guilabel>,
<guilabel>outbox</guilabel>, <guilabel>sent-mail</guilabel>,
<guilabel>trash</guilabel> and <guilabel>drafts</guilabel> folders are created.
These folders each have special functions:</para>

<variablelist>
<varlistentry>
<term><guilabel>inbox:</guilabel></term>
<listitem>
<para>Where &kmail; puts your new messages when you ask it to check your
mail. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>outbox:</guilabel></term>
<listitem>
<para>Where messages are put while they are waiting to be delivered. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>sent-mail:</guilabel></term>
<listitem>
<para>Contains copies of all messages that you have sent. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>trash:</guilabel></term>
<listitem>
<para>Contains all messages that you have deleted.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>drafts:</guilabel></term>
<listitem>
<para>Contains messages you started to edit but didn't finish.</para>
</listitem>
</varlistentry>
</variablelist>

<para>You may find that the standard folders are fine for your
needs. Eventually, though, you will probably need folders to help you organize
your messages. To create a new folder, select
<menuchoice><guimenu>Folder</guimenu><guimenuitem>Create...</guimenuitem></menuchoice>
A window will then prompt you for the name of the folder. If you don't want it
to be a top level folder, you may choose the folder under which it will
appear. If you ever need to change the settings for a folder, select the folder
you wish to modify in the Folders pane and select
<menuchoice><guimenu>Folder</guimenu><guimenuitem>Modify...</guimenuitem>
</menuchoice>.</para>

<para>To move messages from one folder into another, select the message(s) you
want to move and press the <keycap>M</keycap> key or select
<menuchoice><guimenu>Message</guimenu><guimenuitem>Move
to</guimenuitem></menuchoice>. A list of folders will appear.  Select the folder
from the list that you want to move the messages to.  Messages can also be moved
by dragging them from the Headers pane into the Folders pane.</para>

<para>If you want to clear all of the messages out of a folder choose
<menuchoice><guimenu>Folder</guimenu><guimenuitem>Empty</guimenuitem></menuchoice>.
All the messages in the selected folder will be moved to the trash folder. If
the selected folder is the <guilabel>trash</guilabel> folder, all of the
messages will be permanently deleted.</para>

</sect1>

<sect1 id="the-address-book">
<title>The Address Book</title>

<para>An address book is a place to store your commonly used email
addresses. You can call up the address book from the
<menuchoice><guimenu>File</guimenu></menuchoice> menu, the address book button
on the Main window, or the <guiicon>address book</guiicon> button in the
<guilabel>Composer</guilabel> window.</para>

<para>You can choose between different types of address books in the
<guilabel>Appearance</guilabel>/<guilabel>Addressbook</guilabel> section in
&kmail;'s <guilabel>Configure</guilabel> dialog.</para>

<para>The address book described in the following is the <guilabel>Traditional
KMail</guilabel> address book. The other address books should come with their
own documentation, as they are in fact independent programs.</para>

<para>To add addresses to the address book, type an email address into the lower
section of the window and hit the <guibutton>Add</guibutton> button.  The
address will then appear on top of the list.  To remove an address, select it
from the list and hit the <guibutton>Remove</guibutton> button. </para>

<para>Addresses can also be added to the address book from the <guilabel>Mail
Reader</guilabel> window by &RMB; clicking on an email address in the
<guilabel>To:</guilabel> or <guilabel>From:</guilabel> fields and selecting
<guilabel>Add to address book</guilabel>.</para>

</sect1>

<sect1 id="filters">
<title>Filters</title>
<anchor id="FILTERS_ID">

<para>After using &kmail; for a while, you may find that you have trouble
sorting out the new messages in your inbox when they arrive. Filters allow you
to automatically perform certain actions on incoming messages and to manually
perform actions on selected messages in a folder.</para>

<para>Usually, filters are used on incoming messages, but they can also be
applied to a message or group of messages. To selectively filter messages, 
select the messages you want to filter and type <keycombo
action="simul">&Ctrl;<keycap>J</keycap></keycombo> or select
<menuchoice><guimenu>Message</guimenu><guimenuitem>Apply
Filters</guimenuitem></menuchoice>. Note that this will apply all of your
filters to those messages; there is no way to apply only certain filters to
messages.</para>

<para>If you ever need to remove a filter, select it from the <guilabel>Filter
Rules</guilabel> window and press the <guibutton>Delete</guibutton>
button.</para>

<sect2 id="filter-action">
<title>Filter Action</title>

<para>The most common use of filters is to sort incoming messages to certain
folders. This can be done by choosing <guilabel>transfer</guilabel>. But there
are other actions a filter can start:</para>

<variablelist>
<varlistentry>
<term><guilabel>transfer</guilabel></term>
<listitem>
<para>This will move the message to another folder.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>set identity</guilabel></term>
<listitem>
<para>This will set <emphasis>your</emphasis> identity if you reply to this
message.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>set transport</guilabel></term>
<listitem>
<para>This will set the method of transport (&eg; <acronym>SMTP</acronym>) if
you reply to the message.</para>
</listitem>
</varlistentry> 
<varlistentry>
<term><guilabel>set Reply-To</guilabel></term>
<listitem><para>Will modify the <guilabel>Reply-To</guilabel> field of this
message. This can be useful for mailing lists that automatically set a Reply-To
which you don't like.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>forward to</guilabel></term>
<listitem><para>Will forward the message to another email address.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>execute</guilabel></term>
<listitem>
<para>This will execute a program, but will not modify the message. Specify the
full path to the program you want to execute. &kmail; will block until the
program returns. You can feed the program with the parts of the mail:
<symbol>&percnt;0</symbol>, <symbol>&percnt;1</symbol>, &etc; will stand for
files representing the message parts. For common mails
<symbol>&percnt;0</symbol> is the text, <symbol>&percnt;1</symbol> the first
attachment and so on.</para> 
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>filter app</guilabel></term>
<listitem>
<para>This will feed the message to a program. If that program returns output, the entire
message (including the headers) will be replaced with this output. If the
program doesn't return output, the message won't change.  Specify the full path
to the program.</para>
<caution><para>Be cautious with this action, as it will easily mess up your
messages if the filter program does return garbage or extra
lines.</para></caution>
</listitem>
</varlistentry>
</variablelist>

</sect2>

<sect2 id="filter-examples">
<title>Filter Examples</title>

<para>If I am subscribed to the &kde; User List, I could create a folder for the
list (I'll call it <replaceable>KDE-User</replaceable>) and use a filter to
automatically transfer new messages from my inbox to my
<replaceable>KDE-User</replaceable> folder if they are from the &kde; User
List. Here is how to create this filter:</para>

<procedure>
<step>
<para>Think of a unique way of identifying the messages you want to filter. The
unique property of my &kde; User List messages is that they always contain
<quote>kde-user@kde.org</quote> in the 
<guilabel>To:</guilabel> or <guilabel>Cc:</guilabel> field.</para>
</step>
<step>
<para>Select <menuchoice><guimenu>Settings</guimenu><guimenuitem>Filter
Rules...</guimenuitem></menuchoice>.</para>
</step>
<step>
<para>Press the <guibutton>New</guibutton> button to create an empty filter. It
will appear as <guilabel>Unnamed</guilabel>.</para>
</step>
<step>
<para>The right side of the Filter window contains two sections: matching
criteria and actions. In the matching criteria area, select <guilabel>&lt;To: or
Cc:&gt;</guilabel> from the first pull-down menu,  <guilabel>contains</guilabel>
from the second pull-down menu, and type <userinput>kde-user@kde.org</userinput>
in the text field.</para> 
</step>
<step>
<para>Skip down to the actions section. Select <guilabel>transfer</guilabel>
from the first pull-down menu. A new pull-down menu containing a list of folders
will appear. Select the folder that you want the filtered messages to be
transferred to if they match the criteria you selected. For this example, you
would select <guilabel>KDE-User</guilabel> from the pull-down menu.</para> 
</step>
</procedure>

<para>You may find that you need to use more complicated criteria to properly
filter your messages. For example, you may only want to filter the &kde; User List
messages that are written by your friend Fred Johnson
&lt;fj@anywhere.com&gt;. This is where the rest of the matching criteria section
comes into play:</para>

<procedure>
<step>
<para>Open up the <guilabel>Filter Rules</guilabel> window and select the filter
you just created.</para> 
</step>
<step>
<para>Since you want to filter all messages that have
<quote>kde-user@kde.org</quote> in the <guilabel>To:</guilabel> or
<guilabel>Cc:</guilabel> field <emphasis>and</emphasis> that are from Fred,
select the <guilabel>and</guilabel> option from the pull down menu between the
two criteria sections.</para>
</step>
<step>
<para>Now, go to the bottom criteria section and select the following from the
pull-down menus:  <guilabel>From</guilabel>, <guilabel>contains</guilabel>. Now,
type  <userinput>fj@anywhere.com</userinput> in the text field.</para>
</step>
</procedure>

<para>You now have a filter that transfers all &kde; User List messages that are
from fj@anywhere.com.</para> 
</sect2>
</sect1>

<sect1 id="multiple-accounts">
<title>Multiple Accounts</title>

<para>Multiple accounts are used to check mail from more than one email address
and/or mail server. Select <menuchoice><guimenu>Settings</guimenu>
<guimenuitem>Configuration...</guimenuitem></menuchoice> and click on the
<guilabel>Network</guilabel> tab to add or change your account settings. See the
<link linkend="getting-started">Getting started</link> section for more
information on the settings in the <guilabel>Network</guilabel> tab.</para>

<para>To check mail from a particular account, use the
<menuchoice><guimenu>File</guimenu><guimenuitem>Check Mail
in...</guimenuitem></menuchoice> submenu to select the account to use to check
your mail. You can also press the mouse button on the <guiicon>Check
Mail</guiicon> icon for some time to get a list of accounts.</para>

</sect1>

<sect1 id="pgp">
<!-- This section is from Andreas Gungl, 2000-05-21 -->
<title><application>Pretty Good Privacy</application>
(<application>PGP</application>) / <application>GNU Privacy Guard</application>
(<application>GnuPG</application>)</title>

<para>This is a short introduction on how to setup &kmail;'s
<application>pgp</application> support. It will give some hints on the use of
<application>pgp</application> too. It's written for people who are beginners in
this area. If you are familiar with the use of <acronym>pgp</acronym>, you can
skip most of the steps. Working with <application>GnuPG</application> is
generally similar, but some command line parameters may be different. Please
also check out the <link linkend="pgp-faq">&FAQ; item about
<application>pgp</application></link>.</para>

<warning><para>You can encrypt your messages sent with &kmail;, but this does
not mean that the attachments are encrypted. You have to encrypt your
attachments manually, using a shell command or some other tool before you attach
them.</para></warning>

<warning><para>&kmail; has to rely on <application>PGP</application>'s
output. This output is often different between different version of
<application>PGP</application>, so it's important that you test if encryption
really works with your setup before you start using it seriously. &kmail; might
<emphasis>not</emphasis> warn you if something fails. You better enable <guilabel>Show ciphered text
after composing</guilabel>.  </para></warning>

<para>To setup and use <application>pgp</application> support in &kmail; it is
necessary to have <application>pgp</application> installed and set up
properly. Of course we cannot give you a full introduction of
<application>pgp</application> here. We will only mention the steps you have to
do to get <application>pgp</application> going. For details you should have a look at the excellent 
<application>pgp</application> documentation.</para> 

<para>It is certainly a good idea to study this documentation as well as an
introduction into public key cryptography (&eg; out of the
<application>pgp</application> 6.5.x package). There you can learn a lot about
the basic concepts, which will help you to understand what is going on. As well,
many security related issues you should know about are discussed there.</para>

<para>Now let's start.</para>

<sect2 id="pgp-preconditions">
<title>Preconditions</title>

<para>&kmail; expects that your <application>PGP</application> binary is called
<command>pgp</command>.  In case of <application>GnuPG</application>, it expects
the binary to be called <command>gpg</command>. If that's not the case for you,
just make a symlink.</para>

<para>If you haven't done so, you have to generate a key pair (secret and public
key) for your identity. You must do this at the command line (use
<userinput><command>pgp</command> <option>-kg</option></userinput>).  &kmail;
has no internal support for <application>pgp</application>'s key generation at
this time. The identity (normally your name followed by your email address
within brackets, such as <userinput>John Doe
&lt;john@example.com&gt;</userinput>) and your passphrase are important for the
co-operation between &kmail; and <application>pgp</application>.</para>

</sect2>

<sect2 id="pgp-settings">
<title><application>PGP</application> Related Settings in &kmail;</title>

<para>Open the &kmail; <guilabel>Configure</guilabel> dialog and go to the
<guilabel>Security</guilabel> settings page. Type your identity into the
<guilabel>PGP user identity</guilabel> entry field. There are also three
options:</para>

<variablelist>
<varlistentry>
<term><guilabel>Keep passphrase in memory</guilabel></term>
<listitem>
<para>When this option is off, then &kmail; will ask for your passphrase each
time you sign a message (before sending) or decrypting a message (sent to
you). If you turn this option on, &kmail; will remember your passphrase from
after your first successful input until you finish your &kmail; session. The
passphrase is stored in memory and not written to the harddisk.</para>

<warning><para>Note that a user
with enough privileges (&eg; <systemitem>root</systemitem>) might be able to
catch your passphrase even from the computer's memory.</para></warning>

</listitem>
</varlistentry>

<varlistentry>
<term><guilabel>Always encrypt to self</guilabel></term>
<listitem>
<para>If this option is off and you want send an encrypted message to somebody,
then you can't read this message any longer after you have composed and
encrypted it. Turn this option on to keep sent encrypted messages readable for
you too.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><guilabel>Show ciphered text after composing</guilabel></term>
<listitem>
<para>This will show you the result of encrypting and signing before the message
gets sent. This way you can still cancel sending if encrypting failed. It is
strongly recommended to use this option.</para> 
</listitem>
</varlistentry>

<varlistentry>
<term><guilabel>Encryption tool</guilabel></term>
<listitem>
<para>Here you can choose if you want to use <application>GnuPG</application> or
<application>PGP</application>. Of course the program you select has to be
installed on your system. It is also important to select the correct
version.</para>
</listitem>
</varlistentry>
</variablelist>

<para>On the <guilabel>Composer</guilabel> tab you can also check the
<guilabel>Automatically sign messages using PGP</guilabel> option. This means
that all your messages will be signed before being sent. (So you don't have to
set the signing for each mail manually.)</para>

<para>Now you are able to sign outgoing messages. To let people send encrypted
messages to you and to let them verify your signature you must send them your
public key. To send encrypted mails to other people or to verify their signed
messages you will need their public keys.  You can store your public key(s) on a
public <application>PGP</application> key server such as <ulink
url="http://www.cam.ac.uk.pgp.net/pgpnet/">http://www.cam.ac.uk.pgp.net/pgpnet/</ulink>.</para>

</sect2>

<sect2 id="pgp-sign-your-messages">
<title>Sign your Messages</title>

<para>You compose your message as usual in the <guilabel>Composer</guilabel>
window of &kmail;. Before you send the message, check the button with the
underlining icon on it in the toolbar of the composer window. Then, you can send
the message. To sign it, &kmail; needs to know your <application>pgp</application> passphrase. If you
didn't select <guilabel>Keep passphrase in memory</guilabel> in the
<guilabel>Security</guilabel> settings tab, &kmail; will ask you for it.  On the
other hand, if you have already given the phrase to &kmail;, it will sign the
message without any further prompt.</para>

</sect2>

<sect2 id="pgp-send-your-public-key">
<title>Send your Public Key</title>

<para>Prepare a message to the person you want to send your public key to. Then
choose in the <guilabel>Composer</guilabel> window's menu
<menuchoice><guimenu>Attach</guimenu><guimenuitem>Attach My Public
Key</guimenuitem></menuchoice>. This will attach your public key to the
mail. Now you can send the mail.</para>

<para>Remember that it's not safe at all if you sign the message to make sure
that the receiver will get the correct key. There can be a man-in-the-middle
attack, as somebody can change the key and sign the message with that other
key. That's why the recipient should verify the attached key by checking the
key's fingerprint against the one he got in a secure way from you. Have a look
at the <application>pgp</application> documentation for further details.</para>

</sect2>

<sect2 id="pgp-you-got-an-encrypted-message">
<title>You got an encrypted Message</title>

<para>All you have to do is to select the message in &kmail;. You will be
prompted for your passphrase. Then &kmail; will try to decrypt the message and
show you the plain text if the message had been encrypted with your public
key. (If not, then you won't be able to read it.) &kmail; stores the messages
encrypted, so nobody can read these messages without knowing your passphrase.</para>

</sect2>

<sect2 id="pgp-receiving-a-public-key">
<title>Receiving a Public Key</title>

<para>You can get a public key as an attachment or simply by ftp or
floppy. Before you can use this key to encrypt a message to the owner of the
key, you should verify the key (check its fingerprint or look for trusted
signatures). Then you can add this key to your public keyring by typing
<userinput><command>pgp</command> <option>-ka</option>
<replaceable>filename</replaceable></userinput> at the command line. If the key
is not certified with a trusted signature, you can't use it with &kmail; to
encrypt messages unless you have signed that key (use
<userinput><command>pgp</command> <option>-ks</option> <replaceable>identity of
the key</replaceable></userinput>).</para>

</sect2>

<sect2 id="pgp-encrypt-your-messages">
<title>Use Public Keys of other People - Encrypt your Messages</title>

<para>To send an encrypted message to somebody of whom you have a public key,
you simply create the message in the composer window. Before you send the
message, check the button with the lock symbol in the toolbar of the composer
window. Then send the message.</para>

<para>If &kmail; can't find a key for any of the recipients, it will display a
list containing all available keys. You can choose the appropriate key out of
the list (or cancel the action).  &kmail; might also inform you about errors
throughout the encryption process.</para>

<para>As mentioned above, you won't be able to read your own encrypted sent
mails if you don't check <guilabel>Always encrypt to self</guilabel> in the
setting's <guilabel>Security</guilabel> tab.</para>

</sect2>

</sect1>
</chapter>

<chapter id="customizing">
<title>Customizing &kmail;</title>

<para>&kmail;'s settings window gives you a number of ways to customize &kmail;
to your needs.</para>

<sect1 id="identity-tab">
<title>Identity Tab</title>

<para>Please see <link linkend="getting-started">Getting Started</link>
section.</para>

</sect1>

<sect1 id="network-tab">
<title>Network Tab</title>

<para>Please see <link linkend="setting-up-your-account">Setting up your
Account</link> section.</para>

</sect1>

<sect1 id="appearance-tab">
<title>Appearance Tab</title>

<sect2 id="appearance-tab-fonts">
<title>Fonts</title>

<para>This section allows you to change the type, size and character set of the
display fonts.</para>

</sect2>

<sect2 id="appearance-tab-colors">
<title>Colors</title>

<para>This section allows you to change the color of the text.
<guilabel>Recycle colors on deep quoting</guilabel> means that even text that's
quoted more than three times will appear in color.</para>

</sect2>

<sect2 id="appearance-tab-layout">
<title>Layout</title>

<para>This section lets you toggle the long folder list on and off.  The long
folder list lists folders all the way down the left side of the &kmail; window,
which lets you see more folders than in the default view, but it takes away some
space for viewing the text of the messages. With <guilabel>Display message
sizes</guilabel> selected there will be another column in the Header pane that
shows the messages' size in bytes. <guilabel>Thread list of message
headers</guilabel> will put all the messages in a kind of tree, so the replies
to a message are next to that message.</para>

<para><guilabel>Prefer plain text to HTML rendering</guilabel> will try to show
even <acronym>HTML</acronym> mails as plain text. <!-- fixme for 2.2 -->
It's a good idea to prefer
plain text, as security problems with <acronym>HTML</acronym> might show up some
day.</para>

</sect2>

<sect2 id="appearance-tab-profiles">
<title>Profiles</title>

<para>This section offers several default settings for colors and font
sizes.</para>

</sect2>

<sect2 id="appearance-tab-addressbook">
<title>Addressbook</title>

<para>This section allows you to choose between several address books, whereas
<guilabel>Traditional KMail</guilabel> is a very simple one and
<guilabel>Abbrowser</guilabel> is an advanced one. Please note the comments
under the selection that tell you the packages you need to use the advanced
variants.  The address books' database is independent, &ie; you will not see
addresses in the <guilabel>Abbrowser</guilabel> if you only entered them in the
<guilabel>Traditional KMail</guilabel> address book.</para>

</sect2>

</sect1>

<sect1 id="composer-tab">
<title>Composer Tab</title>

<sect2 id="composer-tab-general">
<title>General</title>

<para>The <guilabel>Phrases</guilabel> section lets you define the automatically
generated lines added to message replies, forwarded messages, and quoted
text. There are special &percnt;-denoted characters that will insert certain
values. These are shown at the top of the <guilabel>Phrases</guilabel> section:
<symbol>%D</symbol> to insert the date, <symbol>%S</symbol> to insert the
subject, <symbol>%F</symbol> to insert the sender, <symbol>%%</symbol> to insert
a percent sign, and <symbol>%_</symbol> to insert a space. <!-- fixme for 2.2: add %L -->
The <guilabel>Indentation</guilabel> field contains the character that will denote
quoted text (you will probably want to use the default).</para>

<para><guilabel>Automatically append signature</guilabel> lets you toggle
whether to automatically include your signature.</para>

<para><guilabel>Use smart quoting</guilabel> will break long lines but will try
to keep the correct quoting (e.g. the <quote>&gt;</quote> will always be at the
start of the line).</para>

<para><guilabel>Automatically sign messages using PGP</guilabel> lets you toggle
whether to automatically sign your messages by default. Of course you can still
deselect the icon in the composer window for each mail if necessary.</para>

<para><guilabel>Word wrap at column</guilabel> lets you turn word wrapping on
and off in the <guilabel>Composer window</guilabel> and lets you set the column
at which words will be wrapped.</para>

</sect2>

<sect2 id="composer-tab-subject">
<title>Subject</title>

<para>This section contains a list of prefixes for <quote>Reply</quote> and
<quote>Forward</quote>. If you receive messages that use prefixes different
to the standard ones, you can add them here so &kmail; will recognize (and 
optionally replace) them.</para>

</sect2>

<sect2 id="composer-tab-charset">
<title>Charset</title>

<para>In the <guilabel>Available charsets</guilabel> section you can manage the
charsets available for your own messages. The charsets in this list appear in
the composer's <menuchoice><guimenu>Options</guimenu><guimenuitem>Set
Encoding</guimenuitem></menuchoice> menu.</para>

<para>The <guilabel>Default charset</guilabel> section lets you choose the
default charset for your own messages. If you select <guilabel>Use own default
charset when replying or forwarding</guilabel>, the original message's charset
will be ignored and your charset will be used for replying and
forwarding.</para>

</sect2>

</sect1>

<sect1 id="mime-tab">
<title>&MIME; Headers Tab</title>

<para>The <guilabel>Mime Headers</guilabel> section lets you define fields that
&kmail; will use for its outgoing message headers. You can both invent new
fields and overwrite existing ones. This feature is probably only useful for
advanced users.</para>

</sect1>

<sect1 id="security-tab">
<title>Security Tab</title>

<para>See the <link linkend="pgp-settings"><application>PGP</application>
section</link>.</para>

</sect1>

<sect1 id="misc-tab">
<title>Miscellaneous Tab</title>

<variablelist>
<varlistentry>
<term><guilabel>Empty trash on exit</guilabel></term>
<listitem>
<para>The trash folder is cleared of messages when you quit &kmail; if this
option is selected.</para> 
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Send Mail in outbox Folder on Check</guilabel></term>
<listitem>
<para>All messages queued in the outbox folder will be sent whenever you check
for new mail.</para> 
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Automatically send receive and read
confirmations</guilabel></term>
<listitem>
<para>With this option, a confirmation is automatically send to the sender of a
message if he requested that. If you disable this option, no confirmation will
be sent.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Compact all folders on exit</guilabel></term>
<listitem>
<para>This will compact all folders every time you exit &kmail;. Compacting
folders means that the messages you removed from a folder will really be
removed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Confirm before emptying folders</guilabel></term>
<listitem>
<para>To empty a folder means that its messages get transferred to the
<guilabel>trash</guilabel> folder (and only get deleted if they are already in the
<guilabel>trash</guilabel> folder).  So although you normally won't lose any
mail, you can still activate a confirmation dialog that will ask you if you
really want to emtpy the folder.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Use external editor instead of composer</guilabel></term>
<listitem>
<para>If you don't like the <guilabel>Composer</guilabel> you can use any
editor. Note that the <guilabel>Composer</guilabel> window will still open and
the external editor will open as soon as you type just one character in the body
of the message. If you're done, save the text and exit the editor. The text will
now appear in the <guilabel>Composer</guilabel> window.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>New Mail Notification</guilabel></term>
<listitem>
<para>This let's you configure actions for the arrival of new mail. Note that
automatically fetching mail can be configured in your account settings under <link
linkend="receiving-mail">Incoming Mail</link>.</para>
</listitem>
</varlistentry>
</variablelist>

</sect1>

</chapter>

<chapter id="importing">
<title>Using other Mailbox Files with &kmail;</title>

<para>This section is for all of the users who need to move email messages from
their previous email client over to &kmail;. &kmail; stores its mail using the
<literal>mbox</literal> format, one of the most widely used mailbox formats on
&UNIX; systems. Mbox mailboxes store messages in one file, identifying where
messages start and end with a <literal>From</literal> line (do not mix it up
with the <literal>From:</literal> header that contains the message's sender).
For many &UNIX; mailers, all you must do is move your mailboxes to <filename
class="directory">~/Mail</filename> (or make <filename
class="symlink">Mail</filename> a symbolic link to the folder containing your
mailboxes), make sure they are writeable by your user, and launch &kmail;. The
mailboxes should now show up correctly in &kmail;.</para>

<para>If your old mailboxes are not in mbox format, see below for instructions
on importing some other common formats. Take a look at the
<ulink url="http://kmail.kde.org/download.html">Download section of &kmail;'s
homepage</ulink> if your mailbox format is not listed here.</para>

<warning><para>Do not use a second mail client that accesses the files in
<filename class="directory">~/Mail</filename> while &kmail; is running or
you might lose messages. This section only explains how to import mailboxes
to &kmail; once, it's not useful to you if you're planning to use several
mail clients for your mailboxes in the future.</para></warning>

<variablelist>

<varlistentry>
<term><application>Eudora Lite</application>/<application>Eudora
Pro</application></term>
<listitem>
<para><application>Eudora</application> uses the mbox format in its mail
files. To use them with &kmail;, make sure that your
<application>Eudora</application> mailboxes have been compacted, then copy the
<literal role="extension">.mbx</literal> files (&Windows;
<application>Eudora</application>) or <application>Eudora</application> mailbox
files (&Mac; <application>Eudora</application>) to your <filename
class="directory">~/Mail</filename> directory. You don't need to copy the
<filename>index</filename> files. Once you start &kmail;, the mailboxes should
appear in the Folders pane and the messages should be accessible in the Headers
pane.</para>
<para>If messages do not appear in the Headers pane, your mailbox files may
still contain &Windows; or &Mac; line feed characters. Use your favorite
text editor, the <application>recode</application> command or a scripting
language to change the &Windows; or &Mac; line feeds to &UNIX; line
feeds.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>MMDF</term>
<listitem>
<para>This format is close enough to the mailbox format that &kmail; should be
able to use these mailboxes if you just copy them to your
<filename class="directory">~/Mail</filename> directory. However, MMDF mailboxes
have not been tested with &kmail;, so your results may vary.  If you can get
this format to work with &kmail;, please let us know so we can include more
specific directions in the next documentation release.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>MH mailboxes</term>
<listitem>
<para>MH mailboxes are directories containing files that correspond to each
message in that mailbox.  A shell script to convert MH mailboxes to mbox
mailboxes, <command>mh2kmail</command>, is included at least in the source
releases of &kmail;, but maybe not in the packaged releases. Running this script
on a MH folder will convert it to an mbox file.  We strongly suggest that you
back up your MH mail folders before you use this script.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>Forte <application>Agent</application></term>
<listitem>
<para>In <application>Agent</application>:</para>
<procedure>
<step>
<para>Select the messages to export</para>
</step>
<step>
<para>Select <menuchoice><guimenu>FILE</guimenu><guimenuitem>SAVE MESSAGES
AS</guimenuitem></menuchoice></para>
</step>
<step>
<para>Mark the <guilabel>UNIX FORMAT</guilabel> and <guilabel>SAVE
RAW</guilabel> boxes</para>
</step>
<step>
<para>Give File a  <literal role="extension">.txt</literal> extension and
save.</para>
</step>
</procedure>

<para>In &kde;:</para>

<procedure>
<step>
<para>Move previously saves file to correct <filename
class="directory">~/Mail</filename> folder</para>
</step>
<step>
<para>Rename file without <literal role="extension">.txt</literal>
extension</para>
</step>
</procedure>
<para>When you open &kmail; the new folder with appropriate messages will be
there.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>&Netscape; Mail</term>
<listitem>
<para>Copy your &Netscape; mail files from <filename
class="directory">~/nsmail/</filename> to <filename
class="directory">~/Mail</filename> and make sure they are writeable (only by
your user, of course).  The mailboxes will show up in &kmail; the next time you
start it.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><application>Pegasus Mail</application></term>
<listitem>
<para><application>Pegasus</application> for win32 uses single files for Mail
folders similar to &kmail;. <application>Pegasus mail</application> folder files
have the extension <literal role="extension">.pmm</literal> but they are the same format as mbox except the messages
do not start with the <literal>From</literal> header, but with a control character. To work around
this, replace each instance of the control character with <literal>From
aaa@aaa Mon Jan 01 00:00:00 1997</literal>. This <literal>From</literal>
line should be the first line of every message, before the
<literal>Received:</literal> and other headers. Make sure to use a text editor
that lets you save the files in &UNIX; format or create new folders in
<application>Pegasus</application> that are in &UNIX; format and copy your mails
there.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>Maildir / Outlook Express / xfmail</term>
<listitem>
<para>Tools to convert these formats are available at the
<ulink url="http://kmail.kde.org/download.html">Download section of &kmail;'s
homepage</ulink>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>Lotus <application>Notes</application>, BeOS Mail files, <application>cc:
Mail</application>, &etc;...</term>
<listitem>
<para>First you should have a look at <ulink
url="http://kmail.kde.org/download.html">Download section of &kmail;'s homepage</ulink> if there
are tools to convert mails.</para>
<para>Mail programs not listed here or on the homepage probably do not work with &kmail; as they use
proprietary mail formats that &kmail; cannot understand. However, there is no
harm in trying! If the mailbox file looks similar to the mbox format, try
copying the mailbox file (remember, the index file is not needed) to your
<filename>~/Mail</filename> directory and see what happens if you start
&kmail;. If you get mailboxes from your favorite mail client to work in &kmail;,
please tell us how you did it so that we can include directions in a future
revision of this documentation. </para>
</listitem>
</varlistentry>

</variablelist>
</chapter>

<chapter id="menus">
<title>Menus and Keyboard Shortcuts</title>

<para>Each menu item is discussed below. When there is a keyboard shorcut that
performs a menu item function, it is listed after the menu item.</para>

<sect1 id="main-mail-reader-window">
<title>The Main Mail Reader window</title>

<sect2 id="reader-file-menu">
<title><guimenu>File</guimenu> Menu</title>

<variablelist>
<varlistentry>
<term>
<menuchoice>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>New Mail Client...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Creates a new <guilabel>Mail Reader</guilabel> window.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
</shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>Save <accel>A</accel>s...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Saves the currently displayed message to a text file, including all the headers
and attachments.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
</shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>P</accel>rint...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Prints the currently displayed message.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>Compact all <accel>f</accel>olders</guimenuitem>
</menuchoice></term>
<listitem>
<para>Will compact all folders, &ie; it will really move and delete the messages
on disk according to how you have moved and deleted them in &kmail;.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>L</keycap></keycombo>
</shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>Check <accel>M</accel>ail</guimenuitem>
</menuchoice>
</term>
<listitem><para>Checks for new mail in all your accounts, except those that
have <guilabel>Exclude from &quot;Check Mail&quot;</guilabel> enabled.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>F</accel>ile</guimenu>
<guisubmenu>Check Mail in...</guisubmenu>
</menuchoice>
</term>
<listitem>
<para>Submenu that lets you check for new mail from a particular account.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>Send Queued</guimenuitem>
</menuchoice></term>
<listitem>
<para>Sends the messages that are in your outbox.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>Address <accel>B</accel>ook...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up the <link linkend="the-address-book">Address Book</link>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>W</keycap></keycombo>
</shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>C</accel>lose</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Closes the current <guilabel>Mail Reader</guilabel> window or exits
&kmail; if there's only this one window.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<sect2 id="reader-edit-menu">
<title><guimenu>Edit</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Z</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Und<accel>o</accel></guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Revoke you last move or delete action. Note that you cannot undo a deletion
in the trash.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>C</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>C</accel>opy text</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Copies selected text to the clipboard.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>D</keycap>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>D</accel>elete</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Moves the selected messages in the trash folder. If the selected
messages are already in the trash folder, they will really be deleted.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>S</keycap>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>S</accel>earch messages...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up a search window that lets you search for messages with
certain characteristics, &eg; a certain subject. Start the search by entering
some values and press <guibutton>Search</guibutton>. Click on one of the
resulting messages and it will appear in the <guilabel>Message
pane</guilabel>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>F</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>F</accel>ind in message...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Lets you search for a string in the current message.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>K</keycap>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Select all messages</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selects all messages in the current folder.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>


<sect2 id="reader-view-menu">
<title><guimenu>View</guimenu> Menu</title>

<!-- LW: This really needs to be broken up to one varlistentry per menu item -->

<variablelist>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem><accel>B</accel>rief</guimenuitem>
</menuchoice>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem><accel>F</accel>ancy Headers</guimenuitem>
</menuchoice>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem><accel>S</accel>tandard Headers</guimenuitem>
</menuchoice>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem><accel>L</accel>ong Headers</guimenuitem>
</menuchoice>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem><accel>A</accel>ll Headers Headers</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Changes the number of headers that are displayed and the formatting of the
headers in the <guilabel>Message pane</guilabel>.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem>Iconic Attachments</guimenuitem>
</menuchoice>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem>Smart Attachments</guimenuitem>
</menuchoice>
<menuchoice>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem>Inlined Attachments</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Changes the way that attachments appear in the <guilabel>Message
pane</guilabel>.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>


<sect2 id="reader-folder-menu">
<title><guimenu>Folder</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem><accel>C</accel>reate...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens the <guilabel>Create Folder</guilabel> dialog which lets you create
a new folder.  You can make this new folder a sub folder if you choose a parent
folder using the <guilabel>File under</guilabel> selection. If you're going to
use this folder for a mailing list you may want to add the mailing list address
in the <guilabel>Associated Mailing List</guilabel> tab. You can then use
the <menuchoice><guimenu>Message</guimenu><guimenuitem>Reply
list...</guimenuitem></menuchoice> menu item. It will open a reply with the
mailing list address in the <guilabel>To:</guilabel> field (&ie; it will ignore
the <token>Reply-To</token> of the message).  You can also click the
<mousebutton>middle</mousebutton> mousebutton in the Folders pane to post to a
mailing list that is associated with that folder.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem><accel>M</accel>odify...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up the <guilabel>Modify Folder</guilabel> dialog which lets you
change the settings for the selected folder.</para> 
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem>C<accel>o</accel>mpact</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Compacts the folder file to reduce its disk space usage. Use this command
if your mailboxes seem to be much larger than they ought to be.
<!-- TODO: explain? --></para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem><accel>E</accel>mpty</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Moves all of the messages in the selected folder into the trash folder.
If the selected folder is the trash folder, the messages are permanently
deleted.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem><accel>R</accel>emove</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Removes the selected folder.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem>Prefer HTML to plain text</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>This will show <acronym>HTML</acronym> messages using
<acronym>HTML</acronym> rendering. For security reasons, we recommend to only
activate this for trusted messages.</para> 
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu>F<accel>o</accel>lder</guimenu>
<guimenuitem>Thread messages</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Shows the messages in the <guilabel>Header pane</guilabel>
in a tree-like list, with replies showing up directly under the message
they reply to.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<sect2 id="reader-message-menu">
<title><guimenu>Message</guimenu> Menu</title>

<variablelist>
<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>New Message...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens the <guilabel>Composer</guilabel> window so you can write a new
mail.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>N</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>N</accel>ext</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selects the next message in the Headers pane. The keyboard shortcut
<keycap>Right Arrow</keycap> also performs this action.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>+</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Next Unread</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selects the next unread message in the Headers pane.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>P</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>P</accel>revious</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selects the previous message in the Headers pane.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>-</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Previous Unread</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selects the previous unread message in the Headers pane.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>R</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>R</accel>eply...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up the <guilabel>Composer</guilabel> window with the contents of the
selected message's <guilabel>Reply-To</guilabel> field in the
<guilabel>To:</guilabel> field.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>A</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Reply <accel>A</accel>ll...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up the <guilabel>Composer</guilabel> window and copies the contents
of the selected message's <guilabel>Reply-To:</guilabel> and
<guilabel>To:</guilabel> fields into the <guilabel>To:</guilabel> field, and the
<guilabel>Cc:</guilabel> field into the <guilabel>Cc:</guilabel> field of the
<guilabel>Composer</guilabel> window.</para> 
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>L</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Reply <accel>L</accel>ist...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up the <guilabel>Composer</guilabel> with the <guilabel>To:</guilabel>
field set to the mailing list address. Of course this will only work
if you configured the current folder to be associated with a mailing list.
Otherwise the <guilabel>To:</guilabel> field will be empty.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice>
<shortcut>
<keycap>F</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>F</accel>orward...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Forwards the message to a new recipient. The message's text will be copied
into the body of the new message with a text marking the forwarded part. Attachments
will be forwarded, too.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>E</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>R<accel>e</accel>direct</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Works like forward, except that the message stays the same (even
the <guilabel>From</guilabel> field). The user who redirected the message is
added in special header fields (<literal>Redirect-From</literal>,
<literal>Redirect-Date</literal>, <literal>Redirect-To</literal>,
&etc;).</para> 
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>B</accel>ounce...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Sends the message back to the sender with a notice that it cannot be
delivered. This is nearly exactly the message you get from a mail relay if the
user does not exist. Some people use this option to "reply" to spam.</para> 
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Send Again...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Sends the message again.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guisubmenu>Set <accel>E</accel>ncoding</guisubmenu>
</menuchoice>
</term>
<listitem>
<para>Lets you choose the character encoding to be used in the Message
Pane.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>T</keycap>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Edi<accel>t</accel>...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Edits the selected message if it is editable. Only messages in the
<guilabel>outbox</guilabel> and <guilabel>drafts</guilabel> folder can be edited.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guisubmenu>Set Status</guisubmenu>
</menuchoice>
</term>
<listitem>
<para>Allows you to change the status of the selected message to one of the
below:</para>

<itemizedlist>
<listitem>
<para><guimenuitem>New</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem>Unread</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem>Read</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem>Replied</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem>Queued</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem>Sent</guimenuitem></para>
</listitem>
</itemizedlist>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guisubmenu><accel>M</accel>ove to</guisubmenu>
</menuchoice>
</term>
<listitem>
<para>Moves all of the selected messages to a certain folder.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guisubmenu><accel>C</accel>opy to</guisubmenu>
</menuchoice>
</term>
<listitem>
<para>Copies all of the the selected messages to a certain folder.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>J</keycap></keycombo>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Apply Filters</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Applies your filters to the selected messages.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>View Source...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Shows the message and its complete headers in plain text format in a new
window. This can be useful to find out the origin of a mail. You should know
that it's easy to fake the <literal>From:</literal> header of a mail, but
the receiver can still find out which mail servers have been used by looking
at the <literal>Received:</literal> lines in the header.</para>
</listitem>
</varlistentry>

</variablelist>
</sect2>


<sect2 id="reader-settings-menu">
<title><guimenu>Settings</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Show <accel>T</accel>oolbar</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>If enabled, the Toolbar is visible (the Toolbar is the one with the icon
to compose a new message &etc;).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Show St<accel>a</accel>tusbar</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>If enabled, the Statusbar is visible (the Statusbar is the small one on
the bottom which shows useful short messages and link targets).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Configure <accel>K</accel>ey Bindings...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens a window that lets you configure the keyboard shortcuts for many
menu commands.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Configure Tool<accel>b</accel>ars...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens a window that lets you choose which icons are visible in the
toolbar.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Configuration...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens the <link linkend="customizing">Configure</link> window.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>F<accel>i</accel>lter Rules...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens the <link linkend="filters">Filter Rules</link> window.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<sect2 id="reader-help-menu">
<title><guimenu>Help</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>F1</keycap>
</shortcut>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem><accel>C</accel>ontents</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Invokes the &kde; help system with the &kmail; help pages
displayed.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul"><keycap>Shift</keycap><keycap>F1</keycap></keycombo>
</shortcut>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem>What's <accel>T</accel>his?</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selecting this option changes the cursor to an arrow with a question
mark. If you now click on any component of the control panel pane, you get short
context sensitive help about that item (sorry, not implemented yet).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem><accel>R</accel>eport Bug...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens a window for you to report a bug. You have to be connected
to the Internet to send the bug report.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem><accel>A</accel>bout KMail</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Displays information about &kmail; (version, authors, license agreement).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem>About <accel>K</accel>DE</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Displays information about &kde;.</para>
</listitem>
</varlistentry>

</variablelist>
</sect2>
</sect1>


<sect1 id="composer-window-menus">
<title>The Composer Window</title>

<sect2 id="composer-file-menu">
<title><guimenu>Message</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Return</keycap></keycombo>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>S</accel>end</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Sends the message immediately.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>Q</accel>ueue</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Queues the message in the outbox for sending it later.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem>Save in <accel>d</accel>rafts folder</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Save the message in the <guilabel>drafts</guilabel> folder so you can edit
and send it later.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essages</guimenu>
<guimenuitem><accel>I</accel>nsert File...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Inserts the selected text file into the message, starting at the cursor
position.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>P</accel>rint...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Prints the current text.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>A</accel>ddressbook...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up the address book.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>N</accel>ew Composer...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens up a new <guilabel>Composer</guilabel> window.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>W</keycap></keycombo>
</shortcut>
<guimenu><accel>M</accel>essage</guimenu>
<guimenuitem><accel>C</accel>lose</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Closes this <guilabel>Composer</guilabel> window.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>


<sect2 id="composer-edit-menu">
<title><guimenu>Edit</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Z</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Und<accel>o</accel></guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Undo your steps in editing the current mail.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Shift</keycap><keycap>Z</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Red<accel>o</accel></guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Redo your steps in editing the current mail.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>X</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>C<accel>u</accel>t</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Cutting text works as with most editors.  You can also select text and
drag it to a new position.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul"><keycap>Ctrl</keycap><keycap>C</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>C</accel>opy</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Copying text works as with most editors. You can also select text while
holding the &Ctrl; key, and drag it to a new position, to have it copied and not
cut.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>V</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>P</accel>aste</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Pasting works the same as for most editors.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>A</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Select <accel>A</accel>ll</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Selects all of the text in your message.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>F</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>F</accel>ind...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Finds strings in the message.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>R</keycap></keycombo>
</shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>R</accel>eplace...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Lets you replace strings in your message with other strings.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Cl<accel>e</accel>an Spaces</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>This replaces multiple spaces with single spaces in the current
selection.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>S</accel>pelling...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Uses &kspell; to check the spelling in the body of your message. Note that
you have to configure &kspell; with <menuchoice><guimenu>Settings</guimenu>
<guimenuitem>Spellchecker...</guimenuitem></menuchoice> if you use it for the
first time.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<sect2 id="composer-view-menu">
<title><guimenu>View</guimenu> Menu</title>

<para>This menu lets you toggle the display of the header fields and other
options in this <guilabel>Composer</guilabel> window.</para>

<para>Options available are:</para>

<itemizedlist>
<listitem>
<para><guimenuitem><accel>A</accel>ll Fields</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>I</accel>dentity</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>M</accel>ail Transport</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>F</accel>rom</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>R</accel>eply to</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>T</accel>o</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>C</accel>c</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>B</accel>cc</guimenuitem></para>
</listitem>
<listitem>
<para><guimenuitem><accel>S</accel>ubject</guimenuitem></para>
</listitem>
</itemizedlist>

<para>Currently visible items have a checkmark shown next to their name in the
menu.</para>

</sect2>

<sect2 id="composer-options-menu">
<title><guimenu>Options</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>O</accel>ptions</guimenu>
<guimenuitem><accel>U</accel>rgent</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Sets the priority of the message to Urgent. The receiver's mail client has to support
this or it will have no effect. &kmail; itself does not support priorities for
incoming messages.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>O</accel>ptions</guimenu>
<guimenuitem><accel>C</accel>onfirm Delivery</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>If you choose this option, you request a confirmation email once your
message is successfully delivered to its destination mail server. This has to be
also supported from the receiver's side in order to work.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>O</accel>ptions</guimenu>
<guimenuitem>Confirm <accel>r</accel>ead</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>If you choose this option, you request a confirmation email once your
message is downloaded and read by its recipient. This has to be supported and
enabled by the receiver's mail client in order to work.
<!-- TODO: kmail... --></para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>O</accel>ptions</guimenu>
<guisubmenu>Set <accel>E</accel>ncoding</guisubmenu>
</menuchoice>
</term>
<listitem>
<para>Set the charset encoding of this message. It will appear in the header of
the outgoing mail.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>O</accel>ptions</guimenu>
<guimenuitem><accel>W</accel>ordwrap</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Toggle the automatic wordwrap. It may be useful to turn it off if you want
to paste long lines that shouldn't wrap.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>


<sect2 id="composer-attach-menu">
<title><guimenu>Attach</guimenu> Menu</title>

<para>This menu lets you select attachment options.</para>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem>Append S<accel>i</accel>gnature</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Appends your signature to the end of the message.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem>Attach <accel>P</accel>ublic Key...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Attaches the corresponding <application>PGP</application>/<application>GnuPG</application>
key to your message using the default encoding.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem>Attach My <accel>P</accel>ublic Key</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Attaches your <application>PGP</application>/<application>GnuPG</application>
public key to your message using the default encoding.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem><accel>A</accel>ttach...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Attaches a file to the message using the encoding you select in the
dialog. The dialog allows to select more than one file using the &Ctrl; key.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem><accel>R</accel>emove</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Removes the attachment that is selected in the attachment window.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem><accel>S</accel>ave...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Saves the attachment that is selected in the attachment window to a
file.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>A</accel>ttach</guimenu>
<guimenuitem>Pr<accel>o</accel>perties...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Displays the properties of the attachment that is selected in the
attachment window.</para>
</listitem>
</varlistentry>

</variablelist>

</sect2>

<sect2 id="composer-settings-menu">
<title><guimenu>Settings</guimenu> Menu</title>

<variablelist>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Show <accel>T</accel>oolbar</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>If enabled, the Toolbar is visible (the Toolbar is the one with the icon
to send the message &etc;).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Show St<accel>a</accel>tusbar</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>If enabled, the Statusbar is visible (the Statusbar is the small one at
the bottom which shows useful short messages).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Configure <accel>K</accel>ey Bindings...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens a window that lets you configure the keyboard shortcuts for many
menu command.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Configure Tool<accel>b</accel>ars...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Opens a window that allows you to decide which icons appear in the
toolbar.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>
<menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem><accel>S</accel>pellchecker...</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>Allows you to configure &kspell;, &kde;'s spellchecker.</para>
</listitem>
</varlistentry>

</variablelist>
</sect2>


<sect2 id="composer-help-menu">
<title><guimenu>Help</guimenu> Menu</title>

<para>
The entries in this menu have the same meaning as <link linkend="reader-help-menu">the
entries in the Mailreader's help menu</link>.</para>

</sect2>
</sect1>
</chapter>

<chapter id="faq">
<title>Frequently Asked Questions (&FAQ;)</title>

<qandaset id="faq-set">

<qandaentry>
<question><para>Does &kmail; support <acronym>IMAP</acronym>?</para></question>
<answer><para>Not yet. However, IMAP support is now in active
development and will probably be part of the &kmail; version that comes with &kde; 2.2.
Until then, you can receive mails via <acronym>IMAP</acronym>
by using <application>fetchmail</application>:</para>

<procedure>
<step><para>Create a file <filename>~/.fetchmailrc</filename> which contains the
following lines:</para>
<screen><userinput>poll &lt;your-mail-server&gt;
proto IMAP
user <replaceable>your-username</replaceable>
pass <replaceable>your-password</replaceable></userinput></screen>

<para>If your mail username and your local username differ you have to add the
following entry:</para>

<screen>is <replaceable>local-username</replaceable></screen>
</step>
<step>
<para>Execute <userinput><command>chmod</command> <option>700</option>
<filename>~/.fetchmailrc</filename></userinput></para></step>
<step><para>Create a local account in &kmail;</para></step>
<step><para>Enter <userinput>fetchmail</userinput> in the field
<guilabel>Precommand</guilabel>.  This is not necessary if you have a permanent
connection to the net. In that case you are better off leaving
<application>fetchmail</application> running as a daemon. This also has the
advantage that you won't have to add your password to
<filename>~/.fetchmailrc</filename>, you will be asked for it when the daemon
starts.</para>
</step>
<step><para>Check your mail</para></step>
</procedure>
</answer>
</qandaentry>

<qandaentry>
<question><para>Are there any known bugs in &kmail;?</para></question>

<answer>
<para>You can find a list of submitted bugs at <ulink
url="http://bugs.kde.org/db/pa/lkmail.html">bugs.kde.org</ulink>. Note that not all
these bugs are valid, all in all we think that &kmail; is now a very good piece
of software.</para>

<para><warning><para>However, you should not run &kmail; while another mail client is already
accessing the files in <filename class="directory">~/Mail</filename>. If you try to do so,
you might lose messages.</para></warning></para>
</answer>
</qandaentry>

<qandaentry>
<question><para>&kmail; doesn't display <acronym>HTML</acronym> mail as
<acronym>HTML</acronym>, I can only see the source.</para></question>
<answer><para>Select <menuchoice><guimenu>Folder</guimenu><guimenuitem>Prefer
HTML to plain text</guimenuitem></menuchoice>. For security reasons you should
only do so for trusted mails. Note that plugins (like <trademark
class="registered">Macromedia</trademark> <application>Flash</application>) will
not be displayed in &kmail;.</para></answer>
</qandaentry>

<qandaentry>
<question><para>Does &kmail; support <acronym>APOP</acronym>?</para></question>
<answer><para>Yes, <acronym>APOP</acronym> is used automatically if it's
available. There's currently no feedback if it's used, and no way to
check.</para></answer>
</qandaentry>

<qandaentry>
<question><para>Can I use &kmail; and
<application>procmail</application>?</para></question>
<answer><para>Yes, but it's important to do it the right way or you might lose
mail.  Do <emphasis>not</emphasis> let procmail sort the mail to <filename
class="directory">~/Mail</filename>, but to some other directory which you then
access by &kmail; as a <guilabel>Local Mailbox</guilabel>.  That is, you have to
add another account in the <guilabel>Network</guilabel> tab of the <guilabel>Configure</guilabel>
dialog. Also see the &FAQ; about lockfiles.</para></answer>
</qandaentry>

<qandaentry id="pgp-faq">
<question><para>What should I know if I want to use
<application>PGP</application>/<application>GnuPG</application> with
&kmail;?</para></question>

<answer><para>&kmail; provides a simple and easy to use interface for basic
 functions of these programs. Still you should understand how these programs
 work and what might make them insecure. Important issues:</para>

<itemizedlist>
<listitem>
<para>You <emphasis>really</emphasis> should test if encryption works
before you use it. &kmail; relies on
<application>PGP</application>/<application>GnuPG</application>'s error strings,
which often change between different versions.</para>
</listitem>
<listitem>
<para>Trusting a foreign public key without checking it is no good idea.</para>
</listitem>
<listitem>
<para>&kmail; will not encrypt messages with an untrusted (unsigned) public key.</para>
</listitem>
<listitem>
<para>As most other mail clients, &kmail; can encrypt your messages, but
<emphasis>not</emphasis> your attachments. You have to encrypt them manually
before you attach them.</para>
</listitem>
<listitem>
<para><!-- fixme for kde 2.2 -->There's a bug in &kmail; 1.1.99 (which comes with &kde; 2.0 and 2.0.1)
that makes <application>PGP</application> not work if you use a different
language than English. You can work around it this way (&kmail; will still use
your favourite language):</para>
<procedure>
<step>
<para>Rename <filename>/usr/bin/kmail</filename> to
<filename>/usr/bin/kmail.original</filename></para>
</step>
<step>
<para>Install in <filename class="directory">/usr/bin</filename> the following
shell script, calling it <filename>kmail</filename> and making sure it is owned
by <systemitem>root</systemitem> and has <literal>755</literal> permissions
(<literal>rwxr-xr-x</literal>):</para>
<screen>
<userinput>#!/bin/bash
LANGUAGE=en
export LANGUAGE
kmail.original $*</userinput>
</screen>
</step>
</procedure>
</listitem>
<listitem>
<para>&kmail; is <emphasis>not</emphasis> able to use different keys
for multiple identities.</para>
</listitem>
</itemizedlist>
</answer>
</qandaentry>

<!-- fixme: remove for KDE 2.2 -->
<qandaentry>
<question><para>Which version of &kmail; supports which version of
<application>PGP</application>/<application>GnuPG</application>?</para></question>
<answer>
<para>Since &kmail; 1.2 you can choose which encryption tool to use if you have
more than one. All the programs that are listed in the <guilabel>Security</guilabel>
tab of the <guilabel>Configure</guilabel> dialog are supported.</para>
</answer>
</qandaentry>

<qandaentry>
<question><para>How do I have to set up &kmail; to use (&ie; read and write)
messages with non-Latin1 characters?</para></question>
<answer><para>In the
<guilabel>Appearance</guilabel>/<guilabel>Fonts</guilabel> section of the
<guilabel>Configure</guilabel> dialog, select the correct <guilabel>Character set</guilabel> for
the message list and the folder list. If <guilabel>unicode
(iso10646-1)</guilabel> is available, you should choose it. In case messages are
still not shown correctly, you can always try other settings from the
<menuchoice><guimenu>Message</guimenu><guimenuitem>Set
Encoding</guimenuitem></menuchoice> menu.  For writing messages, go to
<guilabel>Composer</guilabel>/<guilabel>Charset</guilabel> and configure the
default charset you want to use for your own mails.</para></answer>
</qandaentry>

<qandaentry>
<question><para>Spellchecking doesn't recognize non-english
characters.</para></question>
<answer><para>Before you can use spellchecking the first time, you have to
configure it. You can do so in the <guilabel>Composer</guilabel> window's menu
under <menuchoice><guimenu>Settings</guimenu>
<guimenuitem>Spellchecker...</guimenuitem></menuchoice>.</para></answer>
</qandaentry>

<qandaentry>
<question><para>How do I use my
<application>Eudora</application>/&Netscape;/<application>Outlook</application>/...
mail folders in  &kmail;?</para></question> 
<answer><para>See the section <link linkend="importing">Using other Mailbox
files With &kmail;</link>.</para></answer>
</qandaentry>

<qandaentry>
<question><para>How can I use mail folders that are not in <filename
class="directory">~/Mail/</filename>?</para></question>

<answer><para>Simply create a symlink in your <filename
class="directory">~/Mail</filename> directory using
<userinput><command>ln</command> <option>-s</option>
<filename>/somewhere/Mail/mymailboxfile</filename>
<filename class="symlink">~/Mail/remote</filename></userinput>. When you start
&kmail; you will see a new folder with the name <guilabel>remote</guilabel> that
contains the mails in your remote folder. If you want to add a whole remote mail
directory use <userinput><command>ln</command> <option>-s</option>
<filename>/somewhere/Mail</filename> <filename
class="symlink">~/Mail/.remotedir.directory</filename></userinput>.  For that
case you also need to create a new empty folder named <filename
class="directory">remotedir</filename> with &kmail;. The folder <filename
class="directory">remotedir</filename> will then contain all remote mailbox
folders as subfolders.</para></answer>
</qandaentry>

<qandaentry>
<question><para>My folders keep growing even when I delete
messages.</para></question>
<answer><para>To really remove deleted messages from disk, you have to compact
your folders. To do so automatically, open up the
<menuchoice><guimenu>Settings</guimenu><guimenuitem>Configuration...</guimenuitem></menuchoice>
window, select the <guilabel>Miscellaneous</guilabel> tab and select
<guilabel>Compact all folders on exit</guilabel>. Maybe you want to select
<guilabel>Empty trash on exit</guilabel>, too. This will remove all the messages
in the trash folder whenever you exit &kmail;.</para></answer>
</qandaentry>

<qandaentry>
<question><para>Can I use encryption with my normal (non-<acronym>SSL</acronym>)
<acronym>POP3</acronym> account?</para></question>
<answer><para>If your <acronym>POP3</acronym> server runs an
<application>ssh</application> daemon, you can use ssh to tunnel your
<acronym>POP3</acronym> connection using the following command:</para>

<para><userinput><command>ssh</command> <option>-L 110:127.0.0.1:110
user@host</option></userinput></para>

<para>Modify your &kmail; configuration to fetch the mail via
<acronym>POP3</acronym> from <userinput>localhost</userinput> and ssh will tunnel
the connection for you. You need to be root to execute this
command. Alternatively, change the first port number, &ie; the first occurence
of <userinput>110</userinput>, to something above 1024 and configure &kmail; to
use that port. <note><para>If non-encrypted mails have already been sent
via internet, the (only) advantage of using <application>ssh</application> is
that your password will be sent encrypted to the <acronym>POP3</acronym>
server.</para></note></para>
</answer>
</qandaentry>

<qandaentry>
<question><para>Does &kmail; lock the folders it uses?</para></question>
<answer><para>&kmail; does not lock the files in <filename
class="directory">~/Mail</filename>.</para>
<para>To avoid the risk of losing mail <emphasis>if using a local
account</emphasis> it is necessary to ensure that &kmail; uses the same type of
locking as your mail delivery agent.</para>

<para>There are five different locking options you can use:</para>

<itemizedlist>
<listitem><para><guilabel>Mutt dotlock (recommended)</guilabel></para></listitem>
<listitem><para><guilabel>Mutt dotlock privileged</guilabel></para></listitem>
<listitem><para><guilabel>Procmail lockfile</guilabel></para></listitem>
<listitem><para><guilabel>FCNTL</guilabel> (default)</para></listitem>
<listitem><para><guilabel>none (use with care)</guilabel></para></listitem>
</itemizedlist>

<para><guilabel>Mutt dotlock</guilabel> and <guilabel>Mutt dotlock
privileged</guilabel> will both use a small utility that comes with mutt
called <command>mutt_dotlock</command>. <guilabel>Mutt dotlock</guilabel>
can be used in the same way as the <guilabel>Procmail lockfile</guilabel>
option, with the same limitation with regards to the <filename
class="directory">/var/spool/mail/</filename> folders. However, the
<guilabel>Mutt dotlock privileged</guilabel> option can create lock files
in the <filename class="directory">/var/spool/mail</filename> directory. 
<command>mutt_dotlock</command> is a setgid program and this option will
run it in setgid mode. Please note that these options will only work if
mutt is installed on your system.</para>

<para><guilabel>Procmail lockfile</guilabel> will use a small utility that comes
with <application>procmail</application> called <command>lockfile</command>. You
can use this if your mail folder is in a directory where you have write
permissions.  This will not work on your <filename
class="directory">/var/spool/mail/user</filename> file in most cases.  It will
create <filename>.lock</filename> files on your account when &kmail; is checking
for new mail. Please note that this will only work if
<application>procmail</application> is installed on your system.</para>

<para><guilabel>FCNTL</guilabel>: the default option will use the
<function>fcntl()</function> system call.</para>

<para>If you don't want to use any locking, the <guilabel>none</guilabel> option
is what you want. However, there are risks of losing mail when no locking is
used.</para>

</answer>
</qandaentry>

<qandaentry>
<question><para>How do I leave mail on the server?</para></question>
<answer><para>Open up the
<menuchoice><guimenu>Settings</guimenu><guimenuitem>Configuration...</guimenuitem>
</menuchoice> window. Click on the <guilabel>Network</guilabel> tab. Select your
account from the account list and click the <guilabel>Modify...</guilabel>
button. This dialog contains the <guilabel>Delete mail from server</guilabel>
setting which you must not select.</para></answer>
</qandaentry>

<qandaentry>
<question><para>How do I automatically insert a text footer within my
mails?</para></question>
<answer><para>The text footer is called a signature file. Select
<menuchoice><guimenu>Settings</guimenu>
<guimenuitem>Configuration...</guimenuitem></menuchoice>
Look in the <guilabel>Identity</guilabel> tab for the <guilabel>Specify
signature below</guilabel> field. Select the radio button and type your
signature below.</para></answer> 
</qandaentry>

<qandaentry>
<question><para>Why does &kmail; keep asking me for the location of my signature
file?</para></question>
<answer><para>&kmail; will ask you the location of your signature file if you
have checked the option <guilabel>Use a signature from file</guilabel> in the
<guilabel>Composer</guilabel> tab of the <guilabel>Configure</guilabel> dialog,
but have not specified a signature file in the <guilabel>Identity</guilabel>
tab. You should either specify a signature file or deselect <guilabel>Use a
signature from file</guilabel>.</para></answer>
</qandaentry>


<qandaentry>
<question><para>How do I set up <application>sendmail</application> to work with
&kmail; if I have a  dial-up connection?</para></question> 

<answer><para>First you should check if your &Linux;/BSD/whatever distribution
can do this for you. Perhaps it has already been set up during
installation.</para>

<para>If that's not the case, you may want to have a look at <ulink
url="http://www.linuxdoc.org/HOWTO/mini/Mail-Queue.html">the Mail Queue
HOWTO</ulink> or at <ulink
url="http://www.leg.uct.ac.za/Articles/sendmail_dialup.html">UCT Linux User's
group page on configuring sendmail for Dial-up
connections</ulink>.</para></answer>
</qandaentry>

</qandaset>

</chapter>

<chapter id="credits-and-licenses">
<title>Credits and Licenses</title>

<para>&kmail;</para>

<para>Copyright the &kmail; developers, 1997-2001</para>

&underFDL;
&underGPL;

<sect1 id="developers">
<title>Original Developers</title>
<!-- please keep in sync with the authors list on the webpage -->

<itemizedlist>
<listitem>
<para>Stefan Taferner <email>taferner@alpin.or.at</email></para>
</listitem>
<listitem>
<para>Markus Wuebben <email>markus.wuebben@kde.org</email></para>
</listitem>
</itemizedlist>

</sect1>

<sect1 id="team">
<title>Current Team</title>

<itemizedlist>

<listitem><para>Waldo Bastian <email>bastian@kde.org</email></para></listitem>
<listitem><para>Andreas Gungl <email>a.gungl@gmx.de</email></para></listitem>
<listitem><para>Michael Haeckel
<email>michael@haeckel.net</email></para></listitem>
<listitem><para>Lars Knoll <email>knoll@mpi-hd.mpg.de</email></para></listitem>
<listitem><para>J. Nick Koston
<email>bdraco@darkorb.net</email></para></listitem>
<listitem><para>Daniel Naber
<email>daniel.naber@t-online.de</email></para></listitem>
<listitem><para>Sven Radej <email>radej@kde.org</email></para></listitem>
<listitem><para>Espen Sand <email>espen@kde.org</email></para></listitem>
<listitem><para>Don Sanders <email>sanders@kde.org</email> (Active
maintainer)</para></listitem>
<listitem><para>George Staikos
<email>staikos@0wned.org</email></para></listitem>
<listitem><para>Mario Weilguni
<email>mweilguni@sime.com</email></para></listitem>
<listitem><para>Robert D. Williams
<email>rwilliams@kde.org</email></para></listitem>
</itemizedlist>

</sect1>

<sect1 id="documentation">
<title>Documentation</title>

<para>Update for &kmail; 1.2 by Daniel Naber
<email>daniel.naber@t-online.de</email>, <application>PGP</application> part by
Andreas Gungl <email>a.gungl@gmx.de</email></para> <para>&kmail; 1.0
documentation by David Rugge <email>davidrugge@mindspring.com</email></para>
<para>Original documentation by Markus Wuebben
<email>markus.wuebben@kde.org</email>, Robert Williams
<email>rwilliams@kde.org</email> (Editor)</para>

<para>Thanks to Michael Elkins <email>me@cs.hmc.edu</email> for his excellent
description of the different Unix mail formats in the Mutt documentation.</para>

<para>Thanks to the following people for providing directions on using other
mail client mailboxes with &kmail;:</para>

<itemizedlist>
<listitem><para>Mendel Mobach <email>mendel@mobach.nl</email> (&Netscape;
mail)</para></listitem>
<listitem><para>Ed Shapard <email>shapard@bigfoot.com</email>
(<application>Pegasus</application> Mail)</para></listitem>
<listitem><para>Ray Muir <email>rjmuir@ibm.net</email> (Forte
<application>Agent</application>)</para></listitem>
</itemizedlist>

</sect1>

</chapter>

<appendix id="installation">
<title>Installation</title>

<sect1 id="getting-kmail">
<title>How to obtain &kmail;</title>

<para>&kmail; is part of the &kde; project <ulink
url="http://www.kde.org">http://www.kde.org</ulink>. &kmail; can be found in the
kdenetwork package on <ulink
url="ftp://ftp.kde.org/pub/kde/">ftp://ftp.kde.org/pub/kde/</ulink>, the main
&FTP; site of the &kde; project. </para>
</sect1>

<sect1 id="compilation">
<title>Compilation and installation</title>

<para>In order to compile and install &kmail; on your system, type the following
in the base directory of the kdenetwork distribution:</para>

<screen width="40">
<prompt>%</prompt> <userinput><command>./configure</command></userinput>
<prompt>%</prompt> <userinput><command>make</command></userinput>
<prompt>%</prompt> <userinput><command>make</command> <option>install</option></userinput>
</screen>

<para>Since &kmail; uses <application>autoconf</application> and
<application>automake</application> you should have no trouble compiling
it. Should you run into problems please report them to the &kde; mailing
lists.</para>

</sect1>

</appendix>

</book>
<!--
Local Variables:
mode: sgml
sgml-omittag: nil
sgml-shorttag: t
End:
-->
