# Configure &kmail;

## General Information

Configure &kmail; Dialog Configure &kmail; Dialog

Configure &kmail; Dialog

&kmail;'s configuration window enables you to configure &kmail; in many ways. You can reach it via Settings Configure &kmail;...

The dialog has several buttons:

Help

- This will open this manual at the appropriate page.

Defaults

- This will reset the configuration options on the current page back to the default values.

Reset

- This resets all changes you have made since you last saved the settings.

OK

- This saves the settings and closes the configuration dialog.

Apply

- This saves the settings without closing the configuration dialog.

Cancel

- This closes the configuration dialog without saving the changes you have made.

The configuration pages are divided into six pages, each of them represented by one of the icons in the list on the left hand side of the dialog. The pages will be described in detail below.

## Identities Page

You can find a quick introduction to the Identities page in the Getting Started section.

This page allows you to create one or more Identities, &ie; combinations of name, email address and other settings. For example, you can create one identity for business communication and one for personal communication. If you have more than one email address, you can create one identity per address. You will then be able to select an identity on a per-message basis.

The page consists of a list of identities and buttons to manage them. The identities list will always show at least one identity, which is then the Default identity.

To add a new identity to the identity list, click on the Add... button.

### The New Identity Dialog

New Identity Dialog New Identity Dialog

New Identity Dialog

You have to enter the name of the new identity into the New Identity edit field. This will be the name shown in the identity list.

You can choose how the new identity should be initialized by checking one of the three radio buttons in the middle of the dialog:

With empty fields

- All fields of the new identity are cleared or preset with standard values.

Use System Settings values

- Uses the values from Account Details Password & User Account in the &systemsettings; category Common Appearance and Behavior.

Duplicate existing identity

- Copies all fields from an existing identity. You can choose which identity to copy from by selecting the corresponding entry in the Existing identities drop down box.

### General

Identity General Identity General

Identity General

The General tab allows you to specify some basic settings for the currently selected identity.

Your name

- Enter your full name here (sometimes also called display name). Although this field is not strictly mandatory, it is recommended to enter the correct value here.

Organization

- Enter your organization here. This field is optional.

Email address

- Enter your email address here, &ie; something like `joe@example.com`.

  #### Email address

  So if your address is `Joe User <joe@example.com>`, you should enter `Joe User` into the Your name field and `joe@example.com` into the Email address field.

Email aliases

- This field contains alias addresses that should also be considered as belonging to this identity (as opposed to representing a different identity).

  #### Email aliases

  Primary address: first.last@example.org

  Aliases: first@example.org and last@example.org

### Cryptography

Identity Cryptography Identity Cryptography

Identity Cryptography

The Cryptography tab allows you to specify &openpgp; and &smime; keys associated with this identity, as well as choosing the preferred (cryptographic) message format to use.

OpenPGP signing key

- Here you can select the key to be used when &openpgp;-signing messages written with this identity in effect.

  For brevity, only the short key id of selected keys is shown. Hovering with the mouse over the key list will show more information in a tooltip.

  To clear the label press the Clear button. To change the selected key, press the Change... button. A dialog listing all configured secret &openpgp; keys will be shown allowing you to select the one to use. If you do not have key configured yet, click the Start Certificate Manager to open &kleopatra;. See &kleopatra; for information on using &kleopatra; to create and manage openpgp keys and certificates. Listed below is a brief description of the chosen key/certificate uses.

OpenPGP encryption key

- Here you can select the key to &openpgp;-encrypt messages to when this identity and configure-security-composing-encrypt-to-self are in effect. This key is also used for the composer-attach-attach-my-public-key function of the Composer.

&smime; signing certificate

- Here you can select the certificate to be used when &smime;-signing messages written with this identity in effect.

&smime; encryption certificate

- Here you can select the certificate to &smime;-encrypt messages when this identity and configure-security-composing-encrypt-to-self are in effect.

Preferred format

- Here you can choose which cryptographic message format to use by default with this identity. You can either select any of the four formats supported by &kmail; or leave the option at the recommended default setting of Any, which will choose a suitable format based on the recipients of the message, or might even go so far as to create two copies of the message, one &smime; signed and/or encrypted, the other &openpgp; signed and/or encrypted.

### Advanced

Identity Advanced Identity Advanced

Identity Advanced

The Advanced tab allows you to specify some rarely used or otherwise specialized settings for the currently selected identity.

Reply-To address

- Enter the address to which replies to your messages should be sent. Only fill out this field if it is different from your normal address (specified using the Name and Email Address on the General tab), since replies default to the sender's address anyway.

  This field is only useful if you want replies to your mail to go somewhere else than your regular email address, ⪚ if you are using this identity to send messages from an email address that cannot receive messages.

  Note that some mailing lists overwrite this header field with their post address to make sure that replies go to the list instead of individuals. So the usefulness of this field is very limited and it should only be used in rare cases.

BCC addresses

- Optionally enter addresses separated by a comma to which blind copies of your messages should be sent to. When you compose a message with this identity, the BCC field is filled with these addresses. If you want to send a BCC regardless of this setting, you should look at the Headers tab of the Composer page.

Dictionary

- Select the default dictionary for current identity.

Sent-mail folder

- Select the folder into which messages should be filed after sending when using this identity. &imap; users should consider changing this to an &imap; folder, so their sent-mail is stored on a server instead of being stored in a local folder. This way they can access these messages from a different location.

  You can exercise more fine-grained control over where to file sent messages by creating a corresponding message filter that is applied to outgoing messages.

Drafts folder

- Select the folder into which drafts should be filed when using this identity. &imap; users should consider changing this to an &imap; folder, so their drafts are stored on a server instead of being stored in a local folder. This way they can easily continue to work on their drafts at a different location.

