~ubuntu-branches/debian/sid/claws-mail/sid

« back to all changes in this revision

Viewing changes to src/plugins/python/python_plugin.c

  • Committer: Package Import Robot
  • Author(s): Ricardo Mones
  • Date: 2015-08-18 16:37:25 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20150818163725-1it32n9mzqkwy2ef
Tags: 3.12.0-1
* New upstream release:
- 'cannot reorganize mailboxes' (Closes: #777208)
- 'dropdown menu bar has disappeared…'(Closes: #778886)
- 'depends on plugins libraries'  (Closes: #779824)
- 'new upstream version (3.12.0)…' (Closes: #793665)
* 14CVE_2010_5109.patch, 15fix_crash_open_folder.patch,
  13desktop_file_categories.patch
- Remove patches applied upstream
* debian/control, debian/copyright, debian/claws-mail-managesieve*
- Add managesieve plugin (new in this release)
* debian/rules
- Set perl-plugin manpage release version automatically
* 12fix_manpage_header.patch
- Update patch to cope with upstream changes
* debian/control, debian/watch
- Update VCS-* and watch URLs (thanks Julian Wollrath)

Show diffs side-by-side

added added

removed removed

Lines of Context:
637
637
  return retval ? retval : g_strdup("Unspecified error occured");
638
638
}
639
639
 
 
640
static void log_func(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)
 
641
{
 
642
}
640
643
 
641
644
gint plugin_init(gchar **error)
642
645
{
 
646
  guint log_handler;
 
647
  int parasite_retval;
643
648
  PyObject *inst_StringIO = NULL;
644
649
 
645
650
  /* Version check */
678
683
  }
679
684
 
680
685
  /* initialize python interactive shell */
681
 
  if(!parasite_python_init(error)) {
 
686
  log_handler = g_log_set_handler(NULL, G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO, log_func, NULL);
 
687
  parasite_retval = parasite_python_init(error);
 
688
  g_log_remove_handler(NULL, log_handler);
 
689
  if(!parasite_retval) {
682
690
    goto err;
683
691
  }
684
692