[neomutt-users] Save email in new folder does not work

Pietro Cerutti gahr at gahr.ch
Fri Jul 5 09:20:00 CEST 2019


On Jul 04 2019, 16:35 UTC, tuxic at posteo.de wrote:
>On 07/04 07:11, Pietro Cerutti wrote:
>>
>> > On 4 Jul 2019, at 05:37, tuxic at posteo.de wrote:
>> >
>> >> On 07/03 09:01, Pietro Cerutti wrote:
>> >>
>> >>
>> >>> On 3 Jul 2019, at 20:55, tuxic at posteo.de wrote:
>> >>>
>> >>> On 07/03 10:44, Pietro Cerutti wrote:
>> >>>>> On Jul 03 2019, 02:26 UTC, tuxic at posteo.de wrote:
>> >>>>>> On 07/01 08:59, Pietro Cerutti wrote:
>> >>>>>>> On Jun 30 2019, 18:43 UTC, Pietro Cerutti <gahr at gahr.ch> wrote:
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>> On 30 Jun 2019, at 05:48, tuxic at posteo.de wrote:
>> >>>>>>>>
>> >>>>>>>> When saveing an email from one folder to one, which does not exist,
>> >>>>>>>> neomutt asks me whether to create that (new) folder. When answering
>> >>>>>>>> [yes], the message "Copying to /home/user/myfolder..." appears and
>> >>>>>>>> remains there.
>> >>>>>>>>
>> >>>>>>>> Neither the message gets copied nor the new folder is created.
>> >>>>>>>
>> >>>>>>> Yep, I can reproduce it by a simple “save” to a non-existent path. I
>> >>>>>>> have the impression we’ve fixed this bug before and it’s crept in again.
>> >>>>>>>
>> >>>>>>> I’ll try to have a look tomorrow-ish.
>> >>>>>>
>> >>>>>> Tracking this here:
>> >>>>>> https://github.com/neomutt/neomutt/issues/1762
>> >>>>>>
>> >>>>>> --
>> >>>>>> Pietro Cerutti
>> >>>>>>
>> >>>>>
>> >>>>> Hi Pietro,
>> >>>>>
>> >>>>> I saw https://github.com/neomutt/neomutt/commit/12e79d658788f64f4a9e35ea435c7eb37ab23df8
>> >>>>> and Flatpack has fixed it.
>> >>>>>
>> >>>>> I git pulled my repo and build a new neomutt...but the bug is still
>> >>>>> there.
>> >>>>>
>> >>>>> Did I something wrong updateing my repo?
>> >>>>
>> >>>> Uhm, that's surprising. The latest master works fine for me, wrt saving an
>> >>>> email to a non-existent local path.
>> >>>>
>> >>>> What's the output of your `neomutt -v`?
>> >>>>
>> >>>> --
>> >>>> Pietro Cerutti
>> >>>>
>> >>> Hi Pietro,
>> >>>
>> >>> I updated and rebuild the repo a few minutes ago again.
>> >>>
>> >>> neomutt -v says:
>> >>> NeoMutt 20180716
>> >>
>> >> You’re running last year’s version. It’s the last official release. My wild guess is that you’re running as “neomutt” as opposed to “./neomutt” from the checkout, and your shell is picking the installed versions from some package system.
>> >>
>> >> —
>> >> Pietro Cerutti
>> >>
>> >
>> > Hi Pietro,
>> >
>> > hmmmm...that's interesting.
>> > There must be something wrong with my repo...
>> > This morning I did this:
>> >
>> > update the repo again.
>> > make clean
>> > ./configure --gdbm --gnutls --prefix=/usr/local
>> > make
>> > ./neomutt -v
>> >
>> > Result:
>> > |  NeoMutt 20180716
>> > |  Copyright (C) 1996-2016 Michael R. Elkins and others.
>> > |  NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
>> > |  NeoMutt is free software, and you are welcome to redistribute it
>> > |  under certain conditions; type 'neomutt -vv' for details.
>> > |
>> > |  System: Linux 5.1.15-RT (x86_64)
>> > |  ncurses: ncurses 6.1.20181020 (compiled with 6.1.20181020)
>> > |  libidn: 1.35 (compiled with 1.35)
>> > |  hcache backends: gdbm
>> > |
>> > |  Compiler:
>> > |  Using built-in specs.
>> > |  COLLECT_GCC=cc
>> > |  COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/9.1.0/lto-wrapper
>> > |  Target: x86_64-pc-linux-gnu
>> > |  Configured with: /var/tmp/portage/sys-devel/gcc-9.1.0-r1/work/gcc-9.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.1.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.1.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.1.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.1.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.1.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 9.1.0-r1 p1.1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-multilib-list=m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp
>> > |  Thread model: posix
>> > |  gcc version 9.1.0 (Gentoo 9.1.0-r1 p1.1)
>> > |
>> > |  Configure options: --gdbm --gnutls --prefix=/usr/local
>> > |
>> > |  Compilation CFLAGS: -g -O2 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -DNCURSES_WIDECHAR -I/usr/local/include
>> > |
>> > |  Default options:
>> > |    +attach_headers_color +compose_to_sender +compress +cond_date +debug
>> > |    +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color
>> > |    +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop
>> > |    +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar
>> > |    +skip_quoted +smtp +status_color +timeout +tls_sni +trash
>> > |
>> > |  Compile options:
>> > |    +bkgdset +color +curs_set +fcntl -flock -fmemopen +futimens +getaddrinfo
>> > |    +gnutls -gpgme -gss +hcache -homespool +idn +inotify -locales_hack -lua +meta
>> > |    -mixmaster +nls -notmuch -openssl +pgp -sasl +smime +start_color
>> > |    +sun_attachment +typeahead
>> > |  MAILPATH="/var/mail"
>> > |  PKGDATADIR="/usr/local/share/neomutt"
>> > |  SENDMAIL="/usr/sbin/sendmail"
>> > |  SYSCONFDIR="/usr/local/etc"
>> > |
>> > |  To learn more about NeoMutt, visit: https://neomutt.org
>> > |  If you find a bug in NeoMutt, please raise an issue at:
>> > |      https://github.com/neomutt/neomutt/issues
>> > |  or send an email to: <neomutt-devel at neomutt.org>
>> >
>> >
>> > Again, it reports version "20180716"
>> >
>> > I did a grep of the version string in the repo:
>> > ./po/fi.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/id.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/zh_TW.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/eo.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/it.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/da.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/zh_CN.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/sv.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/fr.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/ca.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/et.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/ru.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/ko.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/cs.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/es.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/nl.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/gl.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/de.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/hu.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/sk.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/lt.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/en_GB.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/pt_BR.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/ja.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/bg.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/el.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/eu.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/ga.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/pl.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/uk.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./po/tr.po:"Project-Id-Version: neomutt-20180716\n"
>> > ./doc/manual.html:    </style></head><body><div class="book"><div class="titlepage"><div><div><h1 class="title"><a id="idm45506204162432"></a>The NeoMutt E-Mail Client</h1></div><div><div class="author"><h3 class="author"><span class="firstname">Michael</span> <span class="surname">Elkins</span></h3><code class="email"><<a class="email" href="mailto:me at cs.hmc.edu">me at cs.hmc.edu</a>></code></div></div><div><p class="releaseinfo">version 20180716</p></div><div><div class="abstract"><p class="title"><strong>Abstract</strong></p><p>
>> > ./doc/index.html:    </style></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The NeoMutt E-Mail Client</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="intro.html">Next</a></td></tr></table><hr /></div><div class="book"><div class="titlepage"><div><div><h1 class="title"><a id="idm45423012654304"></a>The NeoMutt E-Mail Client</h1></div><div><div class="author"><h3 class="author"><span class="firstname">Michael</span> <span class="surname">Elkins</span></h3><code class="email"><<a class="email" href="mailto:me at cs.hmc.edu">me at cs.hmc.edu</a>></code></div></div><div><p class="releaseinfo">version 20180716</p></div><div><div class="abstract"><p class="title"><strong>Abstract</strong></p><p>
>> > ./doc/manual.txt:version 20180716
>> > ./doc/manual.xml:    <releaseinfo>version 20180716</releaseinfo>
>> > ./Makefile:PACKAGE_VERSION=20180716
>> > ./config.h:#define PACKAGE_VERSION "20180716"
>> > ./auto.def:define PACKAGE_VERSION  "20180716"
>> >
>> > (I skipped the matches of binary files.)
>> >
>> > Is 'git pull' not sufficient?
>>
>> Try git remote -v and git status. You might be pulling from your out-of-date fork or from an old release branch.
>>
>> If you don’t have any loca branches, it might be easier to just clone from scratch.
>>
>> hth,
>>
>> --
>> Pietro Cerutti
>
>Hi Pietro,
>
>something really weird is happening here...
>
>I moved the old copy out of the way.
>
>Then I did:
>git clone https://github.com/neomutt/neomutt.git
>
>Then I did the grep:
>grep -r 20180716 . | grep -v Binary
>and got:
>./po/fi.po:"Project-Id-Version: neomutt-20180716\n"
[snip]
>./auto.def:define PACKAGE_VERSION  "20180716"
>
>git remote -v says:
>origin	https://github.com/neomutt/neomutt.git (fetch)
>origin	https://github.com/neomutt/neomutt.git (push)
>
>Is my flux copensator damaged somehow, or why I am pulling things
>from the past?

That is all fine - don't be confused by the string 20180716 appearing in
multiple places: that is still the latest release and the official
package version, even if you build from master. What must be different
is what you get from ./neomutt -v, which should be similar to:

NeoMutt 20180716-2150-860350

The last number is the (short version of the) git hash for the commit
you're running on. In my example:

$ git show 860350

commit 860350f5d8807170720f62f02393973a4b67e1c3 (HEAD -> master, origin/master, origin/HEAD)

Author: Richard Russon <rich at flatcap.org>

Date:   Tue Jul 2 13:43:02 2019 +0100

    notify: fix leak on exit


Please try to build from your checkout and see what ./neomutt -v 
reports.

-- 
Pietro Cerutti


More information about the neomutt-users mailing list