Templates folder

- Select the folder into which templates should be filed when using this identity. Please see Compose from templates for more information on templates.

Outgoing Account

- Select or enter an alternative &SMTP; server to be used when sending messages using this identity.

  You need to configure outgoing mail servers first, before you can choose them from the list. You can do this on the Sending tab of the Accounts page.

### Templates

Identity Templates Identity Templates

Identity Templates

Here you can create and manage templates to use when composing new messages, replies or forwarded messages.

The message templates support substitution commands, either simply type them or select them from the Insert Command menu.

Templates specified here are identity-specific. They override global templates, but can be overridden by per-folder templates if they are specified.

### Signature

Identity Signature Identity Signature

Identity Signature

This tab allows you to specify a signature (sometimes called footer or disclaimer) to be appended to each message sent using this identity.

This type of signature has nothing to do with the (digital) signatures for which you can select the keys to use on the Cryptography tab. It is just bad wording to call this a signature, but since the term is already used everywhere else, we keep this notation. Just keep in mind that these signatures and digital signatures are two completely different things.

Check the Enable signature option if you want to be able to append the signature when using this identity. To automatically append it to every new message you also have to select Automatically insert signature in the Composer configuration page.

&kmail; can obtain the signature text from various sources. The default is Input Field Below. Just enter what you would like your signature to be into the textbox.

The traditional way on Unix is to read the text from a file called `.signature` in your home folder. This file can be shared between several programs, so you get the same signature in each mail program you use. Select File from the Obtain Signature text from drop down menu. If you want to edit the file, click the Edit File button.

&kmail; can also read the signature text from the output of a command. Thus, you can use programs such as `fortune` to create a new signature text for every message. Everything the program prints onto stdout is caught and used as the signature text. To read the text from the output of a command you select Output of Command. Enter the command (preferably with full path) in the Specify command edit field.

On the Internet, signatures are by convention separated from the body of the message by a line containing only the three character -- (dash, dash, space). &kmail; will automatically prepend the signature text with this line if it is not already present in the signature text.

If you do not wish the separator to be prepended automatically by &kmail;, simply add it to the signature text yourself.

### Picture

Identity Picture Identity Picture

Identity Picture

&kmail; can send a small (48x48 pixels), low-quality, monochrome picture with every message. For example, this could be a picture of you or a glyph. It is shown in the recipient's mail client (if supported).

Send picture with every message

- Check this box if you want &kmail; to add a so-called X-Face header to messages written with this identity. An X-Face is a small (48x48 pixels) black and white image that some mail clients are able to display.

External Source

- Select File...

- Use this to select an image file to create the picture from. The image should be of high contrast and nearly quadratic shape. A light background helps improve the result.

Set From Address Book

- You can use a scaled-down version of the picture you have set in your address book entry.

Input Field Below

- Use this field to enter an arbitrary X-Face string. Examples are available at https://ace.home.xs4all.nl/X-Faces/

## Accounts Page

You can find a quick introduction to the Accounts page in the Setting up your Account section.

This page allows you to create one or more (incoming and outgoing) accounts, &ie; combinations of mail servers, login information and other settings. Typically, you will create one outgoing (used for sending messages) and one incoming (used to retrieve messages) account. You can create as many accounts as you want, though, and assign each one to different identities or decide on a per-message basis.

### Sending

The Sending tab allows you to define new outgoing mail servers and set some common options.

For basic information, see Setting up your Account: Sending.

When you click Add... or Modify... the Create Outgoing Account or Configure account dialogs will open respectively. For sending via &Sendmail; or similar programs you can specify a name and the location of the &Sendmail; program. For &SMTP; you can specify Name, Outgoing mail server, and Port of the server. Server requires authentication will enable the Login and Password fields. If you are not sure about the security settings you can make &kmail; test for the best settings by using Auto Detect on the Advanced tab.

Confirm before send will pop up a confirmation box every time you send a message.

Send messages in outbox folder lets you specify when queued messages, &ie; messages in the outbox folder pending to be sent, should be sent. You can choose between:

Never Automatically

- Queued messages will only be sent if you select File Send queued messages.

On Manual Mail Checks

- Queued messages will be sent after you have manually checked for new mail, ⪚ with File Check Mail. Of course, you can also manually send the queued messages with File Send queued messages.

On All Mail Checks

- Queued messages will be sent after all checks for new mail, &ie; after automatic mail checks as well as after manual mail checks. Of course, you can also manually send the queued messages with File Send queued messages.

Default send method lets you define what happens when a message is sent. If Send now is selected, the message is sent to the mail server immediately, while if Send later is selected, the message is queued in the outbox to be sent later with the File Send Queued Messages command or automatically when you check your mail, depending on the setting of Send messages in outbox folder above.

### Receiving

For basic information, see Setting up your Account: Receiving.

Using the Retrieval Options popup menu for each resource, lets you specify whether &kmail; should check for new mail immediately after it has been started. You can also select Include in Manual Mail Check and Switch offline on &kmail; Shutdown.

With New Mail Notification you can set how &kmail; will notify you if new messages have arrived: Beep will play a short beep sound; if Detailed new mail notification is enabled then &kmail; will show the number of new messages for each folder provided you have chosen to be notified with a dialog. More advanced notification options, like showing a dialog or running a certain command, are available via the Other Actions button.

## Appearance Page

### Fonts

This section allows you to change the type, size and character set of the display fonts. Message Body sets the font for the reader pane, Composer sets the font for the body of your messages written in &kmail; Composer.

### Colors

