Hello Predrag, Predrag Punosevac <[email protected]> wrote: |Could you please educate me on what is the proper way to search through |IMAP folder preferably using regular expressions? Is there anything |equivalent in terms of documentation to this
Gunnar Ritter implemented IMAP search expressions, and so you can use these standard IMAP matches (plain case-insensitive substring matching for the string searches if i recall correctly). The only good thing i know about those is that they can execute on the server if it supports them (i have never used one which doesn't). ?0[ +nail]? f (from predrag) -S 0.00 6 Predrag Punosevac 2015-01-02 138/ 5700 ├▸Re: [S-nail] Crash when changing folders -S 0.00 12 Predrag Punosevac 2015-01-03 134/ 6075 ││└▸ -S 0.00 16 Predrag Punosevac 2015-01-03 149/ 6747 ││ └▸ ▸NS 0.00 225 Predrag Punosevac 21:46 10-06 115/ 6519 [S-nail] Searching through IMAP folder I have seen fly by some drafts or even real RFCs for extensions of that syntax per-se, but we don't support it. And sorry this won't happen for quite a while, IMAP will go. I _really_ have to address the basic problems of the codebase as the next step, and this immense piece of -- sorry -- terrible code that is IMAP and IMAP cache is in the way. The only other option we have is the @ search expression, which supports regular expressions (or can). That, however, requires the message to be accessible locally. :( ?0[ +nail]? f @f@^Predrag would give the same listing as above, but with regular expressions you can of course specify an exact match, which the IMAP expressions we support do not (iirc). |http://rand-mh.sourceforge.net/book/#chFOMaMH Oh yes Predrag, this is ... full of examples. Yes, you are absolutely right in that i removed all examples which show listings etc. because all that is subject to change. But i thought that it is more irritating to a user if a given example doesn't reflect 1:1 to what he sees. If you would look into past releases of S-nail you would see that at the beginning i kept those examples, but sometimes i forgot to update them after changes on the actual format. Then, thus. Yes and then the TODO became longer and longer and more and more problems were revealed and we need a complete I/O and MIME rewrite to get over all that, for real that is, and .. And then my thinking was that (especially then later with mdocmx(7) which offers all those interactive cross-references) it would easier to give just pointers for variables and commands of interest. We do have some examples for non-interactive send cases, for interactive use, well, you need to be capable of suffering anyway, right -- no possibility to access individual MIME parts, i cannot even drive the mailing list moderation requests from within S-nail. Terrible. Note your pointer is an excerpt of an O'Reilly book reworked for the web, the first copyright of the printed book being from 1991, the last being from 2004 -- these are thirteen years. I'm now maintaining S-nail for 36 months, three years. Oh, i hope you have the patience to wait and look into S-nail again in 2025. And i for one DO hope it's getting better! Out of interest: nmh.git repo search shows not a single commit of Jerry Peek -- he is only credited, in seven commits over thirteen years (six of which in between 1999 and 2003, however). ..Just in case you have interest in writing a book about S-nail :) How about two distinct volumes, "The dark ages" and "The age of enlightenment". ha-ha-ha! Well, i'm stuck in the first still. |wonderful NMH chapter manual on search. I do understand that I could |theoretically fetch all the messages locally and deal with it as regular |file/folder. Wonderful. What i can do is spreading the word "searching" across the manual, referring to the section "Specifying messages"[1]. Maybe undo some wording like "will perform the search locally as necessary" and instead write "searches will be performed on the server if possible" (again). Und tja, hm. I will try to inject even more cross-references, in particular i see now that `from' is completely missing, though it is the command of choice for searching purposes. So much room for improvement. .. [1] http://sdaoden.users.sourceforge.net/code-nail.html#25 |Best, |Predrag Ciao Predrag. Thanks for the pointer. Will be in v14.9. Ciao and good night, --steffen ------------------------------------------------------------------------------ _______________________________________________ S-nail-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/s-nail-users
