ESourceMDN

ESourceMDN — ESource extension for MDN settings

Synopsis

#include <libedataserver/libedataserver.h>

struct              ESourceMDN;
#define             E_SOURCE_EXTENSION_MDN
enum                EMdnResponsePolicy;
EMdnResponsePolicy  e_source_mdn_get_response_policy    (ESourceMDN *extension);
void                e_source_mdn_set_response_policy    (ESourceMDN *extension,
                                                         EMdnResponsePolicy response_policy);

Object Hierarchy

  GObject
   +----ESourceExtension
         +----ESourceMDN

Properties

  "response-policy"          EMdnResponsePolicy    : Read / Write / Construct

Description

The ESourceMDN extension tracks Message Disposition Notification settings for a mail account. See RFC 2298 for more information about Message Disposition Notification.

Access the extension as follows:

1
2
3
4
5
#include <libedataserver/libedataserver.h>

ESourceMDN *extension;

extension = e_source_get_extension (source, E_SOURCE_EXTENSION_MDN);

Details

struct ESourceMDN

struct ESourceMDN;

Contains only private data that should be read and manipulated using the functions below.

Since 3.6


E_SOURCE_EXTENSION_MDN

#define E_SOURCE_EXTENSION_MDN "Message Disposition Notifications"

Pass this extension name to e_source_get_extension() to access ESourceMDN. This is also used as a group name in key files.

Since 3.6


enum EMdnResponsePolicy

typedef enum {
	E_MDN_RESPONSE_POLICY_NEVER,
	E_MDN_RESPONSE_POLICY_ALWAYS,
	E_MDN_RESPONSE_POLICY_ASK
} EMdnResponsePolicy;

Policy for responding to Message Disposition Notification requests (i.e. a Disposition-Notification-To header) when receiving messages. See RFC 2298 for more information about MDN requests.

E_MDN_RESPONSE_POLICY_NEVER

Never respond to an MDN request.

E_MDN_RESPONSE_POLICY_ALWAYS

Always respond to an MDN request.

E_MDN_RESPONSE_POLICY_ASK

Ask the user before responding to an MDN request.

Since 3.6


e_source_mdn_get_response_policy ()

EMdnResponsePolicy  e_source_mdn_get_response_policy    (ESourceMDN *extension);

Returns the policy for this mail account on responding to Message Disposition Notification requests when receiving mail messages.

extension :

an ESourceMDN

Returns :

the EMdnResponsePolicy for this account

Since 3.6


e_source_mdn_set_response_policy ()

void                e_source_mdn_set_response_policy    (ESourceMDN *extension,
                                                         EMdnResponsePolicy response_policy);

Sets the policy for this mail account on responding to Message Disposition Notification requests when receiving mail messages.

extension :

an ESourceMDN

response_policy :

the EMdnResponsePolicy

Since 3.6

Property Details

The "response-policy" property

  "response-policy"          EMdnResponsePolicy    : Read / Write / Construct

Policy for responding to MDN requests.

Default value: E_MDN_RESPONSE_POLICY_ASK