This section allows you to change the color of the text by double clicking on an item in the listbox. Recycle colors on deep quoting will restart the quote coloring at the first level after the third level of quoting has been reached. Note that the Quoted text colors only work in the message reader, not in the composer. If you want folders which are close to their quota (space allotment, usually used on &imap; servers) to be displayed in a different color, you can specify a percentage value as a threshold for this. The color to be used can be configured along with the other custom colors.

### Layout

Default Layout Default Layout

Default Layout

This tab lets you configure the layout of the main window.

In the Folder List section you can choose between the Long folder list (default) using the full height of the window and the Short folder list with the message preview pane using the entire bottom part of the window.

If you want to have your favorite folders and a quick search field for folders at the top left of the main window select the next two options.

The Show Favorite Folders View section allows you to change how your favorites folder displays your favorite folder. As Icons uses a lot of space, so if you have several favorite folders you might try As List. If you do not have any favorite folders you can disable the view altogether by selecting Never.

On by default, Folder Tooltips display additional information like the total number of messages, unread messages and storage size when hovering a folder with the mouse pointer. Select Never to disable this feature.

You can choose where in relation to the message list you want the Message Preview Pane or disable it all together.

### Message List

In the General section you can alter the appearance of the Message List pane.

Choose to Display tooltips for messages and group headers. Check Hide tab bar when only one tab is open to have more space for the messages in the list.

The next options are the settings for Default Aggregation and Default Theme which can be overridden using the Folder Properties dialog for each folder individually.

Using the Configure button opens a window to customize the default aggregation or theme to your needs and allows you to add your own.

Available aggregations and themes:

Default aggregation

- Senders/Receivers, Flat

- This view groups the messages by senders or receivers (depending on the folder type). Messages are not threaded.

Activity by Date, Flat

- This view uses day-by-day groups. Messages are not threaded. So for example, in Today you will simply find all the messages arrived today.

Activity by Date, Threaded

- This view uses day-by-day groups. Messages are threaded. So for example, in Today you will find all the messages arrived today and all the threads.

Current Activity, Flat

- This view uses smart date range groups. Messages are not threaded. So for example, in Today you will simply find all the messages arrived today.

Current Activity, Threaded

- This view uses smart date range groups. Messages are threaded. So for example, in Today you will find all the messages arrived today and all the threads that have been active today.

Thread Starters

- This view groups the messages in threads and then groups the threads by the starting user.

Flat Date View

- This is a plain and old list of messages sorted by date: no groups and no threading.

Standard Mailing List

- This is a plain and old mailing list view: no groups and heavy threading.

Customize...

- Customize Message Aggregation Modes Customize Message Aggregation Modes

  Customize Message Aggregation Modes

  To create a custom aggregation theme, click the Configure... button. Select an existing aggregation similar to what you want to change it to and click the Clone Aggregation, if none are similar click the New Aggregation button. The General tab allows you to change the Name: and Description:. The Groups & Threading tab allows you to configure several elements to customize your aggregation.

  - Grouping: Allows you to select from dates, sender/receiver or none. With the smart options &kmail; will group related emails together.

  - Group expand policy: Allows you to set whether &kmail; will automatically expand grouped emails.

  - Threading: Allows you to change if &kmail; will include references and subject in determining perfect threading. You can also turn off threading all together.

  - Thread leader: Allows you to change the leader of the thread between most recent message or topmost.

  - Thread expand policy: Allows you to change how &kmail; determines whether a thread should be expanded or no expanding at all.

  The Advanced allows you to change the Fill view strategy: You would choose Favor speed if you have a slow connection. Interactivity will show all of your current conversations first. And Batch mode will not sort the view at all.

Default Theme

- Classic

- A simple, backward compatible, single row theme

Smart

- A smart multi-line and multi-item theme

Smart with Clickable Status

- A smart multi-line and multi-item theme with a clickable status column

Configure...

- Customize Message List Theme Customize Message List Theme

  Customize Message List Theme

  To create a custom message list theme, click the Configure... button. Select an existing theme similar to what you want to change it to and click the Clone Theme, if none are similar click the New Theme button. The General tab allows you to change the Name: and Description:.

  The Appearance tab allows you to configure visible columns and status items. To add a column, right click the column bar and select Add Column. Name the column and select what the column will represent from the Header click sorts messages: drop down list. By default Visible by default is checked, uncheck it if you only want the column to be available on the &RMB; add or remove menu for the clickable sort bar. Then drag the appropriate label from the Content Items to the column view box under the column bar, ⪚ if you chose to add a size column you would drag the Size label to underneath the Size column. Continue to do this until you have all the columns you desire. You can change the font and color of column items through the view area &RMB; menu. Move, delete and resize columns through the &RMB; menu of the column bar.

  The Advanced tab allows you to change whether to show headers. You can also change the size of status icons.

In the Date Display section you can choose between several date formats. The Localized Format is the one you can specify under Country/Region & Language in the &systemsettings;. Smart format will show today, yesterday &etc; The Custom format you can get a description of the possible values by clicking on Custom format information option.

### Message Window

If the Close message window after replying or forwarding option is activated, &kmail; will close the message window after replying to or forwarding the message that is displayed in the window. This only applies to the separate message window, not to the embedded message preview pane.

By default, Enable access key is enabled. Access keys allow you to use the keyboard keys for functions which would perhaps normally be done with the mouse, such as following links. For more information on access keys please see Access keys.

Show HTML status bar activates a bar at the left side of the reader pane that tells you if a message is &html; or not. This is important because &html; messages might imitate the look of a signed and encrypted message, so you should be aware of the fact that you are reading an &html; message. The &html; status bar itself cannot be influenced by the &html; code of the message.

Enable Replace smileys by emoticons if you want smileys like `:-)` appearing in the message text to be replaced by emoticons (small pictures) such as .

Enable Reduce font size for quoted text to show quoted text with a smaller font.

