Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F118313154
D170.1775751873.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
D170.1775751873.diff
View Options
diff --git a/src/commands/eimap_command_getmetadata.erl b/src/commands/eimap_command_getmetadata.erl
--- a/src/commands/eimap_command_getmetadata.erl
+++ b/src/commands/eimap_command_getmetadata.erl
@@ -29,7 +29,7 @@
AttributesString = format_attributes(Attributes, <<>>),
DepthString = depth_param(Depth),
MaxSizeString = maxsize_param(MaxSize),
- Command = metadata_comand(DepthString, MaxSizeString, Folder, AttributesString),
+ Command = metadata_command(DepthString, MaxSizeString, Folder, AttributesString),
{ Command, multiline_response }.
process_line(<<"* METADATA ", Details/binary>>, Acc) ->
@@ -47,10 +47,10 @@
maxsize_param(Size) when is_integer(Size) -> Bin = integer_to_binary(Size), <<"MAXSIZE ", Bin/binary>>;
maxsize_param(_) -> <<>>.
-metadata_comand(<<>>, <<>>, Folder, Attributes) -> <<"GETMETADATA \"", Folder/binary, "\"", Attributes/binary>>;
-metadata_comand(Depth, <<>>, Folder, Attributes) -> <<"GETMETADATA (", Depth/binary, ") \"", Folder/binary, "\"", Attributes/binary>>;
-metadata_comand(<<>>, MaxSize, Folder, Attributes) -> <<"GETMETADATA (", MaxSize/binary, ") \"", Folder/binary, "\"", Attributes/binary>>;
-metadata_comand(Depth, MaxSize, Folder, Attributes) -> <<"GETMETADATA (", Depth/binary, " ", MaxSize/binary, ") \"", Folder/binary, "\"", Attributes/binary>>.
+metadata_command(<<>>, <<>>, Folder, Attributes) -> <<"GETMETADATA \"", Folder/binary, "\"", Attributes/binary>>;
+metadata_command(Depth, <<>>, Folder, Attributes) -> <<"GETMETADATA (", Depth/binary, ") \"", Folder/binary, "\"", Attributes/binary>>;
+metadata_command(<<>>, MaxSize, Folder, Attributes) -> <<"GETMETADATA (", MaxSize/binary, ") \"", Folder/binary, "\"", Attributes/binary>>;
+metadata_command(Depth, MaxSize, Folder, Attributes) -> <<"GETMETADATA (", Depth/binary, " ", MaxSize/binary, ") \"", Folder/binary, "\"", Attributes/binary>>.
format_attributes([], <<>>) -> <<>>;
format_attributes([], String) -> <<" (", String/binary, ")">>;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 4:24 PM (18 h, 19 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18776061
Default Alt Text
D170.1775751873.diff (1 KB)
Attached To
Mode
D170: Fix bug in getmetadata command: new_command/4 was allowing Folder to be a list, when the internal API required it to be binary
Attached
Detach File
Event Timeline