Closed
Bug 646105
Opened 14 years ago
Closed 14 years ago
Feed enclosure enhancements
Categories
(MailNews Core :: Feed Reader, enhancement)
MailNews Core
Feed Reader
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 5.0b1
People
(Reporter: alta88, Assigned: alta88)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
to Content-Type, add a size parameter if a feed publishes length and it's nonzero; add a parameter indicating this is an enclosure (to differentiate from detached email attachments).
Attachment #522721 -
Flags: review?(myk)
Updated•14 years ago
|
Assignee: alta88 → nobody
Status: NEW → ASSIGNED
Component: Message Reader UI → Feed Reader
Product: Thunderbird → MailNews Core
QA Contact: message-reader → feed.reader
Comment 2•14 years ago
|
||
Comment on attachment 522721 [details] [diff] [review]
patch
Overall this looks good, but I'm unfamiliar with x-moz-enclosure and can't find any references to it in the codebase, so that piece should get review by another reviewer.
Attachment #522721 -
Flags: review?(myk)
Attachment #522721 -
Flags: review?(bugzilla)
Attachment #522721 -
Flags: review+
Comment 3•14 years ago
|
||
Sorry for the delay in getting to this. I can't see any references to x-moz-enclosure either - can you explain why that is being added? (and maybe some references to where it is used?).
Also, what will adding the size parameter do for the user?
well, it would be a new value. the idea is to know that a feed attachment is on (in usage not strictly technically) a remote network location and requires download. there is X-Mozilla-External-Attachment-URL but that, in usage, means a detached mail attachment on the local filesystem.
if there were a non folder based way of knowing a message is a feed (bug 522645?), this probably isn't necessary, as the existing above header could be used in conjunction with knowing it's a feed.
as for size parameter, it will tell the user the size.. there shouldn't be a distinction here with what is done for email attachments; if the publisher sends a size it should be displayed.
Comment 5•14 years ago
|
||
(In reply to comment #4)
> if there were a non folder based way of knowing a message is a feed (bug
> 522645?), this probably isn't necessary, as the existing above header could be
> used in conjunction with knowing it's a feed.
Does this code (which the content policy uses) help?
http://hg.mozilla.org/comm-central/annotate/4af027ba1614/mailnews/base/util/nsMsgUtils.cpp#l1013
no, the server will not QI to nsIRssIncomingServer unless it's physically in a feed folder. you can easily see the issue with content policy as a feed message copied to a local folder or any other will show the blocked remote content notify.
the correct way is to set a feed property on the message after it's added, per the above bug, which is simple but depends on bug 647699.
i'll change the patch to forego the enclosure header part as it's hacky on second thought.
Attachment #522721 -
Attachment is obsolete: true
Attachment #522721 -
Flags: review?(mbanner)
Attachment #529615 -
Flags: review?(mbanner)
Comment 8•14 years ago
|
||
Comment on attachment 529615 [details] [diff] [review]
just size.
>- 'Content-Type: ' + this.mContentType + '; name="' + this.mFileName + '"\n' +
>+ 'Content-Type: ' + this.mContentType +
>+ '; name="' + this.mFileName +
>+ (this.mLength ? '; size=' + this.mLength : '') + '\n' +
I think you're missing closing the double-quotes on the filename. Maybe insert them into both halfs of the this.mLength ? : statement?
Also, do you have a feed I could test this on?
Attachment #529615 -
Flags: review?(mbanner) → review-
here's one with an enclosure, currently.
http://www.wired.com/magazine/feed/
Attachment #529615 -
Attachment is obsolete: true
Attachment #529990 -
Flags: review?(mbanner)
Updated•14 years ago
|
Attachment #529990 -
Attachment is patch: true
Attachment #529990 -
Attachment mime type: text/x-patch → text/plain
Comment 10•14 years ago
|
||
Comment on attachment 529990 [details] [diff] [review]
paying attention this time..
Ok, thanks, this looks better.
Attachment #529990 -
Flags: review?(mbanner) → review+
Updated•14 years ago
|
Keywords: checkin-needed
Comment 11•14 years ago
|
||
Assignee: nobody → alta88
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.4
Updated•14 years ago
|
Target Milestone: Thunderbird 3.4 → Thunderbird 3.3a4
Comment 12•14 years ago
|
||
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•