Kontact: E-Mailing and Calendaring

Contents

5.1. Kontact Overview
5.2. Mail
5.3. Contacts
5.4. Calendar
5.5. For More Information

Abstract

Kontact combines the functionality of a number of KDE applications into a convenient, single interface for personal information management. These applications include KMail for email, KOrganizer for the calendar, KAddressBook for contacts, KNode for newsgroups, and KNotes for notes. Kontact integrates easily with the rest of the KDE desktop and connects to a variety of groupware servers. It includes extra features such as journal entries, Spam and virus filtering, and an RSS reader.

Start Kontact from the main menu. Alternatively, press Alt+F2 and enter kontact . You can also open the individual components instead of the combined application if you only need partial functionality.

Kontact Overview

The default window view is shown in Figure 5.1, “The Kontact Summary View”. Use the icons in the left section to access the different components. The Summary provides basic information, including upcoming birthdays, to-dos and the number of new mail messages. The news section can access RSS feeds to provide updated news of interest to you. Use Settings+Configure Summary View to configure the information displayed.

Figure 5.1. The Kontact Summary View

The Kontact Summary View

Mail

The folder area to the left contains a list of your mail folders (mail boxes) indicating the total number of messages and the number of unread messages. To select a folder, simply click it. The messages in that folder appear in the top right frame. The number of messages in that folder is also shown in the status bar at the bottom of the application window.

The subject, sender, and time of receipt of each message are listed in the header area to the right. Click a message to select it and display it in the message window. Sort the messages by clicking one of the column headers (subject, sender, date, etc.). The contents of the currently selected message are displayed in the message frame of the window. Attachments are depicted as icons at the end of the message, based on the MIME type of the attachment, or they can be displayed inline.

Contacts

The upper left frame of this component shows all addresses in the currently-activated address books. The lower left frame lists your address books and shows whether they are currently active. The right frame shows the currently-selected contact. Use the search bar at the top to find a particular contact.

Calendar

The calendar view is divided into a number of frames. By default, view a small calendar of this month and a week view of the current week. Also find a list of to-dos, a detailed view of the current event or to-do, and a list of calendars with the status of each. Select a different view from the toolbar or the View menu.

To-Do List

To-do List shows your list of tasks. Click the field at the top to add a new item to the list. Right-click in the column of an existing item to make changes to the value in that column. An item can be broken into several subitems. Right-click and select New Sub-to-do to create a subitem. You can also assign to-dos to other people.

Journal

The Journal provides a place for your reflections, occurrences, or experiences. Choose a date in the calendar frame and click Add Journal Entry to add a new entry. If a journal entry already exists for the chosen date, edit it in the right frame.

Notes

Use the Notes component to keep sticky notes to yourself. If you are using KDE, use the KNotes icon in the system tray to make your notes visible on the desktop.

Feeds

The Feeds window is divided into three frames—a tree view with RSS feeds on the left, an article list on the top right, and the article view on the bottom right side. Click a feed in the tree view to display it. Right-click a feed to update, edit, or delete it. Right-click a folder in the tree view to open a menu where you can add a new feed or manipulate existing feeds within.

Mail

Kontact uses KMail as its email component. You can also start it separately with the command kmail. To configure it, open the mail component then select Settings+Configure KMail. KMail is a fully-featured email client that supports a number of protocols.

Figure 5.2. The Kontact Mail Component

The Kontact Mail Component

Configuring Identities

KMail can manage multiple email accounts (private or business). Creating separate identities for your different email accounts allows you to associate different sender addresses, cryptography settings and signatures with each of them. To create an identity, select Settings+Configure KMail and choose Identities+Add. Determine whether to create a new identity from scratch, use the control center settings , or whether to duplicate an existing identity.

To create a new identity from scratch, enter the name of the new identity and enter your name, organization and email address in the General tab. You can also configure one or several of the following options:

Cryptography

Set the keys to use for signing and encrypting messages. For the encryption to work, first create a key with KGpg, as described in Chapter 7, Encryption with KGpg.

Advanced

Enter a default reply-to and a default blind carbon-copy address, (usually empty), choose a dictionary, select the folders for draft, sent messages, and templates, and define by which sending account the messages should be sent.

Templates

Define custom templates to use for new messages, for default replies to senders and lists, and for forwarded messages. To use templates, activate Use Custom Message Templates, first.

Signature

Click Enable Signature first to use it. Decide how your messages should be signed. Use the input field below to configure your signature or obtain it from a file or the output of a command.

