[MlMt] Anyway to create a sub-mailbox from a bugzilla bug?

Benny Kjær Nielsen mailinglist at freron.com
Wed Sep 9 08:21:52 EDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20150909/8ef2b01e/attachment.html>


More information about the mailmate mailing list