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

« back to all changes in this revision

Viewing changes to src/plugins/newmail/newmail.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:
1
1
/*
2
2
 * newmail - A plugin for Claws Mail
3
3
 *
4
 
 * Copyright (C) 2005-2005 H.Merijn Brand and the Claws Mail Team
 
4
 * Copyright (C) 2005-2015 H.Merijn Brand and the Claws Mail Team
5
5
 *
6
 
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
7
 
 * Copyright (C) 1999-2013 the Claws Mail Team
 
6
 * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
 
7
 * Copyright (C) 1999-2015 the Claws Mail Team
8
8
 *
9
9
 * This program is free software; you can redistribute it and/or modify
10
10
 * it under the terms of the GNU General Public License as published by
17
17
 * GNU General Public License for more details.
18
18
 *
19
19
 * You should have received a copy of the GNU General Public License
20
 
 * along with this program; if not, write to the Free Software
21
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
21
 */
23
22
 
24
23
#include <errno.h>
129
128
                        g_free(LogName);
130
129
                        LogName = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, LOG_NAME, NULL);
131
130
                        if (!(NewLog = fopen (LogName, mode))) {
132
 
                                char buf[BUFSIZE];
133
 
 
134
131
                                debug_print ("Failed to open fallback log %s\n", LogName);
135
 
#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
136
 
                                strerror_r(errno, buf, BUFSIZE);
137
 
                                *error = g_strdup_printf(_("Could not open log file %s: %s\n"),
138
 
                                                LogName, buf);
139
 
#else /* use GNU version */
140
 
                                *error = g_strdup_printf(_("Could not open log file %s: %s\n"),
141
 
                                                LogName, strerror_r(errno, buf, BUFSIZE));
142
 
#endif
 
132
                                *error = g_strdup_printf(_("Could not open log file %s: %s\n"),
 
133
                                                LogName, g_strerror(errno));
143
134
                                plugin_done ();
144
135
                                return (-1);
145
136
                        }