Re: [MlMt] Submailbox string format (or, string format modifiers in general)
On 28 Apr 2015, at 17:55, Joe Abley wrote: dnsop.ietf.org -> org.ietf.dnsop [...] Maybe I could do something similar with regular expressions and back-references? Note that I don't know in the general case how many labels are in the list-id identifier. The format string description in the manual is a bit brief. Is there a way to do this? I think your only option is regular expression, but I don't think there is “nice” way to do it. You'll have to match on 3, 4, 5, etc. up to the maximum number of items in the identifiers. I'd love to be proven wrong though. Here is an example with levels 3 and 4: ${list-id.identifier/([^.]+)\.([^.]+)\.([^.]+)\.([^.]+)|([^.]+)\.([^.]+)\.([^.]+)/${4:+$4.$3.$2.$1}${7:+$7.$6.$5}/} It first tries to match 4 and then it tries to match 3. I hope this helps. -- Benny ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
[MlMt] Submailbox string format (or, string format modifiers in general)
Hi all, Apologies if this is a repeated question (I did search the archives, but, full disclosure, I didn't search very hard). I subscribe to a lot of mailing lists. I have a smart mailbox set up as: - all messages - here the List-Id header exists - submailbox for each unique value of list-id -> identifier - mailbox name format ${list-id.identifier} This gives me subfolders like 89all.ietf.org 92all.ietf.org afnog.afnog.org dbound.ietf.org dns-wg.ripe.net dnsop.ietf.org which is great, except that I'd really like the sort order to group things differently. I'd like to see net.ripe.dns-wg org.afnog.afnog org.ietf.89all org.ietf.92all org.ietf.dbound org.ietf.dnsop If there was a format string modifier I could use in the mailbox name format like ${list-id.identifier:reverse-dot-labels} or something, then I'd have exactly what I want. Maybe I could do something similar with regular expressions and back-references? Note that I don't know in the general case how many labels are in the list-id identifier. The format string description in the manual is a bit brief. Is there a way to do this? Joe ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
Re: [MlMt] Submailbox string format
On 18 Feb 2015, at 10:43, Mike Brasch wrote: I'm trying to make the names of submailboxes are named by their folder without the full path. Currently I'm using the default ${#source.path.noinbox} which leads into folder names like Mailinglisten/MailMate Now I want remove the "Mailinglisten/". How can I do this. You can use a regular expression in the format string like this: ${#source.path.noinbox/Mailinglisten\///} It says, replace `Mailinglisten/` with the empty string. It becomes a bit unreadably because of the escaped `"/"` character. Maybe a feature request: it would be very helpful to have something like a code completion menu to see an overview of the possible values (what is the correct name for this?). My first step should probably be to document the feature :-) -- Benny ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate
[MlMt] Submailbox string format
Moin Moin! I'm trying to make the names of submailboxes are named by their folder without the full path. Currently I'm using the default ${#source.path.noinbox} which leads into folder names like Mailinglisten/MailMate Now I want remove the "Mailinglisten/". How can I do this. Maybe a feature request: it would be very helpful to have something like a code completion menu to see an overview of the possible values (what is the correct name for this?). -- Gruß Mike ___ mailmate mailing list mailmate@lists.freron.com http://lists.freron.com/listinfo/mailmate