Enable Show expand/collapse quote marks to show different levels of quoted text. Disable to hide the levels of quoted text.

Fallback character encoding: Some emails, especially those generated automatically, do not specify the character encoding which needs to be used to properly display them. In such cases a fallback character encoding will be used, which you can configure here. Set it to the character encoding most commonly used in your part of the world. As a default the encoding configured for the whole system is used.

Override character encoding: Changing this from its default Auto will force the use of the specified encoding for all emails, regardless of what they specify themselves.

Minimum font size: This option allows you to set the smallest size a font will show as. This can be helpful if you have a hard time reading really small fonts.

To customize which headers you would like to view in the message window (⪚ subject, from, to, cc, bcc, date), click the Configure Custom Headers button next to Headers:. Add your selection in the dialog that pops up. If you are using fancy headers, you can enable Show spam status in fancy headers here. Please note that if your email provider does not provide Spamassassin services to check your email for spam, you will need to install it on your computer. ⪚ through a package manager (Yast on &SuSE;, &ubuntu; Software Center on &ubuntu; &etc;). For more information see: Anti-Spam Wizard to set up spamassassin with &kmail;.

### System Tray

If you enable the system tray icon then a small &kmail; icon with the number of unread messages will be shown in the system tray. You can enable &kmail;'s system tray icon with Enable system tray icon, and with System Tray Mode you can specify whether the tray icon should always be shown or only if you have unread messages.

If the icon is visible then you can hide &kmail;'s main window by clicking on the icon or by clicking on the window close button. By clicking on the icon you can make &kmail;'s main window visible again. If you click on the icon with the right mousebutton then you get a menu with a few useful commands. You can check for new mail, create a new message or quit &kmail;. Additionally, there is the entry New Messages In which lists all folders containing unread messages. If you choose one of those folders then this folder will be selected in &kmail;'s main window.

## Composer Page

### General

Automatically insert signature

- If checked, your signature as defined in the identity page is automatically included at the end of all messages you create (&ie; new messages, replies, &etc;).

Use smart quoting

- If checked, &kmail; will break long lines but will try to keep the correct quoting (⪚ the > will always be at the start of the line).

Only quote selected text when replying

- If checked, &kmail; will quote only the selected text in the message window, instead of the complete message, when replying. With this, it is possible to quickly generate replies that quote only the relevant paragraph to which you are actually replying, and omits the other paragraphs that are not relevant to the context.

Remove the signature when replying

- If checked, &kmail; will remove the signature from the quoted text when replying to a message. This is useful since it reduces the amount of quoted text, which makes it easier to read the reply.

Automatically request message disposition notifications

- If checked, composer-options-request-mdn will default to on. Check this option only if you know what you are doing. &mdn;s are considered a nuisance (or are simply ignored) by a lot of people. It is better to decide to request them on a message-by-message basis.

Word wrap at column

- Lets you turn word wrapping on and off in the composer window and lets you set the column at which words will be wrapped (you probably should not need to change the default value, which is `78`).

Autosave interval

- A backup copy of the text in the composer window can be created regularly. This option lets you specify the interval used to create the backup. You can disable autosaving by setting it to the value `0`.

### Standard Templates

Here you can add, edit, and delete custom message templates to use when you compose a reply or forwarding message.

Message templates support substitution commands, by simply typing them or selecting them from the Insert Command menu.

These are global (default) templates. They can be overridden by per-identity templates or per-folder templates if they are specified.

### Custom Templates

Here you can add, edit, and delete custom message templates to use when you compose a reply or forwarding message. Create the custom template by typing the name into the input box and press the + button. You can bind a keyboard combination to the template for faster operations.

Message templates support substitution commands, by simply typing them or selecting them from the Insert Command menu.

There are four types of custom templates: used to Reply, Reply to All, Forward, and Universal which can be used for all kinds of operations. You cannot bind a keyboard shortcut to Universal templates.

### Subject

This section contains a list of prefixes for Reply and Forward. If you receive messages that use prefixes different to the standard ones, you can add them here so &kmail; will recognize them. This way &kmail; can ignore them for sorting messages and when setting the subject of a reply or a forwarded messages, and optionally replace them with Re: or Fwd: respectively.

### Charset

Here you can manage the default charsets used for your own messages. Every message you send will be checked if it is written in one of the listed charsets, starting at the top of the list. If it is, this charset will be used. If it is not, a dialog will show up and tell you that you manually have to choose a charset using Options Set Encoding.

If you select Keep original charset when replying or forwarding (if possible), the original message's charset will be kept, unless there are now characters that cannot be represented using that charset.

### Headers

Check the Use custom message-id suffix checkbox if you want &kmail; to generate Message-Id's with a custom suffix. Enter the desired suffix in the Custom message-id suffix field. Please make sure that the suffix that you specify is world-wide unique. The best thing is to use the name of a domain which you are the owner of. If you do not check Use custom Message-Id suffix then &kmail; will automatically generate the complete Message-Id. If you do not know what this is all about do not check this option.

The Define custom mime header fields list sets the headers that &kmail; will use for its outgoing messages. You can both invent new fields and overwrite existing ones. This feature is only useful for advanced users.

### Attachments

If you have to send attachments with filenames containing non-English characters to users of &Microsoft; Outlook or &Microsoft; Outlook Express then you might want to check the Outlook-compatible attachment naming option. &kmail; will then encode the attachment names in a non-standard way that is understood by &Microsoft; Outlook.

Note that &kmail; will create non-standard compliant messages, and consequently it is possible that your messages will not be understood by standard-compliant mail clients. So, unless you have no other choice, you should not enable this option.

Check the Enable detection of missing attachments checkbox if you want &kmail; to warn you whenever you are about to send a message without attachments although the message text contains certain words which indicate that you wanted to include an attachment. The list of key words can be modified.

