Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165819 - mail-client/claws-mail-2.7.2 - can't create a "local mbox file" account
Summary: mail-client/claws-mail-2.7.2 - can't create a "local mbox file" account
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Marius Mauch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 20:29 UTC by Olivier Castan
Modified: 2007-02-08 15:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to correct inbox test for local mbox accounts (claws-mail-2.7.2-local_inbox_check.patch,751 bytes, patch)
2007-02-07 20:30 UTC, Olivier Castan
Details | Diff
Diff for claws-mail-2.7.2.ebuild to apply the patch (claws-mail-2.7.2.ebuild.diff,547 bytes, patch)
2007-02-07 20:36 UTC, Olivier Castan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Castan 2007-02-07 20:29:48 UTC
You can't create a new account when selecting "local mbox file" as protocol: there's a popup alert "The default inbox folder doesn't exist" even if this inbox exists.
This test has been introduced in revision 1.105.2.73 of the file src/prefs_account.c:
http://cvs.sunsite.dk/viewcvs.cgi/sylpheedclaws/sylpheed-claws/src/prefs_account.c

But the value of the wrong widget is tested (the input field for pop3 protocol) and the test always fails.

The following patch solve the problem (I will upload it):
diff -urN claws-mail-2.7.2.orig/src/prefs_account.c claws-mail-2.7.2/src/prefs_account.c
--- claws-mail-2.7.2.orig/src/prefs_account.c   2007-01-26 07:27:03.000000000 +0100
+++ claws-mail-2.7.2/src/prefs_account.c        2007-02-07 20:50:01.000000000 +0100
@@ -2529,7 +2529,8 @@
                return -1;
        }
        if (protocol == A_POP3 || protocol == A_LOCAL) {
-               const gchar *mailbox = gtk_entry_get_text(GTK_ENTRY(receive.inbox_entry));
+               GtkWidget *inbox_entry = (protocol == A_POP3 ? receive.inbox_entry : receive.local_inbox_entry );
+               const gchar *mailbox = gtk_entry_get_text(GTK_ENTRY(inbox_entry));
                FolderItem *inbox =  folder_find_item_from_identifier(mailbox);
                if (inbox == NULL) {
                        alertpanel_error(_("The default inbox folder doesn't exist."));


Should be reported upstream, but a bugzilla account is needed to do so...


Reproducible: Always

Steps to Reproduce:




$ emerge --info
Portage 2.1.2-r8 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.9
Timestamp of tree: Wed, 07 Feb 2007 08:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr fr_FR en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X509 a52 aac aalib accessibility acl acpi acpi4linux aiglx aio alsa amd64 amr apm ares asf async audiofile auth autoipd avahi bash-completion berkdb bitmap-fonts bogofilter bonjour bonobo branding browserplugin bzip2 cairo canvas caps cdda cddb cdio cdparanoia cdr chroot cle266 cli codecs console cpulimit cracklib crypt css cups curl daap dbus dga dillo directfb diskio divx djvu dlloader dmi dnd dri dts dv dvd dvdr dvdread dvi eds elf emboss enca encode erandom esd exif expat faac faad fam fame fat fbcon ffmpeg firefox flac flash font-server fontconfig foomaticdb fortran fr fuse gd gdbm ggi gif gimp gimpprint glitz glut gmedia gmp gnome gnome-print gnomecanvas gnomedb gnutls gphoto2 gpm graphviz gsl gstreamer gtk gtk2 gtkhtml gzip hal hfs howl-compat hpn iconv imagemagick imlib imlib2 ipv6 isdnlog java javascript jbig jce jikes jp2 jpeg jpeg2k junit kerberos kqemu lcms ldap libcaca libg++ libnotify lirc live logrotate lua lzo mad mailwrapper matroska md5sum mdnsresponder-compat mfd-rewrites midi mikmod mime mjpeg mng modplug mono motif moznoirc moznomail mozsvg mp3 mp4 mpeg mpeg2 mpeg4 mplayer msn nas nautilus ncurses network nls nntp nptl nptlonly nsplugin ntfs ntlm oav offensive ofx ogg openexr opengl oss pam pango pascal pcap pcre pdf perl physfs pie png ppds pppd print python qt qt3 qt4 quicktime rar readline reflection reiserfs rle rtc rtsp samba scanner sdl session sftp sftplogging shout silc skins slang slp smbkrb5passwd smime smp smux sox spamassassin speex spell spl sqlite sqlite3 ssl startup-notification stencil-buffer stream subtitles svg svgz swat sysfs syslog t1lib tcl tcltk tcpd tetex tga theora threads tiff tk tools transcode truetype truetype-fonts tv_check type1 type1-fonts udev unicode upnp usb v4l v4l2 vcd vim vim-syntax vim-with-x vlm vorbis wma wma123 wmf wmp x264 xanim xcb xcomposite xface xforms xine xml xml2 xorg xosd xpm xprint xrandr xv xvid xvmc yv12 zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon directory" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR en en_GB" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="ati nv fbdev vga vesa radeon fglrx nvidia vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Olivier Castan 2007-02-07 20:30:53 UTC
Created attachment 109462 [details, diff]
Patch to correct inbox test for local mbox accounts
Comment 2 Olivier Castan 2007-02-07 20:36:00 UTC
Created attachment 109463 [details, diff]
Diff for claws-mail-2.7.2.ebuild to apply the patch
Comment 3 Olivier Castan 2007-02-08 09:36:29 UTC
Reported upstream
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2007-02-08 15:06:21 UTC
Thanks!