]> www.infradead.org Git - users/dedekind/aiaiai.git/commit
email-lda: process all series directories at the end
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 9 Jan 2014 23:28:37 +0000 (15:28 -0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Feb 2014 08:56:26 +0000 (10:56 +0200)
commit894d795cb9a96f8c456337a2fab4a76bfce60a8c
tree62f5462f5b4a4d3dff1ef4d0e60ee6706dcf548b
parent060d75223c85539bf425ccf9a464d0e62a2c2a37
email-lda: process all series directories at the end

Sometimes the email-lda program can misbehave and a series could end up
becoming "complete" but the LDA does not queue it when the last patch was
added. This patch modifies the LDA so that it will check all series at the end
of each mail and queue them, rather than only checking a series when some
thing is added.

The primary benefit of this is if a series does not properly get queued, the
administrator can come in and manually add the patches to the series
directory. Then the series will properly be "queued" after the next email
triggers the LDA.

This does come at a slight hit in terms of performance as we now have to check
whether series are complete for every email. However, the gain in being able
to easily fixup and get a series queued again when errors occur is much more
useful.

Artem: this patch did not really work properly, because it was missing the
"series_is_complete" check. I also did some re-factoring, and tested the final
version. Seems to work fine. I also got rid of bash-only constructs.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
email/aiaiai-email-lda