### Autocorrection

To enable the feature, check the Enable autocorrection option. In the drop down box choose the language you would like to use. You can import settings from LibreOffice or another &kmail; installation by selecting the appropriate choice from the Import drop down box. If you need to save your settings for another installation or application, select the Export button.

### Autocorrect Options

Simple Autocorrection

- This allows you to configure &kmail; to autocorrect various simple corrections. Check the box next to the autocorrect feature you would like to enable.

Custom Quotes

- You can replace double or single quotes with typographical quotes by checking the appropriate box. You can also add non breaking space before specific punctuation marks in French text by selecting the option.

Advanced Autocorrection

- You can enter custom automatic word replacement by checking this option. To enter a custom string to replace automatically enter the word to be replaced in the Find box, and the replacement word in the Replace box and click the Add button. To remove a custom word replacement string, highlight the string and click Remove.

Exceptions

- This allows you to set exceptions where you would like &kmail; to ignore your autocorrect selections for end of sentence and two uppercase letters. Enter the exception and click Add button. To remove the exception, highlight the string and click Remove button.

Once you have made all of your autocorrect selections click the Apply button.

### Auto Resize Image

In some circumstances you may need to have &kmail; automatically resize image attachments on outgoing emails. ⪚ Mail server limits. To do so, select Automatically resize images. There are several options that come with this feature.

General

- Some general options for auto image resizing are as follows: If you need your images to keep the ratio of length and width intact ⪚ Photographs, select Keep ratio. The default behavior is for &kmail; to prompt and ask if you want to resize before resizing, if you want it to resize without asking, unselect Ask before resizing. &kmail; will save the file in JPG, if you would rather have them save in PNG format, select it from the Write to format drop down box.

Image

- Say you have a relative that can only receive image files of a certain size due to their email providers limits, you can use the Reduce image to maximum dimension: option to select a size to reduce the image to and enter their email into the filters on the Recipients tab. The recipients tab is discussed in further detail at the end of this section. If you need a custom size, choose the last option Custom from the width and height drop down boxes, and enter the number in the text box. You can also enlarge images by selecting Enlarge image to minimum dimension. The last option allows you to skip images of a certain filesize (this will verify image size by width x height only).

Filename

- Source filter

- If you would like the resizing to be done based on the name of the file, you would select the appropriate filter here. ⪚ You need to send your boss multiple images daily, and your boss requires them to be the same size. You could name all of your work images work1, work2 &etc; then select Include all files whose names contains one of the patterns and enter work into the Pattern: text box. You can also exclude files in the same way by selecting Exclude all files whose names contains one of the patterns. The default behavior is no filtering.

Image Format

- Select Resize all images with one of these formats to set a specific format to resize the image to.

  - When this option is enabled you must select the Select Format... button and select a format from the dialog.

Resize filename

- Select Rename resized images with the following pattern if you would like your resized images to be renamed with a specific pattern. Enter the pattern into the text box. You can use:

  - %t set current time
  - %d set current date
  - %n original filename
  - %e original extension
  - %x new extension

Recipients

- This tab is where you would specify recipients that need to have resized images. ⪚ grandma@myfamily.net; boss@mywork.com. You need to decide if you need multiple or only one, and enter the email(s) into the text box using the ; as a separator when you have multiple. You can also specify if you do not want certain recipient(s) images to be resized. The default is no filtering.

### External Editor

Use external editor instead of composer

- This selection allows you to use a different editor. Please note that the composer window will still open, and the external editor will open on top of the composer window. When you are done, save the text and exit the editor. The text will now appear in the composer window, where you can send it. Note that your editor may not return immediately, you have to use ⪚ ``gvim `-f` `%f``` for gvim.

## Security Page

### Reading

On this tab you can configure security-relevant options for reading messages.

Prefer HTML to plain text

- By default &kmail; will show &html; messages in plain text. If you prefer to view messages with &html; formatting and layout automatically, select this option. However, we recommend leaving this option off, as security problems with &html; might show up.

  You can still easily view messages in &html; format per email by clicking the plain message/html message toggle bar on the left hand side of the message window. Please see Message Window to enable this feature.

Allow messages to load external references from the Internet

- If checked, &kmail; can load external images, stylesheets &etc; from the Internet when you look at an &html; message. We strongly recommend to leave this option off (although it has no effect if you only view plain text messages).

  By adding external references to their messages, people sending spam can detect when you have looked at their message, your location, and alot of other information that gets logged on web servers. Note that this option has no effect on &Java;, JavaScript and Plugins as these are not supported in &kmail; at all, which is a good thing, as most viruses propagate through these.

Informs if message reading is a suspected email scam

- With the popularity of email, unfortunately comes the popularity of email scams. Email scams can include emails made to appear as though they come from legitimate companies, but they really link to malicious web sites requesting your personal information. This can lead to identity theft and worse. By default &kmail; analyzes messages for common scams, and will inform you if the email is a suspected scam. It is highly advised to keep this feature enabled. If you wish to disable this great feature, uncheck Informs if message reading is a suspected email scam.

  If you have legitimate emails being flagged, ⪚ from trusted friends, you can add their email to the Whitelist: by clicking the Add... and enter the email into the dialog that pops up. Please note that at this time, only individual emails are supported.

Encrypted messages

- By default, &kmail; will automatically attempt to decrypt encrypted messages when you view them. If you prefer to do it manually, unselect this option.

Certificate & Key Bundle Attachments

- If you would like to have &kmail; to Automatically import keys and certificate from incoming messages for decryption, select this option.

Message Disposition Notifications

