You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because `HeaderCounter` is a subclass of Python's `Counter`, you can also perform operations such as `headers.most_common(8)` to get the 8 most-common headers from the `mbox` file.
91
93
94
+
If you want to find all email headers with the word "spam" in it (e.g spam score, other antispam mechanism), you can use Python's `filter()` function:
To get a simple barchart on the distribution of email domains in your `.mbox`, you can create a `DomainSummary` object and call the `.plot()` function:
106
+
107
+
```python
108
+
from emailnetwork.summary import DomainSummary
109
+
summary = DomainSummary(reader)
110
+
summary.plot()
111
+
```
112
+
113
+

114
+
115
+
You can also return a `Counter()` (a subclass of `dict`) instead of a plot:
0 commit comments