diff --git a/doc/bugs/OSX_Assistant_will_not_automatically_drop/comment_2_7901e1211ab86429ef8bd95c72ed89f5._comment b/doc/bugs/OSX_Assistant_will_not_automatically_drop/comment_2_7901e1211ab86429ef8bd95c72ed89f5._comment new file mode 100644 index 0000000000..057e3c6b19 --- /dev/null +++ b/doc/bugs/OSX_Assistant_will_not_automatically_drop/comment_2_7901e1211ab86429ef8bd95c72ed89f5._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="andrew" + avatar="http://cdn.libravatar.org/avatar/acc0ece1eedf07dd9631e7d7d343c435" + subject="thoughts?" + date="2018-05-20T17:41:28Z" + content=""" +Any thoughts Joey? I am happy to troubleshoot this further, but I am not really sure what to test. I do have git-annex building from source on a mac, but I don't have any experience with Haskell, so don't really know what I could be checking. + +Thanks. Andrew +"""]] diff --git a/doc/todo/support_for_storing_xattrs.mdwn b/doc/todo/support_for_storing_xattrs.mdwn new file mode 100644 index 0000000000..6edf0a9d26 --- /dev/null +++ b/doc/todo/support_for_storing_xattrs.mdwn @@ -0,0 +1,15 @@ +It would be nice to have support for storing extended attributes in git-annex. + +There are some useful [proposed metadata attributes](https://www.freedesktop.org/wiki/CommonExtendedAttributes/#proposedmetadataattributes): + +* user.xdg.comment: A comment specified by the user. This comment could be displayed by file managers +* user.xdg.origin.url: Set on a file downloaded from a url. Its value should equal the url it was downloaded from. +* user.xdg.origin.email.subject: Set on an email attachment when saved to disk. It should get its value from the originating message's "Subject" header +* user.xdg.origin.email.from: Set on an email attachment when saved to disk. It should get its value from the originating messsage's "From" header. For example '"John Doe" ', or 'jdoe@example.com' +* user.xdg.origin.email.message-id: Set on an email attachment when saved to disk. It should get its value from the originating message's "Message-Id" header. + +At least `curl --xattr` saves `xdg.origin.url`. + +Perhaps `git-annex-metadata` could be leveraged to automatically store and restore xattrs? Might even work that addition of xattrs would always have to be done through a git-annex command, but restoration would be done automatically if git-annex noticed there are xattrs stored in metadata, and the file system is mounted with `user_xattr`. + +The `user` namespace is used for user xattrs and thus for "proposed metadata attributes" above. These attributes are valid git-annex metadata fields as-is.