On 9 Sep 2015, at 13:02, Max Rydahl Andersen wrote:
On 8 Sep 2015, at 20:24, Kee Hinckley wrote:
Bugzilla puts a dozen headers in the email, but none of them actually
contain the bug number. Is there anyway to extract something from the
subject and use it to make a submailbox?
`Subject: [Morpheus][Bug 412711] New: trying to ingest all 20 cox
localities runs out of memory`
Note that the "New: " is only there once, so grouping by title
catches everything _except_ the first one.
I got this for jira: ${subject/.*(([^)]*))(.*)/$1/}
Which will extract JBIDE-1235 from "(JBIDE-1235) la la la "
but struggling getting it to work properly with bugzilla, but I assume
its just me
not getting the proper characters escaped.
If this is for the mailbox name format then I don't think it's quite
what Kee asks for. He wants the partitioning to be based on a substring
of the subject header. If he cannot use `prefix` or `blob` then he needs
a custom specifier.
I think [this
thread](https://www.mail-archive.com/mailmate%40lists.freron.com/msg02220.html)
describes a similar problem and the low level solution.
--
Benny
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate