[Bps-public-commit] Net-IMAP-Server branch, master, updated. 1.22-1-g3c49130

Alex M Vandiver alexmv at bestpractical.com
Fri Jul 17 16:33:28 EDT 2009


The branch, master has been updated
       via  3c4913021494c25ac526986a250d307cce86c95b (commit)
      from  f19565c04b5132983a4fd7eb8f4d92fd003112c3 (commit)

Summary of changes:
 lib/Net/IMAP/Server/Message.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 3c4913021494c25ac526986a250d307cce86c95b
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Jul 17 16:33:15 2009 -0400

    Make session_flags actually ever _stored_ in the session; this fixes a bug where no messages were \Recent

diff --git a/lib/Net/IMAP/Server/Message.pm b/lib/Net/IMAP/Server/Message.pm
index 7e847d4..1a4d85d 100644
--- a/lib/Net/IMAP/Server/Message.pm
+++ b/lib/Net/IMAP/Server/Message.pm
@@ -211,7 +211,7 @@ sub _session_flags {
     my $self = shift;
     my $conn = Net::IMAP::Server->connection;
     return {} unless $conn;
-    return $conn->_session_flags->{$self} || {};
+    return $conn->_session_flags->{$self} ||= {};
 }
 
 =head2 set_flag FLAG [, SILENT]

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list