#396076 CTRL-c killing mairix leaves lockfile around

Package:
mairix
Source:
mairix
Description:
indexes and searches locally-stored email
Submitter:
rich walker
Date:
2026-11-02 08:25:02 UTC
Severity:
minor
Tags:
#396076#5
Date:
2006-10-29 16:44:30 UTC
From:
To:
When mairix is interrupted with CTRL-C, it leaves a lockfile behind. You
then can't run it again until the lockfile is removed.

Either CTRL-C-killing it should be caught and the lockfile deleted, or it
should print the *full* path to the lockfile, so at least the user can
remove it conveniently.

#396076#10
Date:
2007-04-01 22:07:54 UTC
From:
To:
tags 396076 upstream
forwarded 396076 rc@rc0.org.uk
severity 396076 minor
thanks

Richard Curnow: Apparently, I forgot to forward this (or at least to
forgot to mark it in the Debian BTS) when it was submitted.
Unfortunately, I don't have a patch for this at the moment.

Rich Walker: Thanks for the bug, I'm marking this an upstream and bug
and pointing it out to Mairix's author and my upstream. Thanks for the
but report and I apologize for letting it slip through the cracks like
this. You can try out Mairix 0.20 which was uploaded a few days ago and
let me know what you think -- about this bug and others you might find.
I'm also decreasing the severity to minor but I don't feel too strongly
about this.

Regards,
Mako

#396076#21
Date:
2007-04-02 18:26:26 UTC
From:
To:
"Benj. Mako Hill" <mako@debian.org> writes:

No problem - I understand how these things go.

When a program finds a lock around from a previous incarnation, it's
nice if it can do one of two things:

1. Tell you exactly where the lock file is, so you can delete it
   (Mozillas are really bad for hiding the lock file well)

2. Offer to force-delete the lock (Emacs does this well with "someone
   else is editing this file).

Obviously, there are locks where you shouldn't do this, but when the
item protected by the lock can be re-built trivially, it would seem a
useful fix.

cheers, Rich.

#396076#26
Date:
2026-11-02 08:12:42 UTC
From:
To:
Greetings!

Since mairix 0.20, SIGINT, SIGHUP and SIGQUIT are caught and the
handler removes the lock file before exiting, so a run interrupted
with Ctrl-C no longer leaves a stale lock behind. This has been in
Debian since 0.20-1. Whoops. Sorry for leaving this open.

Regards,
Mako



Note: I used an AI coding agent (Claude Fable 5.1) to help check
which old mairix bugs had been fixed upstream, but I verified this
fix myself manually.