Debian Bug report logs -
#218957
muttprofile confused when different regexp omitted
Reported by: Martin Schulze <joey@infodrom.org>
Date: Mon, 3 Nov 2003 15:48:19 UTC
Severity: normal
Tags: fixed
Done: martin f krafft <madduck@debian.org>
Bug is archived. No further changes may be made.
Forwarded to martti.rahkila@hut.f
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, madduck@debian.org (martin f. krafft):
Bug#218957; Package muttprofile.
(full text, mbox, link).
Acknowledgement sent to Martin Schulze <joey@infodrom.org>:
New Bug report received and forwarded. Copy sent to madduck@debian.org (martin f. krafft).
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: muttprofile
Version:
Severity: minor
Tags: patch
Upon investigating muttprofile I noticed that when I usually use a
different regexp than the builtin one, and called muttprofile once
so an active profile exists, muttprofile has a strange error message:
,---------
| finlandia:~/.mutt> muttprofile
| Problem with name for active profile, Try option -a or another name. Exiting(2).
| Available profiles (0):
| Use of uninitialized value in pattern match (m//) at /usr/share/perl/5.8.1/Term/Complete.pm line 95.
| Profile name (tab to complete, * = active profile):
`---------
The problem is that muttprofile checks for an empty file list but
forgets to take care of the case where only the active profile link
is discovered.
The patch below fixes this.
--- /usr/bin/muttprofile 2003-09-29 22:13:35.000000000 +0200
+++ /tmp/work/muttprofile 2003-11-03 16:37:23.000000000 +0100
@@ -152,7 +152,7 @@
@files = grep { eval($profile_regexp) } readdir(DIR);
closedir(DIR);
-if (scalar(@files) == 0) {
+if (scalar(@files) == 0 || ($#files == 0 && $files[0] eq $active_profile)) {
# regexp matches no files
print STDERR "No profiles found, try option -p or different regexp. Exiting($error).\n";
exit($error);
Regards,
Joey
--
It's time to close the windows.
Please always Cc to me when replying to me on the lists.
Tags added: fixed
Request was from madduck@diamond.madduck.net (martin f. krafft)
to control@bugs.debian.org.
(full text, mbox, link).
Tags added: fixed
Request was from madduck@diamond.madduck.net (martin f. krafft)
to control@bugs.debian.org.
(full text, mbox, link).
Noted your statement that Bug has been forwarded to martti.rahkila@hut.f.
Request was from madduck@diamond.madduck.net (martin f. krafft)
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to martin f krafft <madduck@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Martin Schulze <joey@infodrom.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #16 received at 218957-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
This was fixed long ago.
--
Please do not CC me when replying to lists; I read them!
.''`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, admin, and user
`. `'`
`- Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Apr 15 08:18:41 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.