Re: Tagging attachments - works but no indicator

2021-12-01 Thread Chris Green
On Wed, Dec 01, 2021 at 09:44:47AM -0800, Kevin J. McCarthy wrote:
> On Wed, Dec 01, 2021 at 04:02:15PM +, Chris Green wrote:
> > But, unlike in the index view, tagging doesn't mark the tagged
> > attachments in any way so with a long list and/or if you only want to
> > attach some files from a long list it's a bit awkward.
> 
> $folder_format by default contains the %t expando to indicate tagged
> entries.  Perhaps you've changed the value of that variable?
> 
Ah, yes, obvious really.  I have folder_format set and it hasn't got
%t in it.  It was changed many moons ago to make it briefer than the
default and I left out the %t (for no good reason except ignorance).

Thank you!

-- 
Chris Green


Re: Tagging attachments - works but no indicator

2021-12-01 Thread Kevin J. McCarthy

On Wed, Dec 01, 2021 at 04:02:15PM +, Chris Green wrote:
But, unlike in the index view, tagging doesn't mark the tagged 
attachments in any way so with a long list and/or if you only want to 
attach some files from a long list it's a bit awkward.


$folder_format by default contains the %t expando to indicate tagged 
entries.  Perhaps you've changed the value of that variable?


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Tagging attachments - works but no indicator

2021-12-01 Thread Chris Green
I was about to ask how one could select a series of (for example)
pictures in a directory as attachments rather than having to 'a' each
one.

However, on trying it, I discovered that tagging the attachments and
then hitting Return on the last tagged attachment does attach all the
files selected with 't'.  Good! :-)

But, unlike in the index view, tagging doesn't mark the tagged
attachments in any way so with a long list and/or if you only want to
attach some files from a long list it's a bit awkward.

Is this a bug or an enhancement request?

I'm running mutt version 2.0.5 on xubuntu 21.10.

-- 
Chris Green


Re: Search program that can find an E-Mail with an exact Date: match

2021-12-01 Thread maitra
On Tue Nov30'21 04:00:08PM, Chris Green wrote:
> From: Chris Green 
> Date: Tue, 30 Nov 2021 16:00:08 +
> To: mutt-users@mutt.org
> Subject: Re: Search program that can find an E-Mail with an exact Date:
>  match
>
> On Tue, Nov 30, 2021 at 10:24:10AM -0500, John Hawkinson wrote:
> > I find this discussion a bit…surprising? It seems like "mboxgrep" 
> > (https://datatipp.se/mboxgrep/)
> > does this just fine. E.g.
> >
> >   mboxgrep -rH -m maildir 'Date: Sun, 17 Mar 2019 21:24:26 -0700' dir
> >
> > recursively searches the headers of all mailboxes within 'dir' for the
> > pattern specified. I don't know that "-m maildir" is necessary, but it
> > works.
>
> I installed and tried mboxgrep, it failed miserably on my 'real'
> maildir hierarchy.  It probably was tested (and works) on a maildir++
> hierarchy that is all at one level with long rows of  indicating
> the 'depth'.
>

Interesting, the webpage claims to work for maildir, etc.

However, I was unable to compile the software on Fedora. I could not also find 
any installation instructions/readme on it.

One problem is that it appears to be a 2003 software on sourceforge, despite 
the "new" website, circa 2020.

I tried:


 $ ./configure
 checking for gcc... gcc
 checking for C compiler default output... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ANSI C... none needed
 checking for a BSD-compatible install... /bin/install -c
 checking how to run the C preprocessor... gcc -E
 checking for egrep... grep -E
 checking for ANSI C header files... yes
 checking for dirent.h that defines DIR... yes
 checking for library containing opendir... none required
 checking for pcre-config... /bin/pcre-config
 checking for gzopen in -lz... yes
 checking for BZ2_bzopen in -lbz2... yes
 checking for like_monday in -lgarfield... no
 checking for fcntl... yes
 checking for flock... yes
 checking for regcomp... yes
 checking for strptime... yes
 checking for ftw... yes
 checking for fts_open... yes
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating doc/Makefile
 config.status: creating src/Makefile
 config.status: creating src/config.h

 $ make
 cd src; make
 make[1]: Entering directory '/home/maitra/Downloads/mboxgrep-0.7.9/src'
 gcc -g -O2  -o mboxgrep info.o main.o mh.o scan.o maildir.o mbox.o misc.o 
wrap.o getopt.o getopt1.o md5.o -lbz2 -lz  -lpcre
 /bin/ld: main.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 /bin/ld: mh.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 /bin/ld: scan.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 /bin/ld: maildir.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 /bin/ld: mbox.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 /bin/ld: misc.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 /bin/ld: wrap.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: 
multiple definition of `config'; 
info.o:/home/maitra/Downloads/mboxgrep-0.7.9/src/mboxgrep.h:132: first defined 
here
 collect2: error: ld returned 1 exit status
 make[1]: *** [Makefile:42: mboxgrep] Error 1
 make[1]: Leaving directory '/home/maitra/Downloads/mboxgrep-0.7.9/src'
 make: *** [Makefile:23: all] Error 2


It would be good to find some software like this that can go down hierarchies 
of maildirs, from the command line. I have found mutt's searching to be a bit 
frustrating.

Thanks,
Ranjan


Re: Search program that can find an E-Mail with an exact Date: match

2021-12-01 Thread Bastian
On 30Nov21 11:00+, Chris Green wrote:
> Yes, it is rather an odd requirement and driven by history, a typical
> "if I did that now I wouldn't do it that way"! :-)

Thanks for revealing some background about it :) I find it always 
interesting, how things roll on other ends.
Probably, I would have started of with some python-foo to solve this. I 
think you found a reasonably good solution for your problem. This is 
also the biggest burden I have as sysadmin, to keep legacy up and 
running. So I feel your pain a bit :)


Cheers,
-- 
Bastian