[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#174018: marked as done (elm-me+: [patch] Bash completion of elm folders)



Your message dated Tue, 24 Dec 2002 20:47:27 -0500
with message-id <E18R0dr-000295-00@auric.debian.org>
and subject line Bug#174018: fixed in elm-me+ 2.4pl25ME+100-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at maintonly) by bugs.debian.org; 23 Dec 2002 02:29:20 +0000
>From joe@nahmias.net Sun Dec 22 20:29:19 2002
Return-path: <joe@nahmias.net>
Received: from user-0ccerf2.cable.mindspring.com (a750.nahmias.net) [24.199.109.226] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18QILH-0005fP-00; Sun, 22 Dec 2002 20:29:19 -0600
Received: by a750.nahmias.net (Postfix, from userid 1000)
	id 69D17E80C; Sun, 22 Dec 2002 21:28:44 -0500 (EST)
From: Joe Nahmias <joe@nahmias.net>
To: Debian Bug Tracking System <maintonly@bugs.debian.org>
Subject: elm-me+: [patch] Bash completion of elm folders
X-Mailer: reportbug 1.50
Date: Sun, 22 Dec 2002 21:28:44 -0500
Message-Id: <[🔎] 20021223022844.69D17E80C@a750.nahmias.net>
Delivered-To: maintonly@bugs.debian.org
X-Spam-Status: No, hits=0.6 required=5.0
	tests=SPAM_PHRASE_00_01
	version=2.41
X-Spam-Level: 

Package: elm-me+
Version: 2.4pl25ME+99f-1
Severity: wishlist
Tags: patch

Following is a patch to enable completion of elm folders. It uses only
"Priority: Required" debian packages [bash, coreutils, grep, sed].  For
example:

$ elm -f =de<TAB><TAB>
debian-boot debian-mentors
$ elm -f =debian-

I currently have this installed as "/etc/bash_completion.d/elm", but
probably should be installed as '.../elm-me+' by the package.

Enjoy,
Joe Nahmias
joe@nahmias.net


===== Begin: /etc/bash_completion.d/elm-me+ =====
#!/bin/bash
# elm(1) mail folder completion.  See debian package "elm-me+".
# Written by Joe Nahmias <joe@nahmias.net>.

have elm &&
_elm()
{
	local cur debug elmrc maildir temp

#	debug=true			# Uncomment to print debug messages.
	elmrc=$HOME/.elm/elmrc
	COMPREPLY=()
	cur=${COMP_WORDS[COMP_CWORD]}

	# Are we looking for a mail folder (prefixed by equals '=')?
	if [[ "$cur" == \=* ]]; then
		[ -z $debug ] || echo "\nLooking for a folder in the maildir."

		# Determine elm's Mail Folder directory (maildir).
		maildir=$(cat $elmrc | grep -v ^# | grep maildir | tail -1)
		if [ -z "$maildir" ]; then
			# using default maildir
			[ -z $debug ] || echo "maildir setting not found in elmrc."
			maildir=$HOME/Mail
		else
			# parse maildir entry from elmrc
			[ -z $debug ] || echo "Found maildir setting in elmrc: '$maildir'."
			maildir=$(echo "$maildir" | sed -e 's/.*=[^\/\w]*//')
		fi
		[ -z $debug ] || echo "Using maildir='$maildir'."

		# Match any file in $maildir begining with "$cur".
		cur=$maildir/${cur:1}		# Chop off leading equals.
		_filedir
		[ -z $debug ] || echo "filedir found: '${COMPREPLY[@]}'."

		# String the leading $HOME/Mail on the matches.
		temp=(${COMPREPLY[@]})
		COMPREPLY=()
		for i in ${temp[@]}
		do
			COMPREPLY=(${COMPREPLY[@]} $(basename $i))
		done
		[ -z $debug ] || echo "Using COMPREPLY='${COMPREPLY[@]}'."

	fi

	return 0
}
[ "$have" ] && complete -F _elm $default elm
===== End: /etc/bash_completion.d/elm-me+ =====

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux a750.nahmias.net 2.4.19 #1 Sat Oct 19 23:55:05 EDT 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages elm-me+ depends on:
ii  libc6                    2.2.5-14.3      GNU C Library: Shared libraries an
ii  libncurses5              5.2.20020112a-8 Shared libraries for terminal hand
ii  libssl0.9.6              0.9.6g-6        SSL shared libraries
di  postfix [mail-transport- 1.1.11.0-3      A high-performance mail transport 


---------------------------------------
Received: (at 174018-close) by bugs.debian.org; 25 Dec 2002 01:53:17 +0000
>From katie@auric.debian.org Tue Dec 24 19:53:16 2002
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18R0jU-0004zU-00; Tue, 24 Dec 2002 19:53:16 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 18R0dr-000295-00; Tue, 24 Dec 2002 20:47:27 -0500
From: Matej Vela <vela@debian.org>
To: 174018-close@bugs.debian.org
X-Katie: $Revision: 1.29 $
Subject: Bug#174018: fixed in elm-me+ 2.4pl25ME+100-2
Message-Id: <E18R0dr-000295-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Tue, 24 Dec 2002 20:47:27 -0500
Delivered-To: 174018-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
elm-me+, which is due to be installed in the Debian FTP archive:

elm-me+_2.4pl25ME+100-2.diff.gz
  to pool/main/e/elm-me+/elm-me+_2.4pl25ME+100-2.diff.gz
elm-me+_2.4pl25ME+100-2.dsc
  to pool/main/e/elm-me+/elm-me+_2.4pl25ME+100-2.dsc
elm-me+_2.4pl25ME+100-2_i386.deb
  to pool/main/e/elm-me+/elm-me+_2.4pl25ME+100-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 174018@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matej Vela <vela@debian.org> (supplier of updated elm-me+ package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 25 Dec 2002 02:49:13 +0100
Source: elm-me+
Binary: elm-me+
Architecture: source i386
Version: 2.4pl25ME+100-2
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Matej Vela <vela@debian.org>
Description: 
 elm-me+    - MIME & PGP-aware interactive mail reader [enhanced]
Closes: 174018
Changes: 
 elm-me+ (2.4pl25ME+100-2) unstable; urgency=low
 .
   * QA upload.
   * Add a Bash completion script based on a patch by Joe Nahmias, thanks.
     Closes: #174018.
Files: 
 02b0f82b1185d6adf7c0f92e2a3c58f0 631 mail optional elm-me+_2.4pl25ME+100-2.dsc
 2a82cd8f692955fc3f5a5e0fe416740d 14819 mail optional elm-me+_2.4pl25ME+100-2.diff.gz
 01f631770c0df5b7528909ff0f664772 801324 mail optional elm-me+_2.4pl25ME+100-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+CQ9MxBYivKllgY8RAr0rAJwPNl6YRLLKJJ51uTrcxBsUOAIIRwCZAXnc
UnIQOWMKMBPFwAVp4Hr/n/A=
=leEw
-----END PGP SIGNATURE-----



Reply to: