Frequently Asked Questions (FAQ)

Chapter 6. Frequently Asked Questions (FAQ)

6.1 My folders keep growing even when I delete messages.
6.2 When I reply to an email there is a special character one line before the signature. I get a warning about a changed character set when I try to send the mail.
6.3 Where can I get a list of changes between the versions of KMail?
6.4 Can I configure the location of my mail directory?
6.5 The button to sign messages is not enabled anymore, it was enabled some time ago.
6.6 I'm one of those people whose mails consist of 100 quoted lines and one line written by myself. For some reason (which I don't get) this annoys other people. Can KMail help me and make everyone's life better?
6.7 KMail disappears/crashes while fetching mail.
6.8 Does KMail's address book support distribution lists?
6.9 For some messages the value in the Date field is wrong, it shows Wed Dec 31 17:00:00 1969.
6.10 My signature has two dashes above it. This makes me very sad.
6.11 KMail fetches the same messages over and over again.
6.12 Does KMail support IMAP?
6.13 Are there any known bugs in KMail?
6.14 KMail doesn't display HTML mail as HTML, I can only see the source.
6.15 Can I use two different version of KMail at the same time? Can I go back from a current version of KMail to an older one?
6.16 Does KMail support uuencoded files?
6.17 KMail crashed while I was writing a mail. So this mail is lost now?
6.18 When I try to set a folder to be mailing list-aware, it does not do anything when receiving an email from the list.
6.19 My SMTP server requires authentication. Does KMail support it?
6.20 Can I use KMail and procmail?
6.21 What should I know if I want to use PGP/GnuPG with KMail?
6.22 How do I have to set up KMail to use (i.e. read and write) messages with non-Latin1 characters?
6.23 Spellchecking doesn't recognize non-english characters.
6.24 How do I use my Eudora/Netscape/Outlook/... mail folders in KMail?
6.25 How can I use mail folders that are not in ~/Mail/?
6.26 Can I use encryption with my normal (non-SSL) POP3 account?
6.27 Does KMail lock the folders it uses?
6.28 How do I leave mail on the server?
6.29 How do I automatically insert a text footer within my mails?
6.30 Why does KMail keep asking me for the location of my signature file?
6.31 How do I set up sendmail to work with KMail if I have a dial-up connection?
6.32 I've seen demonstrations of remote control behavior with KMail. Is there any documentation on the available interfaces?

6.1 My folders keep growing even when I delete messages.

To really remove deleted messages from disk, you have to compact your folders using File->Compact all folders (by default, this will also happen every time you exit KMail).

However, there's a know bug that made it into the release of KDE 2.2.0 (KMail 1.3): sometimes folders don't get compacted anymore, neither manually nor automatically. Here's a workaround: edit the ~/.kde/share/config/kmailrc file, search for all occurrences of “Consistent=false” and replace them with “Consistent=true” (KMail must not be running while you are doing this). This bug will be fixed in KDE 2.2.1 which will probably be released in September 2001.

6.2 When I reply to an email there is a special character one line before the signature. I get a warning about a changed character set when I try to send the mail.

Upgrade to Qt-2.3.1.

6.3 Where can I get a list of changes between the versions of KMail?

The welcome screen lists all important changes for its release. It is displayed when you start a new version of KMail the first time. You can always look at it again by selecting the root element of the folder list, i.e. Mail.

6.4 Can I configure the location of my mail directory?

Exit KMail, make a backup of ~/.kde/share/config/kmailrc, then open it with an editor and add e.g. folders=/home/username/.mail to the “[General]” section. Then move all your existing folders (including the hidden index files) to the new location. The next time you start KMail it will use /home/username/.mail instead of /home/username/Mail. Note that KMail will lose its filters if you change the mail directory's location but forget to move your existing folders.

6.5 The button to sign messages is not enabled anymore, it was enabled some time ago.

Enter your PGP User Identity in the Identity configuration dialog. Without a PGP User Identity KMail can't know which key should be used to sign your messages with.

6.6 I'm one of those people whose mails consist of 100 quoted lines and one line written by myself. For some reason (which I don't get) this annoys other people. Can KMail help me and make everyone's life better?

Sure. Just select a short relevant part of the original mail with the mouse before you reply. Only this part will then be quoted in your reply.

6.7 KMail disappears/crashes while fetching mail.

Make sure you have enough free disk space. KMail currently does not handle the situation of a full disk gracefully and quits. Note: KMail does protect your data, messages that could not be saved to disk is left on the server.

