|
Packit |
15f964 |
/*
|
|
Packit |
15f964 |
* e-mail-part.c
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* This program is free software; you can redistribute it and/or modify it
|
|
Packit |
15f964 |
* under the terms of the GNU Lesser General Public License as published by
|
|
Packit |
15f964 |
* the Free Software Foundation.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
15f964 |
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
Packit |
15f964 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
Packit |
15f964 |
* for more details.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
15f964 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
*/
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/**
|
|
Packit |
15f964 |
* EMailPart:
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* The #EMailPart is a wrapper around #CamelMimePart which holds additional
|
|
Packit |
15f964 |
* information about the mime part, like it's ID, encryption type etc.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Each #EMailPart must have a unique ID. The ID is a dot-separated
|
|
Packit |
15f964 |
* hierarchical description of the location of the part within the email
|
|
Packit |
15f964 |
* message.
|
|
Packit |
15f964 |
*/
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#include "evolution-config.h"
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#include "e-mail-part.h"
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#include <string.h>
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#include "e-mail-part-attachment.h"
|
|
Packit |
15f964 |
#include "e-mail-part-list.h"
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#define E_MAIL_PART_GET_PRIVATE(obj) \
|
|
Packit |
15f964 |
(G_TYPE_INSTANCE_GET_PRIVATE \
|
|
Packit |
15f964 |
((obj), E_TYPE_MAIL_PART, EMailPartPrivate))
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
struct _EMailPartPrivate {
|
|
Packit |
15f964 |
GWeakRef part_list;
|
|
Packit |
15f964 |
CamelMimePart *mime_part;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gchar *id;
|
|
Packit |
15f964 |
gchar *cid;
|
|
Packit |
15f964 |
gchar *mime_type;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean is_attachment;
|
|
Packit |
15f964 |
gboolean converted_to_utf8;
|
|
Packit |
15f964 |
};
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
enum {
|
|
Packit |
15f964 |
PROP_0,
|
|
Packit |
15f964 |
PROP_CID,
|
|
Packit |
15f964 |
PROP_CONVERTED_TO_UTF8,
|
|
Packit |
15f964 |
PROP_ID,
|
|
Packit |
15f964 |
PROP_IS_ATTACHMENT,
|
|
Packit |
15f964 |
PROP_MIME_PART,
|
|
Packit |
15f964 |
PROP_MIME_TYPE,
|
|
Packit |
15f964 |
PROP_PART_LIST
|
|
Packit |
15f964 |
};
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
G_DEFINE_TYPE_WITH_CODE (
|
|
Packit |
15f964 |
EMailPart,
|
|
Packit |
15f964 |
e_mail_part,
|
|
Packit |
15f964 |
G_TYPE_OBJECT,
|
|
Packit |
15f964 |
G_IMPLEMENT_INTERFACE (
|
|
Packit |
15f964 |
E_TYPE_EXTENSIBLE, NULL))
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_validity_pair_free (gpointer ptr)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartValidityPair *pair = ptr;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (!pair)
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
camel_cipher_validity_free (pair->validity);
|
|
Packit |
15f964 |
g_free (pair);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_set_id (EMailPart *part,
|
|
Packit |
15f964 |
const gchar *id)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (part->priv->id == NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
part->priv->id = g_strdup (id);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_set_mime_part (EMailPart *part,
|
|
Packit |
15f964 |
CamelMimePart *mime_part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (part->priv->mime_part == NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* The CamelMimePart is optional. */
|
|
Packit |
15f964 |
if (mime_part != NULL)
|
|
Packit |
15f964 |
part->priv->mime_part = g_object_ref (mime_part);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_set_property (GObject *object,
|
|
Packit |
15f964 |
guint property_id,
|
|
Packit |
15f964 |
const GValue *value,
|
|
Packit |
15f964 |
GParamSpec *pspec)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
switch (property_id) {
|
|
Packit |
15f964 |
case PROP_CID:
|
|
Packit |
15f964 |
e_mail_part_set_cid (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_string (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_CONVERTED_TO_UTF8:
|
|
Packit |
15f964 |
e_mail_part_set_converted_to_utf8 (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_boolean (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_ID:
|
|
Packit |
15f964 |
mail_part_set_id (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_string (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_IS_ATTACHMENT:
|
|
Packit |
15f964 |
e_mail_part_set_is_attachment (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_boolean (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_MIME_PART:
|
|
Packit |
15f964 |
mail_part_set_mime_part (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_object (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_MIME_TYPE:
|
|
Packit |
15f964 |
e_mail_part_set_mime_type (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_string (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_PART_LIST:
|
|
Packit |
15f964 |
e_mail_part_set_part_list (
|
|
Packit |
15f964 |
E_MAIL_PART (object),
|
|
Packit |
15f964 |
g_value_get_object (value));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_get_property (GObject *object,
|
|
Packit |
15f964 |
guint property_id,
|
|
Packit |
15f964 |
GValue *value,
|
|
Packit |
15f964 |
GParamSpec *pspec)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
switch (property_id) {
|
|
Packit |
15f964 |
case PROP_CID:
|
|
Packit |
15f964 |
g_value_set_string (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_get_cid (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_CONVERTED_TO_UTF8:
|
|
Packit |
15f964 |
g_value_set_boolean (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_get_converted_to_utf8 (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_ID:
|
|
Packit |
15f964 |
g_value_set_string (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_get_id (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_IS_ATTACHMENT:
|
|
Packit |
15f964 |
g_value_set_boolean (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_get_is_attachment (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_MIME_PART:
|
|
Packit |
15f964 |
g_value_take_object (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_ref_mime_part (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_MIME_TYPE:
|
|
Packit |
15f964 |
g_value_set_string (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_get_mime_type (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
case PROP_PART_LIST:
|
|
Packit |
15f964 |
g_value_take_object (
|
|
Packit |
15f964 |
value,
|
|
Packit |
15f964 |
e_mail_part_ref_part_list (
|
|
Packit |
15f964 |
E_MAIL_PART (object)));
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_dispose (GObject *object)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartPrivate *priv;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
priv = E_MAIL_PART_GET_PRIVATE (object);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_weak_ref_set (&priv->part_list, NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_clear_object (&priv->mime_part);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* Chain up to parent's dispose() method. */
|
|
Packit |
15f964 |
G_OBJECT_CLASS (e_mail_part_parent_class)->dispose (object);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_finalize (GObject *object)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPart *part = E_MAIL_PART (object);
|
|
Packit |
15f964 |
EMailPartValidityPair *pair;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_free (part->priv->id);
|
|
Packit |
15f964 |
g_free (part->priv->cid);
|
|
Packit |
15f964 |
g_free (part->priv->mime_type);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
while ((pair = g_queue_pop_head (&part->validities)) != NULL)
|
|
Packit |
15f964 |
mail_part_validity_pair_free (pair);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* Chain up to parent's finalize() method. */
|
|
Packit |
15f964 |
G_OBJECT_CLASS (e_mail_part_parent_class)->finalize (object);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
mail_part_constructed (GObject *object)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
/* Chain up to parent's constructed() method. */
|
|
Packit |
15f964 |
G_OBJECT_CLASS (e_mail_part_parent_class)->constructed (object);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
e_extensible_load_extensions (E_EXTENSIBLE (object));
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
e_mail_part_class_init (EMailPartClass *class)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
GObjectClass *object_class;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_type_class_add_private (class, sizeof (EMailPartPrivate));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
object_class = G_OBJECT_CLASS (class);
|
|
Packit |
15f964 |
object_class->set_property = mail_part_set_property;
|
|
Packit |
15f964 |
object_class->get_property = mail_part_get_property;
|
|
Packit |
15f964 |
object_class->dispose = mail_part_dispose;
|
|
Packit |
15f964 |
object_class->finalize = mail_part_finalize;
|
|
Packit |
15f964 |
object_class->constructed = mail_part_constructed;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_CID,
|
|
Packit |
15f964 |
g_param_spec_string (
|
|
Packit |
15f964 |
"cid",
|
|
Packit |
15f964 |
"Content ID",
|
|
Packit |
15f964 |
"The MIME Content-ID",
|
|
Packit |
15f964 |
NULL,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_CONVERTED_TO_UTF8,
|
|
Packit |
15f964 |
g_param_spec_boolean (
|
|
Packit |
15f964 |
"converted-to-utf8",
|
|
Packit |
15f964 |
"Converted To UTF8",
|
|
Packit |
15f964 |
"Whether the part content was already converted to UTF-8",
|
|
Packit |
15f964 |
FALSE,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_ID,
|
|
Packit |
15f964 |
g_param_spec_string (
|
|
Packit |
15f964 |
"id",
|
|
Packit |
15f964 |
"Part ID",
|
|
Packit |
15f964 |
"The part ID",
|
|
Packit |
15f964 |
NULL,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_CONSTRUCT_ONLY |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_IS_ATTACHMENT,
|
|
Packit |
15f964 |
g_param_spec_boolean (
|
|
Packit |
15f964 |
"is-attachment",
|
|
Packit |
15f964 |
"Is Attachment",
|
|
Packit |
15f964 |
"Format the part as an attachment",
|
|
Packit |
15f964 |
FALSE,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_CONSTRUCT |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_MIME_PART,
|
|
Packit |
15f964 |
g_param_spec_object (
|
|
Packit |
15f964 |
"mime-part",
|
|
Packit |
15f964 |
"MIME Part",
|
|
Packit |
15f964 |
"The MIME part",
|
|
Packit |
15f964 |
CAMEL_TYPE_MIME_PART,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_CONSTRUCT_ONLY |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_MIME_TYPE,
|
|
Packit |
15f964 |
g_param_spec_string (
|
|
Packit |
15f964 |
"mime-type",
|
|
Packit |
15f964 |
"MIME Type",
|
|
Packit |
15f964 |
"The MIME type",
|
|
Packit |
15f964 |
NULL,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_class_install_property (
|
|
Packit |
15f964 |
object_class,
|
|
Packit |
15f964 |
PROP_PART_LIST,
|
|
Packit |
15f964 |
g_param_spec_object (
|
|
Packit |
15f964 |
"part-list",
|
|
Packit |
15f964 |
"Part List",
|
|
Packit |
15f964 |
"The part list that owns the part",
|
|
Packit |
15f964 |
E_TYPE_MAIL_PART_LIST,
|
|
Packit |
15f964 |
G_PARAM_READWRITE |
|
|
Packit |
15f964 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static void
|
|
Packit |
15f964 |
e_mail_part_init (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
part->priv = E_MAIL_PART_GET_PRIVATE (part);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/**
|
|
Packit |
15f964 |
* e_mail_part_new:
|
|
Packit |
15f964 |
* @mime_part: (allow-none) a #CamelMimePart or %NULL
|
|
Packit |
15f964 |
* @id: part ID
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Creates a new #EMailPart for the given @mime_part.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Return value: a new #EMailPart
|
|
Packit |
15f964 |
*/
|
|
Packit |
15f964 |
EMailPart *
|
|
Packit |
15f964 |
e_mail_part_new (CamelMimePart *mime_part,
|
|
Packit |
15f964 |
const gchar *id)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (id != NULL, NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return g_object_new (
|
|
Packit |
15f964 |
E_TYPE_MAIL_PART,
|
|
Packit |
15f964 |
"id", id, "mime-part", mime_part, NULL);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
const gchar *
|
|
Packit |
15f964 |
e_mail_part_get_id (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return part->priv->id;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
const gchar *
|
|
Packit |
15f964 |
e_mail_part_get_cid (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return part->priv->cid;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_set_cid (EMailPart *part,
|
|
Packit |
15f964 |
const gchar *cid)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_free (part->priv->cid);
|
|
Packit |
15f964 |
part->priv->cid = g_strdup (cid);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_notify (G_OBJECT (part), "cid");
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_id_has_prefix (EMailPart *part,
|
|
Packit |
15f964 |
const gchar *prefix)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
g_return_val_if_fail (prefix != NULL, FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return g_str_has_prefix (part->priv->id, prefix);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_id_has_suffix (EMailPart *part,
|
|
Packit |
15f964 |
const gchar *suffix)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
g_return_val_if_fail (suffix != NULL, FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return g_str_has_suffix (part->priv->id, suffix);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_id_has_substr (EMailPart *part,
|
|
Packit |
15f964 |
const gchar *substr)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
g_return_val_if_fail (substr != NULL, FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return (strstr (part->priv->id, substr) != NULL);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
CamelMimePart *
|
|
Packit |
15f964 |
e_mail_part_ref_mime_part (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
CamelMimePart *mime_part = NULL;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (part->priv->mime_part != NULL)
|
|
Packit |
15f964 |
mime_part = g_object_ref (part->priv->mime_part);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return mime_part;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
const gchar *
|
|
Packit |
15f964 |
e_mail_part_get_mime_type (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return part->priv->mime_type;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_set_mime_type (EMailPart *part,
|
|
Packit |
15f964 |
const gchar *mime_type)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (g_strcmp0 (mime_type, part->priv->mime_type) == 0)
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_free (part->priv->mime_type);
|
|
Packit |
15f964 |
part->priv->mime_type = g_strdup (mime_type);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_notify (G_OBJECT (part), "mime-type");
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_get_converted_to_utf8 (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return part->priv->converted_to_utf8;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_set_converted_to_utf8 (EMailPart *part,
|
|
Packit |
15f964 |
gboolean converted_to_utf8)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (converted_to_utf8 == part->priv->converted_to_utf8)
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
part->priv->converted_to_utf8 = converted_to_utf8;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_notify (G_OBJECT (part), "converted-to-utf8");
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_should_show_inline (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
CamelMimePart *mime_part;
|
|
Packit |
15f964 |
const CamelContentDisposition *disposition;
|
|
Packit |
15f964 |
gboolean res = FALSE;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* Automatically expand attachments that have inline
|
|
Packit |
15f964 |
* disposition or the EMailParts have specific
|
|
Packit |
15f964 |
* force_inline flag set. */
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (part->force_collapse)
|
|
Packit |
15f964 |
return FALSE;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (part->force_inline)
|
|
Packit |
15f964 |
return TRUE;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (E_IS_MAIL_PART_ATTACHMENT (part)) {
|
|
Packit |
15f964 |
EMailPartAttachment *empa = E_MAIL_PART_ATTACHMENT (part);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (g_strcmp0 (empa->snoop_mime_type, "message/rfc822") == 0)
|
|
Packit |
15f964 |
return TRUE;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
mime_part = e_mail_part_ref_mime_part (part);
|
|
Packit |
15f964 |
if (!mime_part)
|
|
Packit |
15f964 |
return FALSE;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
disposition = camel_mime_part_get_content_disposition (mime_part);
|
|
Packit |
15f964 |
if (disposition && disposition->disposition &&
|
|
Packit |
15f964 |
g_ascii_strncasecmp (disposition->disposition, "inline", 6) == 0) {
|
|
Packit |
15f964 |
GSettings *settings;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
settings = e_util_ref_settings ("org.gnome.evolution.mail");
|
|
Packit |
15f964 |
res = g_settings_get_boolean (settings, "display-content-disposition-inline");
|
|
Packit |
15f964 |
g_clear_object (&settings);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_unref (mime_part);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return res;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
EMailPartList *
|
|
Packit |
15f964 |
e_mail_part_ref_part_list (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return g_weak_ref_get (&part->priv->part_list);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_set_part_list (EMailPart *part,
|
|
Packit |
15f964 |
EMailPartList *part_list)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (part_list != NULL)
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART_LIST (part_list));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_weak_ref_set (&part->priv->part_list, part_list);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_notify (G_OBJECT (part), "part-list");
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_get_is_attachment (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return part->priv->is_attachment;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_set_is_attachment (EMailPart *part,
|
|
Packit |
15f964 |
gboolean is_attachment)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (is_attachment == part->priv->is_attachment)
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
part->priv->is_attachment = is_attachment;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_object_notify (G_OBJECT (part), "is-attachment");
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_bind_dom_element (EMailPart *part,
|
|
Packit |
15f964 |
EWebView *web_view,
|
|
Packit |
15f964 |
guint64 page_id,
|
|
Packit |
15f964 |
const gchar *element_id)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartClass *class;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_WEB_VIEW (web_view));
|
|
Packit |
15f964 |
g_return_if_fail (page_id != 0);
|
|
Packit |
15f964 |
g_return_if_fail (element_id && *element_id);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
class = E_MAIL_PART_GET_CLASS (part);
|
|
Packit |
15f964 |
g_return_if_fail (class != NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (class->bind_dom_element != NULL)
|
|
Packit |
15f964 |
class->bind_dom_element (part, web_view, page_id, element_id);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_web_view_loaded (EMailPart *part,
|
|
Packit |
15f964 |
EWebView *web_view)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartClass *klass;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_WEB_VIEW (web_view));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
klass = E_MAIL_PART_GET_CLASS (part);
|
|
Packit |
15f964 |
g_return_if_fail (klass != NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (klass->web_view_loaded)
|
|
Packit |
15f964 |
klass->web_view_loaded (part, web_view);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static EMailPartValidityPair *
|
|
Packit |
15f964 |
mail_part_find_validity_pair (EMailPart *part,
|
|
Packit |
15f964 |
EMailPartValidityFlags validity_type)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
GList *head, *link;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
head = g_queue_peek_head_link (&part->validities);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
for (link = head; link != NULL; link = g_list_next (link)) {
|
|
Packit |
15f964 |
EMailPartValidityPair *pair = link->data;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (pair == NULL)
|
|
Packit |
15f964 |
continue;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if ((pair->validity_type & validity_type) == validity_type)
|
|
Packit |
15f964 |
return pair;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return NULL;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/**
|
|
Packit |
15f964 |
* e_mail_part_update_validity:
|
|
Packit |
15f964 |
* @part: An #EMailPart
|
|
Packit |
15f964 |
* @validity: a #CamelCipherValidity
|
|
Packit |
15f964 |
* @validity_type: E_MAIL_PART_VALIDITY_* flags
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Updates validity of the @part. When the part already has some validity
|
|
Packit |
15f964 |
* set, the new @validity and @validity_type are just appended, preserving
|
|
Packit |
15f964 |
* the original validity. Validities of the same type (PGP or S/MIME) are
|
|
Packit |
15f964 |
* merged together.
|
|
Packit |
15f964 |
*/
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_update_validity (EMailPart *part,
|
|
Packit |
15f964 |
CamelCipherValidity *validity,
|
|
Packit |
15f964 |
EMailPartValidityFlags validity_type)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartValidityPair *pair;
|
|
Packit |
15f964 |
EMailPartValidityFlags mask;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
g_return_if_fail (validity != NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
mask = E_MAIL_PART_VALIDITY_PGP | E_MAIL_PART_VALIDITY_SMIME;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
pair = mail_part_find_validity_pair (part, validity_type & mask);
|
|
Packit |
15f964 |
if (pair != NULL) {
|
|
Packit |
15f964 |
pair->validity_type |= validity_type;
|
|
Packit |
15f964 |
camel_cipher_validity_envelope (pair->validity, validity);
|
|
Packit |
15f964 |
} else {
|
|
Packit |
15f964 |
pair = g_new0 (EMailPartValidityPair, 1);
|
|
Packit |
15f964 |
pair->validity_type = validity_type;
|
|
Packit |
15f964 |
pair->validity = camel_cipher_validity_clone (validity);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_queue_push_tail (&part->validities, pair);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/**
|
|
Packit |
15f964 |
* e_mail_part_get_validity:
|
|
Packit |
15f964 |
* @part: An #EMailPart
|
|
Packit |
15f964 |
* @validity_type: E_MAIL_PART_VALIDITY_* flags
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Returns, validity of @part contains any validity with the same bits
|
|
Packit |
15f964 |
* as @validity_type set. It should contain all bits of it.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Returns: a #CamelCipherValidity of the given type, %NULL if not found
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Since: 3.8
|
|
Packit |
15f964 |
*/
|
|
Packit |
15f964 |
CamelCipherValidity *
|
|
Packit |
15f964 |
e_mail_part_get_validity (EMailPart *part,
|
|
Packit |
15f964 |
EMailPartValidityFlags validity_type)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartValidityPair *pair;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), NULL);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
pair = mail_part_find_validity_pair (part, validity_type);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return (pair != NULL) ? pair->validity : NULL;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
gboolean
|
|
Packit |
15f964 |
e_mail_part_has_validity (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), FALSE);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return !g_queue_is_empty (&part->validities);
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
EMailPartValidityFlags
|
|
Packit |
15f964 |
e_mail_part_get_validity_flags (EMailPart *part)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
EMailPartValidityFlags flags = 0;
|
|
Packit |
15f964 |
GList *head, *link;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_val_if_fail (E_IS_MAIL_PART (part), 0);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
head = g_queue_peek_head_link (&part->validities);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
for (link = head; link != NULL; link = g_list_next (link)) {
|
|
Packit |
15f964 |
EMailPartValidityPair *pair = link->data;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (pair != NULL)
|
|
Packit |
15f964 |
flags |= pair->validity_type;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return flags;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
static gboolean
|
|
Packit |
15f964 |
from_matches_signers_alt_emails (CamelInternetAddress *from_address,
|
|
Packit |
15f964 |
CamelCipherCertInfo *cinfo)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
GSList *props_link;
|
|
Packit |
15f964 |
gboolean matches = FALSE;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
for (props_link = cinfo->properties; props_link && !matches; props_link = g_slist_next (props_link)) {
|
|
Packit |
15f964 |
const CamelCipherCertInfoProperty *prop = props_link->data;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (prop && g_strcmp0 (prop->name, CAMEL_CIPHER_CERT_INFO_PROPERTY_SIGNERS_ALT_EMAILS) == 0 && prop->value) {
|
|
Packit |
15f964 |
CamelInternetAddress *address;
|
|
Packit |
15f964 |
gint count, ii;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
address = camel_internet_address_new ();
|
|
Packit |
15f964 |
count = camel_address_unformat (CAMEL_ADDRESS (address), prop->value);
|
|
Packit |
15f964 |
for (ii = 0; ii < count && !matches; ii++) {
|
|
Packit |
15f964 |
const gchar *email = NULL;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (camel_internet_address_get (address, ii, NULL, &email) && email && *email) {
|
|
Packit |
15f964 |
matches = camel_internet_address_find_address (from_address, email, NULL) >= 0;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
g_object_unref (address);
|
|
Packit |
15f964 |
break;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
return matches;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
void
|
|
Packit |
15f964 |
e_mail_part_verify_validity_sender (EMailPart *part,
|
|
Packit |
15f964 |
CamelInternetAddress *from_address)
|
|
Packit |
15f964 |
{
|
|
Packit |
15f964 |
GList *link;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
g_return_if_fail (E_IS_MAIL_PART (part));
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (!from_address)
|
|
Packit |
15f964 |
return;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
for (link = g_queue_peek_head_link (&part->validities); link; link = g_list_next (link)) {
|
|
Packit |
15f964 |
EMailPartValidityPair *pair = link->data;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (pair && pair->validity && !(pair->validity_type & E_MAIL_PART_VALIDITY_VERIFIED)) {
|
|
Packit |
15f964 |
pair->validity_type |= E_MAIL_PART_VALIDITY_VERIFIED;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (pair->validity->sign.status != CAMEL_CIPHER_VALIDITY_SIGN_NONE) {
|
|
Packit |
15f964 |
GList *link2;
|
|
Packit |
15f964 |
gboolean from_matches_signer = FALSE;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
for (link2 = g_queue_peek_head_link (&pair->validity->sign.signers); link2 && !from_matches_signer; link2 = g_list_next (link2)) {
|
|
Packit |
15f964 |
CamelCipherCertInfo *cinfo = link2->data;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (cinfo->email && *cinfo->email) {
|
|
Packit |
15f964 |
from_matches_signer = from_matches_signer ||
|
|
Packit |
15f964 |
(from_address && camel_internet_address_find_address (from_address, cinfo->email, NULL) >= 0) ||
|
|
Packit |
15f964 |
(from_address && from_matches_signers_alt_emails (from_address, cinfo));
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
if (!from_matches_signer)
|
|
Packit |
15f964 |
pair->validity_type |= E_MAIL_PART_VALIDITY_SENDER_SIGNER_MISMATCH;
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|
|
Packit |
15f964 |
}
|