This should be:

```python
preamble = msg.preamble
if self._mangle_from_:
  preamble = fcre.sub('>From ', msg.preamble) 
```

So that preamble is always defined, regardless of the if.