EMailExtensionRegistry: Evolution Mail Formatter Reference Manual

## EMailExtensionRegistry EMailExtensionRegistry |

## Functions

GQueue * | e_mail_extension_registry_get_for_mime_type ()
GQueue * | e_mail_extension_registry_get_fallback ()
void | e_mail_parser_extension_registry_load ()
void | e_mail_formatter_extension_registry_load ()

## Types and Values

struct | EMailExtensionRegistry
struct | EMailParserExtensionRegistry
struct | EMailFormatterExtensionRegistry

## Object Hierarchy

        GObject
        ╰── EMailExtensionRegistry
            ├── EMailFormatterExtensionRegistry
            ╰── EMailParserExtensionRegistry

## Implemented Interfaces

EMailParserExtensionRegistry implements EExtensible.

EMailFormatterExtensionRegistry implements EExtensible.

## Description

## Functions

### e_mail_extension_registry_get_for_mime_type ()

    GQueue *
    e_mail_extension_registry_get_for_mime_type
                                   (EMailExtensionRegistry *registry,
                                    const gchar *mime_type);

Tries to lookup list of EMailExtension<!-//>s that has registryed themselves as handlers for the `mime_type` .

#### Parameters

registry | An EMailExtensionRegistry |
mime_type | A string with mime-type to look up |

#### Returns

Returns GQueue of EMailExtension<!-//>s or `NULL` when there are no extension registryed for given `mime_type` .

### e_mail_extension_registry_get_fallback ()

    GQueue *
    e_mail_extension_registry_get_fallback
                                   (EMailExtensionRegistry *registry,
                                    const gchar *mime_type);

Tries to lookup fallback parsers for given mime type. For instance, for multipart/alternative, it will try to lookup multipart/ * parser.

#### Parameters

registry | An EMailExtensionRegistry |
mime_type | A string with mime-type whose fallback to look up |

#### Returns

Returns QGueue of EMailExtension<!-//>>s or `NULL` when there are no extensions registryed for the fallback type.

### e_mail_parser_extension_registry_load ()

    void
    e_mail_parser_extension_registry_load (EMailParserExtensionRegistry *registry);

### e_mail_formatter_extension_registry_load ()

    void
    e_mail_formatter_extension_registry_load
                                   (EMailFormatterExtensionRegistry *registry,
                                    GType base_extension_type);

## Types and Values

### struct EMailExtensionRegistry

    struct EMailExtensionRegistry;

The EMailExtensionRegistry is an abstract class representing a registry for EMailExtension<!-//>s.

EMailParser and EMailFormatter both have internally a registry object based on the EMailExtensionRegistry.

One extension can registry itself for more mime-types.

### struct EMailParserExtensionRegistry

    struct EMailParserExtensionRegistry;

### struct EMailFormatterExtensionRegistry

    struct EMailFormatterExtensionRegistry;