- &mdn;s are a generalization of what is commonly called a read receipt. The message author requests a disposition notification to be sent and the receiver's mail program generates a reply from which the author can learn what happened to his message. Common disposition types include displayed (&ie; read), deleted and dispatched (⪚ forwarded).

  The following options (listed as Send policy) are available to control when &kmail; sends &mdn;s:

  Ignore (recommended)

- Ignores any request for disposition notifications. No &mdn; will ever be sent automatically.

Ask

- Answers requests only after asking the user for permission. This way, you can send &mdn;s for selected messages while denying or ignoring them for others.

Deny

- Always sends a denied notification. This is only slightly better than always sending &mdn;s. The author will still know that the messages has been acted upon, he just cannot tell whether it was deleted or read &etc;

Always send

- Always sends the requested disposition notification. That means that the author of the message gets to know when the message was acted upon and, in addition, what happened to it (displayed, deleted, &etc;). This option is strongly discouraged, but since it makes sense where privacy is not a concern, ⪚ in customer relationship management, it has been made available.

If you are unsure, experiment a while with Ask and if you find &kmail;s questions annoying, switch to Ignore.

The following options (listed as Quote original message) are available to control how much of the original message &kmail; sends back in &mdn;s.

Nothing

- No parts of the message other than the mandatory message-id and the original recipient is included in the &mdn; reply. This preserves enough information for the sender to find the message in his sent messages for which this &mdn; was generated.

Full message

- Attaches the complete message to the disposition notification. Usually, this is overkill. It does not add any valuable information that cannot be deduced from the message headers alone, but people sometimes insist on this, since it is much easier for humans to correlate the content of the message than just the headers to what they sent earlier.

Only headers

- Attaches only the headers to the disposition notification. This is usually enough to enable both humans (by subject) and computers (by message-id) to easily correlate &mdn; and original message.

If unsure, leave the option at the default.

Do not send MDNs in response to encrypted messages

- This option suppresses the sending of &mdn;s if the message is encrypted (partially or in whole). This thwarts attempts to use &kmail;'s &mdn; feature as an oracle to deduce whether you were able to decrypt the message or not.

  Strictly speaking, this option is not needed, since &kmail; sends &mdn;s regardless of whether the message could be successfully decrypted or not (the disposition notification request resides in the unencrypted part of the message), but it gives the security-conscious user the choice to either send them always if requested (option unchecked), or never (option checked).

  If unsure, leave the option checked.

Automatically import keys and certificates

- If checked, &kmail; automatically imports any attachments containing &openpgp; keys into your local keyring, and any attachments containing &smime; keys into your local key box.

  Verifying &smime; signatures always involves importing the contained certificates. This option thus does not affect this. It is also unrelated to &gpg;'s `auto-key-retrieve` feature, where &gpg; will try to import unknown keys from a key server.

### Composing

On this tab you can configure security-relevant options for composing messages.

Automatically sign messages

- If checked, the composer-options-sign-message option in the composer will default to on.

  However, you can still switch it on and off on a per-message basis.

When encrypting emails, always also encrypt to the certificate of my own identity

- If checked, any message that is encrypted to the recipients will additionally be encrypted to yourself.

  If you uncheck this option, you may not be able to decrypt the messages written by yourself and encrypted to other people anymore.

Store sent messages encrypted

This option enables a mode of using mail encryption that is sometimes (misleadingly) called transport-only encryption. In this mode of operation, the message encryption is stripped off as soon as the message has reached its destination. The encryption lasts only while the message is on its way.

&kmail; supports this mode half-heartedly, since such functionality should better placed at the mail server (MTA) than at the mail client (MUA) level. Thus, future versions of &kmail; may drop support for this option.

- If checked, messages are stored in your sent-mail folder just as you sent them (&ie; if they were encrypted, they are also stored that way).

  If unchecked, messages will always be stored unencrypted in your sent-mail folder, even if they are sent encrypted.

Always show the encryption keys for approval

- If checked, every time you encrypt a message, a dialog will appear that presents you with the encryption keys that will be used for each recipient. You can then review the choice of keys, change them, and approve or cancel the encryption operation. We recommend to keep this option checked, since it makes the encryption process more transparent.

Automatically encrypt messages whenever possible

- Also called opportunistic encryption. If checked, &kmail; will try to match recipients to (&openpgp; or &smime;) keys even when you did not specifically request encryption. If usable keys are found for all recipients, &kmail; will ask whether or not you want to encrypt the message.

  It is highly recommended to turn this on, as it makes encrypting messages really easy to use.

Never sign/encrypt when saving as draft

- If checked, &kmail; will not attempt to sign and/or encrypt messages that are merely saved to the drafts folder. This is more convenient, and does not result in a gross loss of security, provided the drafts folder is safe. &imap; users might want this option turned off, if their drafts folder is on the server.

### Miscellaneous

On this tab you can switch security-relevant warnings on and off.

Warn when trying to send unsigned messages

- If checked, &kmail; will show a warning if for whatever reason a message would be sent without being digitally signed.

Warn when trying to send unencrypted messages

- If checked, &kmail; will show a warning if for whatever reason a message would be sent without being encrypted.

  While it is common to sign all outgoing messages, encrypting them is not. So unless your company has a policy of never sending any unencrypted messages, it might be a good idea to keep this option switched off and rely on opportunistic encryption to alert you if you could send encrypted messages, but did not request it.

Warn if receiver's email address is not in certificate

- If checked, &kmail; will emit a warning if an &smime; certificate or &openpgp; key will be used for a recipient whose email address is not listed in the email addresses stored in the certificate.

  Situations in which this warning will trigger include when configuring your per-identity &openpgp; keys or &smime; certificates, when encrypting, and when verifying signatures, if the signature was made with a certificate that does not include the email address of the sender.