6.8 Does KMail's address book support distribution lists?

No. As a workaround you can add several email address into one address entry if you are using the “traditional” KMail address book.

6.9 For some messages the value in the Date field is wrong, it shows Wed Dec 31 17:00:00 1969.

Probably the “Date:” header of these messages is broken, maybe it's missing the time zone information. For this case we've added a workaround to mimelib. In KDE 2.2 mimelib is part of the kdenetwork package, you must make sure that KDE's mimelib is used and not a different one on your system.

6.10 My signature has two dashes above it. This makes me very sad.

Separating the signature from the message body with two dashes and a space is a common and useful kind of standard. If you have strong feelings about this I suggest you modify the KMail source to remove that line.

6.11 KMail fetches the same messages over and over again.

This happens if you have Delete mail from server deselected and your POP3 server doesn't support the UIDL command. There's currently no workaround besides selecting Delete mail from server. A more detailed explanation can be found in this mailing list post.

6.12 Does KMail support IMAP?

Yes, it does so since KDE version 2.2. It's not yet feature complete, but it should be enough for many users. We know of those limitations, so please don't submit wishlist reports about them.

6.13 Are there any known bugs in KMail?

You can find a list of submitted bugs at bugs.kde.org. Note that not all these bugs are valid, all in all we think that KMail is now a very good piece of software.

Warning

However, you should not run KMail while another mail client is already accessing the files in ~/Mail. If you try to do so, you might lose messages. Note that you should make backups of your messages anyway.

6.14 KMail doesn't display HTML mail as HTML, I can only see the source.

Select Folder->Prefer HTML to plain text. For security reasons you should only do so for trusted mails. Note that plugins (like Macromedia® Flash), Java and Javascript will not be displayed in KMail and there's no way to activate them.

6.15 Can I use two different version of KMail at the same time? Can I go back from a current version of KMail to an older one?

You can only run one instance of KMail at once. We recommend also to stick to a certain version and not switch back and forth between different versions. Downgrading to an older version might cause problems, e.g. because the index file formats might have changed. Upgrading should never be a problem.

6.16 Does KMail support uuencoded files?

No. However, you can handle them using a filter, which is described in this posting to the mailing list.

6.17 KMail crashed while I was writing a mail. So this mail is lost now?

KMail tries to save your mail to ~/dead.letter in case of a crash. The next time you start KMail the mail composer should appear with your mail again. If it doesn't, try to open ~/dead.letter with an editor. If it doesn't exist, the crash was so bad that KMail couldn't save your mail.

6.18 When I try to set a folder to be mailing list-aware, it does not do anything when receiving an email from the list.

Associating a folder with a mailing list has nothing to do with filtering the mailing list messages. You have to add a new filter rule manually. However, once you associated a folder with a mailing list you can use Message->Reply List... or Message->New message... and the mailing list address will be set to the To: field.

6.19 My SMTP server requires authentication. Does KMail support it?

There are two common techniques used for SMTP authentication: “SMTP after POP3” and “SMTP Auth”. “SMTP Auth” is currently not supported. To use “SMTP after POP3” you have to collect all your mails in the outbox and send them just after you have fetched new mail.

6.20 Can I use KMail and procmail?

Yes, but it's important to do it the right way or you might lose mail. In order to use procmail and KMail you need to set up KMail so that it will fetch new mail from the spoolfiles in which procmail drops your mail. Do not set up procmail to deliver mail in a KMail folder, this cannot work.

For each procmail spoolfile, you then need to create an account from which KMail will fetch new mail. You also need to make sure you specify the right lockfile name for this account. When setting up an account, KMail will do some minimal parsing on your procmail file, and will try to list every spoolfile it has found, and also the lockfiles next to the "procmail lockfile" item. procmail lets the user specify lockfiles in three different ways, so there's no way to establish a correspondence between the spoolfiles and lockfiles. So it's really up to you to make sure you specify the right lockfile for each spoolfile.

6.21 What should I know if I want to use PGP/GnuPG with KMail?

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 their use insecure. Some important issues:

  • You really should test if encryption works before you use it. KMail relies on PGP/GnuPG's error strings, which often change between different versions.

  • Trusting a foreign public key without checking it is no good idea.

  • KMail will not encrypt messages with an untrusted (unsigned) public key if you use PGP. If you use GnuPG KMail will encrypt messages with untrusted public keys.

  • As most other mail clients, KMail can encrypt your messages, but not your attachments. You have to encrypt them manually before you attach them.