Picture

Use this tab to include a picture in the X-Face format in your messages. X-Face can only hold black and white images with a dimension of 48 × 48 pixels. You can obtain the picture from the input field below or from an external source.

Creating Accounts

Before you can send or receive emails, create one or several accounts. KMail allows both remote accounts and local mailboxes. The settings under Accounts determine how Kontact receives and sends email. Many of these settings vary depending on the system and network in which your mail server is located. If you are not sure about the settings or items to select, consult your ISP or system administrator.

To configure a remote account, proceed as follows:

  1. Start Kontact and select Settings+Configure KMail+Accounts.

  2. Create an incoming account by clicking on the Receiving tab:

    1. Click Add and choose the account type. Usually it is POP3, IMAP, or disconnected IMAP.

    2. Enter your account name (can be freely choosen), the incoming mail server, login and password.

    3. Decide, if the following options are useful to your setup:

      General+Store POP password

      If you use KWallet, check Store POP password. This makes it a bit more convenient as you do not have to type in your passwords (it is taken once from KWallet, see Chapter Managing Passwords with KWallet Manager (↑KDE User Guide).)

      General+Enable interval mail checking

      If you need to be up-to-date with your mails, check this option and enter the interval.

      Advanced+Leave fetched messages on the server (POP3 only)

      KMail can leave the original message on the server and receive a copy. Especially for POP3 accounts, this could be useful, if you need the mail on a different computer.

      Advanced+Use default identity (IMAP/disconnected IMAP only)

      This option lets you choose your identity.

    4. Proceed with OK.

  3. Create an outgoing account by clicking on the Sending tab and click Add to choose either SMTP or Sendmail:

    • If you select SMTP (the default), enter an account name and the host name of the SMTP server. Should the server require login and password, also check Server requires authentication and enter the required credentials. Configure additional security settings using the Security tab.

    • If you select Sendmail, no further configuration is required.

  4. Apply your settings and leave the account configuration dialog with OK.

To configure a local mailbox, proceed as follows:

  1. Start Kontact and select Settings+Configure KMail+Accounts.

  2. Create an incoming account by clicking on the Receiving tab:

    1. Click Add and choose Local mailbox or Maildir mailbox.

    2. Enter your account name. Choose any name you like.

    3. Decide which locking method you want. Usually you can leave it on Procmail lockfile

    4. Proceed with Ok.

  3. Create an outgoing account as described in Step 3.

Composing Messages

To compose new messages, select Message+New Message or click the corresponding icon in the toolbar. To send messages from different email accounts, select one of the identities as described in Section 5.2.1, “Configuring Identities”. Select View+Identity to show a popup menu. In To, enter an email address or part of a name or address in your address book. If Kontact can match what you enter to something in the address book, a selection list opens. Click the desired contact or complete your input if none matches. To select directly from the address book, click the Select... button next to the Address field.

To attach files to your message, click the paper clip icon and select the file to attach. Conversely, drag a file from the desktop or another folder to the New Message window or select one of the options in the Attach menu. Normally, the format of a file is recognized correctly. If the format is not recognized, right-click the icon. From the menu that appears, select Properties. Set the format and filename in the next dialog and add a description. In addition, decide whether the attached file should be signed or encrypted.

When you are finished composing your message, send it immediately with Message+Send or move it to the outbox with Message+Send Later. If you send the email, the message is copied to sent-mail after having been sent successfully. Messages moved to the outbox can be edited or deleted.

Managing Folders

Message folders help organize your messages. By default, they are located in the ~/.kde4/share/apps/kmail/mail directory. When starting KMail for the first time, the program creates several folders. If you are using IMAP, the IMAP folders are listed below the local folders. Each incoming mail server has its folders in the Folder list.

If you want to organize your messages in additional folders, select from your list your parent folder and create new folders by selecting Folder+New Folder. This opens a window in which to specify the name and format of the new folder.

Right-click the folder for a context menu offering several folder operations. Click Expire to specify the expiration date for read and unread messages, what should happen with them after expiration, and whether expired messages should be deleted or moved to a folder. If you intend to use the folder to store messages from a mailing list, set the necessary options under Folder+Mailing List Management.

To move one or several messages from one folder to another, drag them from the upper window and drop them into the appropriate folder in the left window. Messages can also be moved by highlighting the messages then pressing M or selecting Message+Move to. In the list of folders that appears, select the folder to which to move your messages.

