Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117919616
D108.1775423992.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D108.1775423992.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D108: Match both '*' and '%' as being a wildcard.
Attached
Detach File
Event Timeline