[imp] Direct link to a message
Iikku Mattila
iikku.mattila at eduix.fi
Tue Jan 20 09:28:10 UTC 2009
Michael M Slusarz wrote:
> Quoting Iikku Mattila <iikku.mattila at eduix.fi>:
>
>> Hi,
>> I have exactly the same kind of question canobi had ~three years ago,
>> seen at
>> http://marc.info/?l=imp&m=113292496331946&w=2
>>
>> In short, I get the message number as used by imap from
>> javax.mail.Message and would like
>> to use that in creating a link to imp, something like
>> /message.php?mailbox=INBOX&index=40
>> Alternatively it'd be nice to know how to create the index as used by
>> imp, as this clearly isn't the
>> same as used by imap. Any ideas?
>
> Note: Do *NOT* pass in the IMAP message sequence number - this won't
> work and won't ever be supported.
>
> michael
>
Thanks for the note, that's just what I did wrong. So note to any
Java-users: for javax.mail.Message message, message.getMessageNumber()
returns the sequence number, and to get the uid you'll need something
like ((UIDFolder) message.getFolder()).getUID(message); Gotta love that.
More information about the imp
mailing list