6.22 How do I have to set up KMail to use (i.e. read and write) messages with non-Latin1 characters?

In the Appearance/Fonts section of the Configure KMail... dialog, select the correct Character set for the message list and the folder list. If unicode (iso10646-1) is available, you should choose it. In case messages are still not shown correctly, you can always try other settings from the Message->Set Encoding menu. For writing messages, go to Composer/Charset and configure the default charset you want to use for your own mails.

6.23 Spellchecking doesn't recognize non-english characters.

Before you can use spellchecking the first time, you have to configure it. You can do so in the Composer window's menu under Settings->Spellchecker.... You can set the dictionary and the encoding there.

6.24 How do I use my Eudora/Netscape®/Outlook/... mail folders in KMail?

6.25 How can I use mail folders that are not in ~/Mail/?

Simply create a symlink in your ~/Mail directory using ln -s /somewhere/Mail/mymailboxfile ~/Mail/remote. When you start KMail you will see a new folder with the name remote that contains the mails in your remote folder. If you want to add a whole remote mail directory use ln -s /somewhere/Mail ~/Mail/.remotedir.directory. For that case you also need to create a new empty folder named remotedir with KMail. The folder remotedir will then contain all remote mailbox folders as subfolders.

6.26 Can I use encryption with my normal (non-SSL) POP3 account?

If your POP3 server runs an ssh daemon, you can use ssh to tunnel your POP3 connection using the following command:

ssh -L 110:127.0.0.1:110 user@host

Modify your KMail configuration to fetch the mail via POP3 from localhost and ssh will tunnel the connection for you. You need to be root to execute this command. Alternatively, change the first port number, i.e. the first occurrence of 110, to something above 1024 and configure KMail to use that port.

Note

If non-encrypted mails have already been sent via internet, the only advantage of using ssh is that your password will be sent encrypted to the POP3 server.

6.27 Does KMail lock the folders it uses?

KMail does not lock the files in ~/Mail.

To avoid the risk of losing mail if using a local account it is necessary to ensure that KMail uses the same type of locking as your mail delivery agent.

There are five different locking options you can use:

  • Mutt dotlock (recommended)

  • Mutt dotlock privileged

  • Procmail lockfile

  • FCNTL (default)

  • none (use with care)

Mutt dotlock and Mutt dotlock privileged will both use a small utility that comes with mutt called mutt_dotlock. Mutt dotlock can be used in the same way as the Procmail lockfile option, with the same limitation with regards to the /var/spool/mail/ folders. However, the Mutt dotlock privileged option can create lock files in the /var/spool/mail directory. mutt_dotlock 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.

Procmail lockfile will use a small utility that comes with procmail called lockfile. You can use this if your mail folder is in a directory where you have write permissions. This will not work on your /var/spool/mail/user file in most cases. It will create .lock files on your account when KMail is checking for new mail. Please note that this will only work if procmail is installed on your system.

FCNTL: the default option will use the fcntl() system call.

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

6.28 How do I leave mail on the server?

Open up the Settings->Configure KMail... window. Click on the Network tab. Select your account from the account list and click the Modify... button. This dialog contains the Delete mail from server setting which you must not select.

6.29 How do I automatically insert a text footer within my mails?

The text footer is called a signature file. Select Settings->Configure KMail... Look in the Identity tab for the Specify signature below field. Select the radio button and type your signature below.

6.30 Why does KMail keep asking me for the location of my signature file?

KMail will ask you for the location of your signature file if you have checked the option Automatically append signature in the Composer tab of the Configure KMail... dialog, but you have not specified a signature file in the Identity tab. You should either specify a signature file, select Use signature below, or deselect Automatically append signature.

6.31 How do I set up sendmail to work with KMail if I have a dial-up connection?

First you should check if your Linux®/BSD/whatever distribution can do this for you. It probably has already been set up during installation.

If that's not the case, you may want to have a look at the Mail Queue HOWTO or at UCT Linux User's group page on configuring sendmail for Dial-up connections.

6.32 I've seen demonstrations of remote control behavior with KMail. Is there any documentation on the available interfaces?

You can get a list of functions by using this command in a shell: dcop kmail KMailIface. Some documentation is also in kdenetwork/kmail/kmailIface.h and kdenetwork/kmail/mailcomposerIface.h.

KDE Logo