Additionally, you can add folders to the Favorite Folders pane. This enables you to go quickly to your frequently used mail folders, especially if your folders are deeply structured. Choose the relevant folder and select Add to Favorite Folders.

Signing and Encrypting emails

Email is an insecure medium, as anyone could theoretically read your emails or send some in your name. By signing your emails you enable the recipient of your emails to verify the sender of the messages as the key used to sign is only available to you. By encrypting the contents of your emails you ensure that they can only be read by the recipient. KMail supports both the signing and encryption of emails.

Prepare KMail for signing and encrypting emails:

  1. Generate a key pair as described in Section 7.2, “Generating a New Key Pair” and export your public key as described in Section 7.3, “Exporting the Public Key”.

  2. Configure the details of the encryption procedure in KMail:

    1. Start KMail and go to Settings+Configure KMail+Identities.

    2. Select the identity under which to send encrypted and signed messages. Click Modify... and proceed to Cryptography.

    3. Change the OpenPGP signing key by clicking on Change... and selecting your key from the dialog box.

    4. Change the OpenPGP encryption key by clicking on Change... and selecting your key from the dialog box.

  3. Change to Security+Composing and check When encrypting emails, always also encrypt to the certificate of my own identify. With this option you can decrypt the message or file at any time.

  4. Apply your settings and leave the configuration dialog with OK.

Sending Signed Mails

Sign your emails to allow the recipient to verify whether these have really been sent by you. KMail uses your private key to sign your messages and the recipient can verify the signature using your public key available on key servers. To sign an email, proceed as follows:

  1. Compose your email as usual.

  2. Select Options+Sign Message.

  3. If you know the recipient can download your public key from a key server, you can omit this step. For convenience reasons, select Attach+Attach My Public Key to create an attachment to your email containing your public key.

  4. Send your message as usual via Message+Send Mail and enter your key's passphrase when prompted. KMail signs your message using your private key and the recipient can verify the signature by the public key attached to your message.

Sending Encrypted Mails

Use encryption on your emails whenever you want to make sure that only the recipient can read the contents. To be able to exchange encrypted emails with another party, get the appropriate public key and use it to encrypt your message. At the other end, the private key is then used to decrypt the contents of your message. Of course, you can use both signatures and encryption on your messages.

To send an encrypted email, proceed as follows:

  1. Start KGpg with Alt+F2 and entering kgpg.

  2. Get the recipient's public key:

    • If you get it directly from the recipient, import the key with KGpg via Keys+Import Key.

    • Access a public key server and import it from there. Select in KGpg File+Key Server Dialog, and search for the key. Select the respective key and import it into your keyring.

  3. Compose a new message in KMail.

  4. Select Options+Encrypt Message. In the mail window a blue line Message will be encrypted is displayed.

  5. Send the mail. A dialog window opens and asks you for the correct key.

  6. Check whether all keys are correct.

  7. Enter your passphrase.

Importing Email from Other Mail Programs

To import email from other applications, select File+Import Messages from the mail view in Kontact. It currently features import filters for Outlook Express, the mbox format, email text format, Pegasus Mail, Opera, Evolution, and more. The import utility can also be started separately with the command kmailcvt.

Select the corresponding application and confirm with Continue. A file or a folder must be provided, depending on the selected type. KMail then completes the process.

Filters

Filters are a convenient method of automatically processing incoming mail. They use aspects of the mail such as sender or size, to move mail to certain folders, delete unwanted mails, bounce mails back to the sender, or perform a number of other actions.

Setting Up a Filter

To create a filter based on an existing message, right-click the desired message then select Create Filter and the desired filter criteria. To create a filter from scratch, select Settings+Configure Filters.

Select the match method for filter criteria (all or any). Then select criteria that applies only to the desired messages. In Filter Actions, set what the filter should do to the messages that meet the criteria. The Advanced tab provides control over whether the filter is applied for specific accounts only.

Applying Filters

Filters are applied in the order listed in the dialog accessed with Settings+Configure Filters. Change the order by selecting a filter and clicking the arrow buttons. Filters are only applied to new incoming messages or sent messages as specified in the filter's advanced options. To apply filters to existing messages, right-click the desired messages and choose Messages+Apply Filter and the desired filter.

If your filters do not act as expected, monitor them with Tools+Filter Log Viewer. When logging is enabled in this dialog, it shows how messages are processed by your filters and can help locate the problem.

Contacts

