Page MenuHomePhorge

D108.1775423992.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D108.1775423992.diff

diff --git a/apps/kolab_guam/src/rules/kolab_guam_rule_filter_groupware.erl b/apps/kolab_guam/src/rules/kolab_guam_rule_filter_groupware.erl
--- a/apps/kolab_guam/src/rules/kolab_guam_rule_filter_groupware.erl
+++ b/apps/kolab_guam/src/rules/kolab_guam_rule_filter_groupware.erl
@@ -30,21 +30,21 @@
apply_to_client_message(ImapSession, Buffer, State) ->
{ Tag, Command, Data } = eimap_utils:split_command_into_components(Buffer),
- { Active, StateTag }=
- if Command =:= <<"LIST">>;
- Command =:= <<"list">>;
- Command =:= <<"XLIST">>;
- Command =:= <<"xlist">>;
- Command =:= <<"LSUB">>;
- Command =:= <<"lsub">> ->
- case binary:match(Data, <<"*">>) of
- nomatch -> { false, <<>> };
- _ ->
- fetch_metadata(ImapSession, State),
- { true, Tag }
- end;
- true -> { false, <<>> }
- end,
+ { Active, StateTag } =
+ if Command =:= <<"LIST">>;
+ Command =:= <<"list">>;
+ Command =:= <<"XLIST">>;
+ Command =:= <<"xlist">>;
+ Command =:= <<"LSUB">>;
+ Command =:= <<"lsub">> ->
+ case {binary:match(Data, <<"*">>),binary:match(Data, <<"%">>)} of
+ nomatch -> { false, <<>> };
+ _ ->
+ fetch_metadata(ImapSession, State),
+ { true, Tag }
+ end;
+ true -> { false, <<>> }
+ end,
%lager:info("Client sent: ~s ~s ~p", [Command, Data, Active]),
{ Buffer, State#state{ active = Active, tag = StateTag }}.

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 9:19 PM (21 m, 8 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18833604
Default Alt Text
D108.1775423992.diff (1 KB)

Event Timeline