This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit cc0cea18db93c3bffa7a07f70c814d78ae4bdb3c Author: Gary Gregory <[email protected]> AuthorDate: Wed Jan 28 16:00:46 2026 -0500 IMAPExportMbox now restores the current thread's interrupt flag when catching InterruptedException. --- src/changes/changes.xml | 3 ++- src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ba3aad0e..f6a6f051 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -63,9 +63,10 @@ The <action> type attribute can be add,update,fix,remove. <body> <release version="3.13.0" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required."> <!-- FIX --> - <action type="fix" dev="ggregory" due-to="Henri Biestro, Gary Gregory">org.apache.commons.net.daytime.DaytimeTCPClientTest now should now pass inside most VPNs.</action> + <action type="fix" dev="ggregory" due-to="Henri Biestro, Gary Gregory">DaytimeTCPClientTest now should now pass inside most VPNs.</action> <action type="fix" dev="ggregory" due-to="Jakub Kupczyk, Gary Gregory">Migrate tests to JUnit5 #358, #359.</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix malformed Javadoc comments.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">IMAPExportMbox now restores the current thread's interrupt flag when catching InterruptedException.</action> <!-- ADD --> <action type="add" dev="ggregory" due-to="Gary Gregory">Add DatagramSocketClient.getDefaultTimeoutDuration() and deprecate getDefaultTimeout().</action> <!-- UPDATE --> diff --git a/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java b/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java index f7fc306c..a281b56c 100644 --- a/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java +++ b/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java @@ -394,7 +394,7 @@ public final class IMAPExportMbox { try { Thread.sleep(retryWaitSecs * 1000); } catch (final InterruptedException e) { - // ignored + Thread.currentThread().interrupt(); } }
