[imp] external link to mailbox is shortened (imp 6.0.2) [SOLVED]

Michael M Slusarz slusarz at horde.org
Tue Apr 9 19:56:17 UTC 2013


Quoting Adam Tauno Williams <awilliam at whitemice.org>:

> On Mon, 2013-04-08 at 10:13 -0400, Adam Tauno Williams wrote:
>> On Thu, 2013-01-10 at 15:43 +0100, Jens Pranaitis wrote:
>> > On 01/08/2013 01:51 PM, Jens Pranaitis wrote:
>> > > On 01/08/2013 01:38 PM, Jan Schneider wrote:
>> > >> Zitat von Jens Pranaitis <pranaitis at phil.hhu.de>:
>> > >>> Hello list,
>> > >>> I'm having some trouble linking to a specific mailbox, with imp 6 (it
>> > >>> worked with version 5 and below). We have a link in our help documents
>> > >>> which the user can click to open the Spam folder. The link looks like
>> > >>>  
>> https://webmail.phil.hhu.de/horde/imp/dynamic.php?page=mailbox#mbox:SU5CT1guU3BhbXZlcmRhY2h0
>> > >>> "SU5CT1guU3BhbXZlcmRhY2h0" is the name of the maildir ("Spamverdacht")
>> > >>> and when I switch to the folder in Horde the url is the same. However
>> > >>> when I follow the external link and login to horde the URL is
>> > >>> shortened to
>> > >>>  
>> https://webmail.phil.hhu.de/horde/imp/dynamic.php?page=mailbox#mbox:SU5CT1g
>> > >>> This only occurs when I'm not logged in to Horde already, so I assume
>> > >>> it has something to do with the redirect done by the login page.
>> > >>> Is this expected behaviour? Is there a way to make external links work
>> > >>> like they did with imp < 6?
>> > >> The URL you end up with is the INBOX. You even get that if you go to
>> > >> /horde/imp/ only. My guess is that the anchor part of the URL either
>> > >> gets lost completely at some place, or the anchor detection in IMP
>> > >> doesn't work properly. Check if the correct URL is loaded at all after
>> > >> logging in.
>> > > After logging in the URL is /horde/imp/dynamic.php?page=mailbox which
>> > > then goes to the INBOX.
>> > So should I open a ticket regarding this issue?
>> Was a ticket opened on this issue?
>> I am also trying to construct a link to a specific folder, but I just
>> end up with a blank folder-view or no-change.
>> I'm on Horde 5.0.4 / IMP 6.0.4
>
> Nevermind, our web developer just figured out a working solution.
>
> http://horde.example.com/imp/?page=mailbox#mbox:U2hhcmVkIEZvb
>
> where "U2hhcmVkIEZvb" is the base64 encoded mailbox name.  Be careful to
> avoid any trailing whitespace (including newlines) when encoding the
> mailbox name.

For the record: this won't work in IMP 6.1, since a different format is used.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list