Get Relative message number from UID in IMAP? -



Get Relative message number from UID in IMAP? -

in imap it's pretty straightforward uid single message if happen have relative message number:

fetch 1 (uid)

but suppose had uid , later wanted determine relative message number message? imap provide way that?

i'm not seeing obvious in spec allow relative message number single message.

uid fetch 1:* (uid)

and parse , search through results find it, seems overkill (not mention exponentially slow).

pretty simple:

tag uid fetch <uid> (uid)

the response include message number, not in fetch info initial part of response

tag <messagenumber> fetch (uid <uid>)

imap

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -