Chapter 4. Kontact: E-Mailing and Calendaring

Contents

4.1. Kontact Overview
4.2. Mail
4.3. Contacts
4.4. Calendar
4.5. Syncing Data with a Handheld
4.6. Kontact for GroupWise Users
4.7. 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 e-mail, KOrganizer for the calendar, KAddressBook for contacts, KNode for newsgroups, and KNotes for notes. It is also possible to sync data with external devices, such as handheld device. 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, enter kontact in a command line or in the Run Command dialog. You can also open the individual components instead of the combined application if you only need partial functionality.

4.1. Kontact Overview

The default window view is shown in Figure 4.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 and 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 4.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 how many are still unread. 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 each one is 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 a 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 this folder.

4.2. Mail

Kontact uses KMail as its e-mail 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 e-mail client that supports a number of protocols.

Figure 4.2. The Kontact Mail Component

The Kontact Mail Component

4.2.1. Configuring Identities

Kontact can manage multiple e-mail accounts, such as your private e-mail and your business ones. Creating separate identities for your different e-mail 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 user settings from Personal Settings+Password & User Account, 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 e-mail address in the General tab. Optionally, 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 10, Encryption with KGpg.

Advanced

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

Templates

Define templates to use for new messages, for default replies to senders and lists, and for forwarded messages.

Signature

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 an external source or of the input field below.

4.2.2. Creating Accounts

Before you can send or receive e-mails, create one or several accounts. The settings under Accounts determine how Kontact receives and sends e-mail. 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.

  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. The following dialog box shows only the respective entries of your selected type.

    2. If you have selected POP3, IMAP or disconnected IMAP, enter username, password and hostname. Depending on the chosen account type, configure additional parameters such as the mail checking interval, the hiding folders, security settings, and others.

    3. If you selected local mailbox or maildir mailbox, enter the folder location.

    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, enter an account name, the host name of the SMTP server. Should the server require login and password, also check Server requires authentication and enter the required credentials. Optionally, configure additional security settings using the Security tab.

    • If you select Sendmail, no further configuration efforts are required.

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

4.2.3. Composing Messages

To compose new messages, select Message+New Message or click the corresponding icon in the toolbar. To send messages from different e-mail accounts, select one of the identities as described in Section 4.2.1, “Configuring Identities”. In To, enter an e-mail 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 ... button next to the Address field.

To attach files to your message, click the paper clip icon and select the file to attach. Alternatively, 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+Queue. If you send the e-mail, the message is copied to sent-mail after having been sent successfully. Messages moved to the outbox can be edited or deleted.

4.2.4. Managing Folders

Message folders help organize your messages. By default, they are located in the ~/.kde/share/apps/kmail/mail directory. When starting KMail for the first time, the program creates several folders. inbox is where new messages fetched from a server are initially placed. outbox is used for temporary storage of messages queued for sending. sent-mail is for copies of messages sent. trash contains copies of all e-mails deleted with Del or Edit+Delete. drafts is where you can save unfinished messages. 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, 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.

4.2.5. Signing and Encrypting E-Mails

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

Set up KMail for signing and encrypting e-mails:

  1. Generate a key pair as described in Section 10.2, “Generating a New Key Pair” and export your public key as described in Section 10.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. Apply your settings and leave the configuration dialog with OK.

4.2.5.1. Sending Signed Mails

Sign your e-mails 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 e-mail, proceed as follows:

  1. Compose your e-mail as usual.

  2. Select Options+Sign Message.

  3. Select Attach+Attach My Public Key to create an attachment to your e-mail 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.

4.2.5.2. Sending Encrypted Mails

Use encryption on your e-mails whenever you want to make sure that only the recipient can read the contents. To be able to exchange encrypted e-mails 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 e-mail, 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.

  4. Select Options+Encrypt Message. If you want additionally sign it with your key, select the respective menu entry.

  5. Send the mail.

  6. Check whether all keys are correct.

  7. Enter your passphrase.

4.2.6. Importing E-Mail from Other Mail Programs

To import e-mail from other applications, select File+Import Messages from the mail view in Kontact. It currently features import filters for Outlook Express, the mbox format, e-mail 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. Kontact then completes the process.

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

4.2.7.1. Setting Up a Filter

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

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. Advanced Options provides control over when the filter is applied and whether additional filters should be considered for these messages.

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

4.3. 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 e-mail.

Figure 4.3. The Kontact Address Book

The Kontact Address Book

4.3.1. Adding Contacts

To add a contact with the name and e-mail address from an e-mail, right-click the address in the mail component and select Open in Address Book. To add a new contact without using an e-mail, 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, e-mail 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.

4.3.2. Creating a Distribution List

If you frequently send e-mail messages to the same group of people, a distribution list enables you to store multiple e-mail addresses as a single contact item so that you do not need to enter each name individually in every e-mail you send to that group. First, click Settings+Show Extension Bar+Distribution List Editor. In the new section that appears, click New List. Enter a name for the list then click OK. Add contacts to the list by dragging them from the address list and dropping them in the distribution list window. Use this list like you would an individual contact when creating an e-mail.

4.3.3. 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 Settings+Show Extension Bar+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.

4.4. Calendar

Kontact uses KOrganizer as its calendar component. You can also start it separately with the command korganizer. To configure it, use Settings+Configure KOrganizer. 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 in File.

Figure 4.4. The Kontact Calendar

The Kontact Calendar

4.4.1. 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) when 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.

4.4.2. 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 example, to combine 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.

4.5. Syncing Data with a Handheld

Kontact is designed so its data can be synced with handheld devices, such as a Palm. View information about the status of KPilot in the summary. Refer to Chapter 6, Synchronizing a Handheld Computer with KPilot for information about configuring and using KPilot.

4.6. Kontact for GroupWise Users

If you are used to working in GroupWise, you should have very little trouble adjusting to Kontact. The two programs share many concepts and provide many of the same services. This section discusses notable terminology differences, as well as some tips to help GroupWise users make the most of Kontact.

Table 4.1. Kontact and GroupWise Terminology Differences

GroupWise

Kontact

Appointments

Events

Busy search

Free/Busy

Notes

Journal entries

Posted, nonposted items

An event without attendees is posted. If an event has attendees, it is a Sent item.

Tasks

To-dos


4.6.1. Accessing GroupWise Mail Account

Accessing your GroupWise server is not very different from accessing an IMAP or POP3 server. Proceed as follows:

  1. Start Kontact and select the mail component (KMail).

  2. Choose Settings+Configure KMail from the menu.

  3. Select Accounts.

  4. Create an new account with Add.

  5. Choose your account type. In most cases your GroupWise account is IMAP.

  6. Enter your login, password and hostname and proceed with OK.

4.6.2. Accessing GroupWise Calendar

To access your GroupWise calendar through Kontact, proceed as follows:

  1. Start Kontact and open the calendar view (KOrganizer).

  2. Click on Add. You find this button on the lower left corner.

  3. Choose Novell GroupWise Server and proceed with OK.

  4. Enter your name, URL, user and password. The URL is your GroupWise server, for example https://groupwise.example.com:7191/soap.

  5. Apply your settings with OK and leave the configuration dialog. The calendar view now includes your GroupWise calendar entries.

4.6.3. Tips for GroupWise Users

This section contains hints to help GroupWise users work with some of the differences between GroupWise and Kontact:

Contact Information

You can add your GroupWise Messenger and e-mail contacts to your Kontact contact information. Then you can create an e-mail or open an instant messaging session with that contact by right-clicking the name in the Contact view.

Color Coding

It is helpful to color code GroupWise items, as well as items from other sources. Color coding makes it easy to scan your e-mails, contacts, and other information for items from a particular source.

Inviting Attendees to Events

Unlike GroupWise, Kontact does not automatically enter you as an attendee for events you schedule. Make sure that you remember to invite yourself.

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