Coder Social home page Coder Social logo

Comments (4)

henrycatalinismith avatar henrycatalinismith commented on June 3, 2024

Sounds doable! Let me quickly check I've understood your request.

Current Behaviour

A search for example returns results if either the contact's email or their name matches.

$ ppl mutt example
[email protected]    John Doe
[email protected]  example user
Desired Behaviour

The same search only returns results when the email address matches.

$ ppl mutt --emails-only example
[email protected]    John Doe

This is definitely a tweak I can make for you. For the sake of backwards compatibility, I'll add it under a --emails-only flag on the ppl mutt command though. Don't wanna break things for people! :)

from ppl.

niklaas avatar niklaas commented on June 3, 2024

Thank your for your quick reply. Sorry, I think I was mixing something up because the search is case-sensitive and I did not know that. So I guess this turns into two ›issues‹:

  1. The .vcffile name is not searched. (which is the original issue)
  2. Why is the search case-sensitive?

A contact's name and its email is searched but not the name of the .vcf file. Sometimes I am using this for a nickname for example mum.vcf or dad.vcf. So it would be great if the search also considers file names. (Of course, I can also change my behaviour in naming the files.)

Have a look at this example for clarification:

# niklaas at len-x61s in ~ [16:31:55]
$ ppl ls | grep username
username:              FirstName Surname            <[email protected]>

If I query for username I get no results. (Maybe this is intended but I would find it handy.)

If I query for surname I get no results. I think this is not really useful.

If I query for Surname I get a result (of course).

from ppl.

the-reverend avatar the-reverend commented on June 3, 2024

you can get a case insensitive search with ppl grep -i username

from ppl.

henrycatalinismith avatar henrycatalinismith commented on June 3, 2024

Wow oops, I've really let some old issues rot here. Gonna close this one as it looks like that workaround is okay!

from ppl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.