Message UID

Bron Gondwana brong at fastmail.fm
Fri Apr 24 08:13:56 EDT 2015


If you're talking IMAP UID, then the filename is UID. - literally, the first is "1.", the second "2.", etc.  That's the number with a trailing dot, just to piss off Windows people who can't create files in that format I think.  If I was doing it now, I'd call them .eml or something.

But if the message is deleted an not expunged?  You would run TAG UID SEARCH 1:* DELETED, like this:

. UID SEARCH 1:* NOT DELETED
* SEARCH 12 55 65 67 71 73 83 88 93 95 100 102 108 109 110 112 113 116 118 121 124 126 127 128 129 131 132 133 134 135 137 138 139 140 141 142 143
. OK Completed (37 msgs in 0.000 secs)
. uid store 65 +flags \Deleted
* 3 FETCH (FLAGS (\Flagged \Draft \Deleted \Seen) UID 65)
. OK Completed
. UID SEARCH 1:* DELETED
* SEARCH 65
. OK Completed (1 msgs in 0.000 secs)

On Fri, Apr 24, 2015, at 08:41 PM, Egoitz Aurrekoetxea wrote:
> And by the way, if there’s no correspondence on UID <-> Mail filename in the mailbox… how could I know which UID corresponds to which filename in the mailbox?.

There is though, at least for now.  Later, there will be tooling to make it easier (probably in mbexamine) to find the matching file on disk, but it just hasn't been a priority for anyone.

Regards,

Bron.

-- 
  Bron Gondwana
  brong at fastmail.fm


More information about the Info-cyrus mailing list