Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Closed Unassigned: Regex expression for parsing BODYSTRUCTURE [2444]

$
0
0
---
Sorry, I was working with an older version of the source code. The package under "Downloads" is different than under "Source Code". The actual version works as expected.
---


Hi,
I had some issues with parsing the BODYSTRUCTURE, when its more complex.

Changing Line 31 in Expressions.cs from

```
public static readonly Regex BodyStructRex = new Regex(@"BODYSTRUCTURE (\(.+\))");
```
to
```
public static readonly Regex BodyStructRex = new Regex(@"FETCH \(.*BODYSTRUCTURE \((.*)\).*\)");
```

solved the problem.

Best regards,
Michael

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>