The contacts component uses KAddressBook. You can also start it separately with the command kaddressbook. Configure it with Settings+Configure KAddressBook. To search for a particular contact, use the search bar. With Filter, select to display only contacts in a certain category. Right-click a contact to open a menu in which to select from a variety of options, such as sending the contact information in an email.

Figure 5.3. The Kontact Address Book

The Kontact Address Book

Adding Contacts

To add a contact with the name and email address from an email, right-click the address in the mail component and select Open in Address Book. To add a new contact without using an email, select File+New Contact in the address component. Both methods open a dialog in which to enter information about the contact.

In the General tab, enter basic contact information, such as name, email addresses, and telephone numbers. Categories can be used to sort addresses. Details contains more specific information, such as birthday and spouse's name.

If your contact uses an instant messenger, you can add these identities in IM Addresses. If you do this and have Kopete or another KDE chat program running at the same time as Kontact, view status information about these identities in Kontact. In Crypto Settings, enter the contact's encryption data, such as public key.

Misc has additional information, such as a photograph and the location of the user's Free/Busy information. Use Custom Fields to add your own information to the contact or address book.

Contacts can also be imported in a variety of formats. Use File+Import and select the desired format. Then select the file to import.

Creating a Distribution List

If you frequently send email messages to the same group of people, a distribution list enables you to store multiple email addresses as a single contact item so that you do not need to enter each name individually in every email you send to that group. To create a distribution list, proceed as follows:

  1. Click Settings+Show Extension Bar+Distribution List Editor. A new section appears.

  2. Click New List.

  3. Enter a name for the list and click OK.

  4. Add contacts to the list by dragging them from the address list and dropping them in the distribution list window.

  5. Use this list like you would an individual contact when creating an email.

Adding Address Books

[Important]Groupware Address Books

The best way to add groupware resources is with the Groupware Wizard, a separate tool. To use it, close Kontact then run groupwarewizard in a command line or from the Office group of the KDE menu. Select the server type (such as SLOX, GroupWise, or Exchange) from the list offered, then enter the address and authentication data. The wizard then adds the available resources to Kontact.

Kontact can access multiple address books, such as shared ones offered by Novell GroupWise or an LDAP server. Select View+Address Books to view the current address books. Press Add to add one then select the type and enter the required information.

The check boxes in front of the address books show the activation status of each address book. To prevent the display of a book without deleting it, uncheck it. Remove deletes the selected book from the list.

Calendar

Kontact uses KOrganizer as its calendar component. You can also start it separately with the command korganizer. To configure it, use Settings+Configure Calendar. With the calendar, enter appointments and schedule meetings with others. If desired, you can be reminded of upcoming events. You can also import, export, and archive calendars with the options from the File menu.

Figure 5.4. The Kontact Calendar

The Kontact Calendar

Scheduling an Event

Add a new event or meeting with Actions+New Event. Enter the desired details. Under Reminder, specify the exact time (minutes, hours, or days in advance) that the attendees should be reminded of the event. If an event recurs, specify the appropriate interval. Another way to create an event at a specific point in the calendar is to double-click the corresponding field in one of the program's calendar views. This opens the same dialog window as that available from the menu. Alternatively, select a time range in the Calendar view and right-click.

Specify the attendees of an event by entering their data manually in the dialog or by inserting data from the address book. To enter data manually, select New. To import data from the address book, click Select Addressee then select the corresponding entries from the dialog. To schedule the event based on the participants' availability, go to Free/Busy and click Pick Date.

Use the Recurrence tab to configure an event that happens on a regular basis. Attachments can be convenient for linking other information with the event, such as an agenda for a meeting.

Adding Calendars

[Important]Groupware Calendars

The best way to add groupware resources is with Groupware Wizard, a separate tool. To use it, close Kontact then run groupwarewizard in a command line or from the Office group of the KDE menu. Select the server type (such as SLOX, GroupWise, or Exchange) from the list offered then enter the address and authentication data. The wizard adds the available resources to Kontact.

The calendar module can connect to multiple calendars simultaneously. This is useful for combining a personal calendar with an organizational one. To add a new calendar, click Add then select the calendar type. Complete the necessary fields.

The check boxes in front of the calendars show the activation status of each. To prevent the display of a calendar without deleting it, uncheck it. Remove deletes the selected calendar from the list.

For More Information

Kontact includes help for itself and its various components. Access it with Help+Kontact Handbook. The project's Web page, http://www.kontact.org, is also informative.