]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NetWriter.pm
lei export-kw: skip read-only IMAP folders
[public-inbox.git] / lib / PublicInbox / NetWriter.pm
index 629a752ae79a3b3b1c1ea8ed91e029f925801268..4a1f34f63c458a5733d58569c8b0c6a945678adf 100644 (file)
@@ -56,4 +56,13 @@ sub imap_set_kw {
        $mic; # caller must ->expunge
 }
 
+sub can_store_flags {
+       my ($self, $mic) = @_;
+       for ($mic->Results) {
+               /^\* OK \[PERMANENTFLAGS \(([^\)]*)\)\].*/ and
+                       return $self->can('perm_fl_ok')->($1);
+       }
+       undef;
+}
+
 1;