Message UID

Egoitz Aurrekoetxea egoitz at ramattack.net
Fri Apr 24 15:16:05 EDT 2015


Good afternoon Bron,

> El 24/4/2015, a las 14:13, Bron Gondwana <brong at fastmail.fm> escribió:
> 
> 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:

I’m going to find just expunged messages in existing mailboxes and later, too, deleted mailboxes although this last work differently because they have the deleted prefix and all messages inside them are expunged. The problem 
was when the mailbox has not been removed and it contained some mails requested to be expunged (I have expunge_mode: delayed), to identify them and later doing something like a archive with all of them. 

> 
> . 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)
> 

So I assume this last (about deleted but not expunged) does not apply to me… I’m just interested in requested for removal content but not yet removed from disk, due to expunge delay.

> 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.
> 

Sure this is Cyrus, IMHO the very best mailbox content storing and serving system… it literally demolish (really) the other systems….
> Regards,
> 
> Bron.

Thank you so much Bron,

> 
> -- 
>  Bron Gondwana
>  brong at fastmail.fm
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



More information about the Info-cyrus mailing list