Warn if certificates/keys expire soon

- If checked, &kmail; will warn when an &smime; certificate or &openpgp; key is used which will expire soon.

  The period in which to warn before key/certificate expiration can then be configured separately for signing and encryption keys, as well as (in the case of &smime;), for end-user certificates, intermediate CA certificates and root certificates.

Re-Enable All "Don't Ask Again" Warnings

- Apart from the main warnings described above, there are more warning and information messages, which contain an option to not show them again. If you would like to re-enable them after choosing not to show them again, you can achieve this by pressing this button.

  This will re-enable all such warnings for &kmail;. It does not make much sense to allow more fine-grained selection of which warnings to show since you can just check the option to suppress them again when they next show up.

### &smime; Validation

This tab contains selected entries from &gpgsm;'s . Please refer to the &gpgsm; manual for a description of these options.

Validate certificates using CRLs

- If checked, &smime; certificates are validated using Certificate Revocation Lists (CRLs).

Validate certificates online (OCSP)

- If this option is selected, &smime; certificates are validated using the Online Certificates Status Protocol (OCSP).

  Fill in the &URL; of the OCSP responder in the field reserved at this effect.

OCSP responder &URL;

- Enter the address of the server for online validation of certificates. The &URL; is usually starting with https://.

OCSP responder signature

- Select or change and enter the &smime; key to use.

Ignore service &URL; of certificates

- Check this option to skip online validation using the OCSP. This Option requires dirmngr >= 0.9.0.

Do not check certificate policies

- By default, GnuPG uses the file ~/.gnupg/policies.txt to check if a certificate policy is allowed. If this option is selected, policies are not checked.

Never consult a CRLs

- If this option is checked, Certificate Revocation Lists are never used to validate &smime; certificates.

Fetch missing issuer certificates

- Check this option if you want the missing issuer certificates to be fetched when necessary. This applies to both validation methods, CRLs and OCSP.

Do not perform any &HTTP; requests

- Entirely disables the use of &HTTP; for &smime;.

Ignore &HTTP; CRL Distribution Point of certificates

- When looking for the location of a CRL, the to-be-tested certificate usually contains what are known as CRL Distribution Point (DP) entries, which are &URL;s describing the way to access the &URL;. The first found DP entry is used. With this option all entries using the &HTTP; scheme are ignored when looking for a suitable DP.

Use system &HTTP; proxy

- If this option is selected, the value of the &HTTP; proxy shown on the right (which comes from the environment variable `http_proxy`) will be used for any &HTTP; request.

Use this proxy for &HTTP; requests

- Enter here the location of your &HTTP; Proxy, which will be used for all &HTTP; requests relating to &smime; The syntax is host:port, for instance myproxy.nowhere.com:3128.

Do not perform any LDAP requests

- Entirely disables the use of LDAP for &smime;.

Ignore LDAP CRL Distribution Point of certificates

- When looking for the location of a CRL, the to-be-tested certificate usually contains what are known as CRL Distribution Point (DP) entries, which are &URL;s describing the way to access the &URL;. The first found DP entry is used. With this option all entries using the LDAP scheme are ignored when looking for a suitable DP.

Primary host for LDAP requests

- Entering a LDAP server here will make all LDAP requests go to that server first. More precisely, this setting overrides any specified host and port part in a LDAP &URL; and will also be used if host and port have been omitted from the &URL;. Other LDAP servers will be used only if the connection to the proxy failed. The syntax is HOST or HOST:PORT. If PORT is omitted, port 389 (standard LDAP port) is used.

## Misc Page

### Folders

Ask for confirmation before moving all messages to trash

- Enable this option if you want to be asked for confirmation whenever you use Folder Move All to Trash.

Exclude important messages from expiry

- Enable this option if important messages should never be deleted during message expiration, &ie; during automatic deletion of old messages.

When trying to find unread messages

- This option controls what happens if you press one of the shortcuts to go to the next or previous unread message (⪚ Space). If you ask &kmail; to go to the next unread message although there is no unread message below the currently selected message then the following happens:

  - If Do not Loop is selected then nothing will happen.

  - If Loop in Current Folder is selected then &kmail; will search from the beginning of the current folder for an unread message. If none is found then nothing happens.

  - If Loop in All Folders is selected then &kmail; will first search in the current folder for another unread message. If none is found then &kmail; will search the next folder containing unread messages.

  Correspondingly, if you ask &kmail; to go to the previous unread message.

When entering a folder

- This option controls what happens if you open a folder.

  - If Jump to First Unread Message is selected then &kmail; will select the first message it finds that is marked as unread.

  - If Jump to Last Selected Message is selected then &kmail; will select the message that was selected when the folder was open the last time.

  - If Jump to Newest Message is selected then &kmail; will select the newest message by date.

  - If Jump to Oldest Message is selected then &kmail; will select the oldest message by date.

Mark selected message as read after...

- When you select a new or unread message, &kmail; will change the message's status to read after the number of seconds entered here. If you disable this option, messages will keep their new or unread status.

Ask for action after dragging messages to another folder

- When you drag a message to a different folder, a small popup will ask you if you want to move or copy the message. If you disable this option, the message will be moved immediately, without a popup.

Open this folder on startup

- Here you can set the folder that should be selected by default if you start &kmail;. If you use only &imap; folders then you might want to set this to your &imap; inbox folder. If you do that, you can collapse the local folders in the folder list, and then they will stay collapsed when &kmail; starts.

Empty the local trash folder on program exit

- The trash folder is cleared of messages when you quit &kmail; if this option is selected.

### Invitations

Mangle From:/To: headers in replies to invitations

- Enable this option to make &Microsoft; Outlook understand your answers to invitations replies.

Send invitations in the mail body

