Summary | RSS/Atom feeds for mailboxes |
Queue | IMP |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | mdjukic (at) |
Created | 10/05/2005 (7216 days ago) |
Due | |
Updated | 01/12/2007 (6752 days ago) |
Assigned | 10/05/2005 (7216 days ago) |
Resolved | 01/12/2007 (6752 days ago) |
Milestone | IMP 4.2 |
Patch | No |
State ⇒ Resolved
mailboxes, add code to force showing previews even if preview prefs
aren't on) and committed.
solutions, esp. since we'd have to escape /'s even if we did
rss.php?INBOX/foo - unless / after ? aren't path characters?
too. It's really a very advanced feature, so requiring certain server
capabilities for it should be fine.
New Attachment: rss[1].diff
Attached is a replacement patch that:
1. uses PATH_INFO, if possible, then tries REQUEST_URI, then just
defaults to INBOX.
2. uses the /-/new syntax
3. handles vfolders properly
support PATH_INFO in some cases, it won't recognize rss.php/whatever
as referring to rss.php - it'll complain that it can't find "whatever"
in the rss.php/ directory.
Personally I think using PATH_INFO here is much nicer than other
solutions, esp. since we'd have to escape /'s even if we did
rss.php?INBOX/foo - unless / after ? aren't path characters?
Thoughts? Opinions? Frogs?
from PHP 4.1.0
REQUEST_URI comes from the sapi (apache, whatever), and is somewhat
dependent on it.
from PHP 4.1.0
per a discussion with Chuck, the url scheme is:
http://server/horde/imp/rss.php - gives all mail in inbox
http://server/horde/imp/rss.php/new - gives new mail in inbox
base this on
(http://code.google.com/apis/gdata/protocol.html#query-requests) that
should take care of the /new problem. /new is a category, and
categories should be preceded with /-/ to distinguish them from other
path elements. So we'd have:
http://server/horde/imp/rss.php - gives all mail in inbox
http://server/horde/imp/rss.php/-/new - gives new mail in inbox
Also, rss.php/INBOX should work as well. I like the REQUEST_URI usage
to avoid PATH_INFO; any sense how portable it is?
submission. But...
As per Selsky's question in IRC, the code doesn't handle vfolders
because I was using MailboxCache directly. The fix is trivial, using
Mailbox's buildMailboxArray(), but then there is no clean way of
retrieving only new messages.
Perhaps the /new idea isn't a good one, and that functionality should
be relegated to a vfolder?
State ⇒ Feedback
Can't we use a character that is not allowed in IMAP folder names
instead, or at least one that's supposed to be less common than "new"?
New Attachment: rss.diff
a discussion with Chuck, the url scheme is:
http://server/horde/imp/rss.php - gives all mail in inbox
http://server/horde/imp/rss.php/new - gives new mail in inbox
http://server/horde/imp/rss.php/A/B - gives all mail in folder A.B
http://server/horde/imp/rss.php/A/B/new - gives new mail in folder A.B
(...where "all mail" is the last 20 messages regardless of status).
The proposed file in /imp/templates/rss/mailbox.rss is identical to
the file in /whups/templates/rss/ticket.rss, and similarly
/imp/themes/feed-rss.xsl to /whups/themes/feed-rss.xsl.
Please let me know any changes or enhancements that should be made.
State ⇒ Accepted
Taken from
Priority ⇒ 1. Low
State ⇒ Assigned
Assigned to
Queue ⇒ IMP
Summary ⇒ RSS feed for mailboxes
Type ⇒ Enhancement
imp/lib/Block/tree_folders.php, so that a summary of all the folders
and new mail can be fetched through RSS.