/* * e-mail-parser-extension.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see * */ #include "e-mail-parser-extension.h" G_DEFINE_ABSTRACT_TYPE ( EMailParserExtension, e_mail_parser_extension, G_TYPE_OBJECT) static void e_mail_parser_extension_class_init (EMailParserExtensionClass *class) { class->priority = G_PRIORITY_DEFAULT; } static void e_mail_parser_extension_init (EMailParserExtension *extension) { } /** * e_mail_parser_extension_parse * @extension: an #EMailParserExtension * @parser: a #EMailParser * @mime_part: (allow-none) a #CamelMimePart to parse * @part_id: a #GString to which parser will append ID of the parsed part. * @cancellable: (allow-none) A #GCancellable * @out_mail_parts: a #GQueue to deposit #EMailPart instances * * A virtual function reimplemented in all mail parser extensions. The function * decodes and parses the @mime_part, appending one or more #EMailParts * to the @out_mail_parts queue. * * When the function is unable to parse the @mime_part (either because it's * broken or because it is a different MIME type then the extension is * specialized for), the function will return %FALSE to indicate to the * #EMailParser that it should pick another extension. * * When the @mime_part contains for example multipart/mixed of one RFC822 * message with an attachment and of one image, then parser must make sure * that parts are appeded to @out_mail_parts in the correct order. * * part1.rfc822.plain_text * part1.rfc822.attachment * part2.image * * Implementation of this function must be thread-safe. * * Returns: %TRUE if the @mime_part was handled (even if no * #EMailParts were added to @out_mail_parts), or * %FALSE if the @mime_part was not handled */ gboolean e_mail_parser_extension_parse (EMailParserExtension *extension, EMailParser *parser, CamelMimePart *mime_part, GString *part_id, GCancellable *cancellable, GQueue *out_mail_parts) { EMailParserExtensionClass *class; g_return_val_if_fail (E_IS_MAIL_PARSER_EXTENSION (extension), FALSE); g_return_val_if_fail (E_IS_MAIL_PARSER (parser), FALSE); class = E_MAIL_PARSER_EXTENSION_GET_CLASS (extension); g_return_val_if_fail (class->parse != NULL, FALSE); /* Check for cancellation before calling the method. */ if (g_cancellable_is_cancelled (cancellable)) return FALSE; return class->parse ( extension, parser, mime_part, part_id, cancellable, out_mail_parts); } npm_and_yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mailscanner
Commit message (Expand)AuthorAgeFilesLines
* - Update to 4.43.8pav2005-07-097-413/+197
* * reflect renaming on CPAN File-Spec to PathToolsskv2005-06-121-8/+3
* - Update to 4.42.9pav2005-06-027-22/+178
* - Update to 4.41.3 [1]jylefort2005-05-116-7/+8
* - Update to 4.40.11pav2005-04-137-23/+219
* - Update to 4.39.6pav2005-03-167-19/+153
* Update to 4.38.10. See the PR for the huge changelogvs2005-02-177-5853/+65
* - Update to 4.37.7sem2005-01-277-46/+143
* Update all languages.conf and not only the english onevs2004-12-221-12/+18
* [MAINTAINER] mail/MailScanner: update to 4.36.4edwin2004-12-179-37/+31
* Update to 4.35.11:vs2004-11-103-3/+27
* - Update to 4.35.9sem2004-11-0210-178/+5709
* - Add a patch to fix operation with the latest clamav-0.80sergei2004-10-222-1/+55
* - Fix the script for updating AntiVir signatures:sergei2004-10-202-0/+22
* - Update to 4.34.8sergei2004-10-157-51/+279
* Update to 4.33.3arved2004-09-024-48/+5
* Add vendor patch:pav2004-08-212-0/+45
* After devel/p5-File-Temp has gained an IGNORE for PERL_LEVEL > 500800, allmat2004-08-121-1/+3
* Update to 4.32.5sem2004-08-097-14/+14
* Update to version 4.31.6.joe2004-06-046-1396/+22
* - Update to 4.30.3pav2004-05-058-38/+1394
* Add patches fixing these bugs:pav2004-05-033-0/+27
* - Update to 4.29.7pav2004-04-026-48/+56
* Update to 4.28.6arved2004-03-206-204/+12
* - Update to 4.28.5sergei2004-03-097-13/+206
* - Update to 4.27.7sergei2004-03-038-364/+52
* . Detect damaged MIME structures which allowed some viruses to passglewis2004-02-252-4/+56
* Say hello to the new "net-mgmt" category. There are probably morewollman2004-02-231-1/+1
* - Upgrade to 4.26.8sergei2004-02-1710-33/+351
* Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1
* - Patch several installed files to respect LOCALBASE [1]sergei2004-02-013-7/+23
* - Add some missing RUN_DEPENDSsergei2004-01-103-5/+111
* - Depend on converters/tnef instead of installing own copy of it [1]sergei2003-12-252-121/+117
* - Update PORTNAME to reflect recent repo-copy from mail/mailscannersergei2003-12-171-4/+2
* - Update to 4.25.14sergei2003-12-057-8/+52
* - Update to 4.24-5sergei2003-11-2119-4528/+464
* update to mailscanner-4.22.5leeym2003-08-1216-667/+4159
* PR: 53251foxfair2003-06-18