- Invitations are usually sent as attachments to a mail. When this option is enabled, invitation are sent in the text of the mail, which is necessary to send invitations and replies to &Microsoft; Outlook.

Exchange compatible invitations naming

- &Microsoft; Outlook, when used in combination with a &Microsoft; Exchange server, has a problem understanding standards-compliant groupware e-mail. Enable this option to send groupware invitations in a way that &Microsoft; Exchange understands. The invitation will be sent as an attachment with name `ical.ics`.

Outlook compatible invitation reply comments

- When the user provides comments when responding to invitations, send the comment in a way that &Microsoft; Outlook understands. If this option is not enabled, the response comments will not be seen in Outlook.

Show invitation update differences in the Outlook style

- When viewing updated invitations, this option enables the differences between the previous and current invitations to be displayed in a way very much like &Microsoft; Outlook. This is the default. The user can turn this option off if they want to see the invitation update differences shown in the classic &kmail; style.

Automatic invitation sending

- When this is checked, you will not see the mail composer window. Instead, all invitation mails are sent automatically. If you want to see the mail before sending it, you can uncheck this option. However, be aware that the text in the composer window is in iCalendar syntax, and you should not try modifying it by hand.

Delete invitation emails after the reply to them has been sent

- When this is checked, received invitation emails that have been replied to will be moved to the Trash folder, once the reply has been successfully sent.

## Options without a user interface representation

Apart from the options presented in the configuration dialog, some options can only be set directly in the &kmail; configuration file or through KIOSK (⪚ Input into &konsole;). These so called hidden configuration options cannot be changed via the normal &kmail; Settings dialog; they must be made by modifying the configuration file using a text editor or the `kwriteconfig` program. The configuration file is to be written in the format of [Section Name] and the following lines are the variables and their settings. If you are manually editing the configuration file you will need to add the [Section Name] before adding variables. The `kwriteconfig` will add the section for you as long as you use the `--group` switch.

The &kmail; configuration file is called `kmail2rc` and can be found in your home directory. The location can vary according to your operating system or distribution, but can always be found by running the command ``kde4-config --path config --locate kmail2rc``. For the remainder of this section, assume that the configuration file is located in `/path/to/kmail2rc`.

Whenever changing these options, make sure to quit &kmail; first before editing the configuration file. Only restart &kmail; after you have made and saved the changes to the configuration file.

SendMDNsWithEmptySender

- Send Message Disposition Notifications with an empty sender string. Some servers might be configured to reject such messages, so if you are experiencing problems sending MDNs, make sure this option is set to false. To enable this feature, add to the [MDN] section:

  - Configuration file:

        SendMDNsWithEmptySender=true

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group MDN --key SendMDNsWithEmptySender true``

  The default setting of false strictly speaking violates Internet standards, but is set that way for practical reasons, to avoid servers rejecting MDNs that &kmail; generates because they think they are SPAM.

CloseDespiteSystemTray

- This option allows you to configure the application to close fully, even if there is a system tray icon configured, which would normally keep the application running. To enable the feature, add to the [General] section:

  - Configuration file:

        CloseDespiteSystemTray=true

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group General --key CloseDespiteSystemTray true``

disregardUmask

- In versions prior to 1.9, &kmail; saved all attachments to disk with permissions set to 600 — only readable or writable by the owner of the file. In response to user feedback, this was made configurable in &kmail; version 1.9, with the defaults changed to honour the umask set on the user account while saving files to disk. To enable this feature, add to the [General] section:

  - Configuration file:

        disregardUmask=true

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group General --key disregardUmask true``

CheckOutOfOfficeOnStartup

- With this option enabled, &kmail; will check on every startup if there is an active out-of-office configured and show a warning if this is the case. To disable the feature, add to the [OutOfOffice] section:

  - Configuration file:

        CheckOutOfOfficeOnStartup=false

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group OutOfOffice --key CheckOutOfOfficeOnStartup false``

AllowOutOfOfficeSettings

- In case you don't want users to be able to upload their own out-of-office scripts to the server you can add to the [OutOfOffice] section:

  - Configuration file:

        AllowOutOfOfficeSettings=false

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group OutOfOffice --key AllowOutOfOfficeSettings false``

AllowOutOfOfficeUploadButNoSettings

- If you want to allow your users to upload their own out-of-office scripts but you do not want them to be able to change the domain to react to and the react-to-spam setting, you can add to the [OutOfOffice] section:

  - Configuration file:

        AllowOutOfOfficeUploadButNoSettings=true

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group OutOfOffice --key AllowOutOfOfficeUploadButNoSettings true``

OutOfOfficeDomain

- When editing vacation (out-of-office) scripts, the user can specify a domain to limit the sending of such replies to. Applying defaults to the out-of-office configuration dialog via the corresponding button will restore this domain, in case the user has changed it. To pre-load this setting with a default value, add to the [OutOfOffice] section:

  - Configuration file:

        OutOfOfficeDomain=myMailDomain.test

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group OutOfOffice --key OutOfOfficeDomain myMailDomain.test``

OutOfOfficeReactToSpam

- By default, out-of-office replies are not sent to messages marked as SPAM. To override this behavior, add to the [OutOfOffice] section:

  - Configuration file:

        OutOfOfficeReactToSpam=true

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group OutOfOffice --key OutOfOfficeReactToSpam true``

ShowUserAgent

- Starting in version 1.9, &kmail; can show the User-Agent or X-Mailer value from the message header when using Fancy Headers (see View Headers menu). To enable this feature, add to the [Reader] section:

  - Configuration file:

        ShowUserAgent=true

  - `kwriteconfig`

    `%` ``kwriteconfig` `--file `/path/to/kmail2rc` --group Reader --key ShowUserAgent true``