Hi guys,
is there a way to emit the names of all _attachments? I found this one in the archive http://couchdb.markmail.org/search/?q=_attachments+emit+name#query:_atta chments%20emit%20name+page:1+mid:ybbhvtlqa6rfqlgc+state:results but still I'm not sure how to emit a name of an attachment. What I want to do is something like this ~~~~~~~~~~~~~~~~~~~~~~~~~~snip function(doc) { for ( var i in doc._attachments) { emit([doc._id, 'attachment name'], doc._attachments[i]); } } ~~~~~~~~~~~~~~~~~~~~~~~~~~snap where 'attachment name' should be replaced by the name of the attachment. Cheers, Armin
