From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 8FB316DE0A73 for ; Sat, 22 Oct 2016 11:09:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.069 X-Spam-Level: X-Spam-Status: No, score=0.069 tagged_above=-999 required=5 tests=[AWL=0.079, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f_TIj3pVTtxv for ; Sat, 22 Oct 2016 11:09:14 -0700 (PDT) Received: from picnicpark.org (picnicpark.org [130.94.181.238]) by arlo.cworth.org (Postfix) with ESMTP id B8ABF6DE02DA for ; Sat, 22 Oct 2016 11:09:14 -0700 (PDT) Received: (qmail 84202 invoked by uid 13806); 22 Oct 2016 18:09:14 -0000 Received: from unknown (HELO gw.picnicpark.org) (camalot@[108.225.17.54]) (envelope-sender ) by 130.94.181.238 (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 22 Oct 2016 18:09:14 -0000 Received: from kea-tablet.picnicpark.org (gw.picnicpark.org [127.0.0.1]) by gw.picnicpark.org (Postfix) with ESMTPSA id 8C9E012A0406; Sat, 22 Oct 2016 11:09:04 -0700 (PDT) Message-ID: <1477159723.20927.5.camel@picnicpark.org> Subject: Re: [PATCH] emacs: add mimetype completions to searches From: Keith Amidon To: Jani Nikula , Mark Walters , notmuch@notmuchmail.org Date: Sat, 22 Oct 2016 11:08:43 -0700 In-Reply-To: <871sz8zp1e.fsf@nikula.org> References: <1474968416-3572-1-git-send-email-markwalters1009@gmail.com> <871sz8zp1e.fsf@nikula.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2016 18:09:17 -0000 On Sat, 2016-10-22 at 12:55 +0300, Jani Nikula wrote: > Any ideas how to get a list of mime types in shell, so I could do the > same in bash completion without hard-coding some limited list? Not sure if this is really what you're looking for, but on my archlinux system, the file /etc/mime.types is installed by a package called mime- types, which lists this gentoo package as its upstream: http://packages.gentoo.org/package/app-misc/mime-types It's pulled in as a dependency of installing firefox, so presumably some version of this is pretty ubiquitous on Linux systems. --- Keith