(addr string)
| 72 | } |
| 73 | |
| 74 | func domainOf(addr string) string { |
| 75 | if i := strings.LastIndex(addr, "@"); i >= 0 { |
| 76 | return strings.TrimSpace(addr[i+1:]) |
| 77 | } |
| 78 | return "" |
| 79 | } |
| 80 | |
| 81 | // composeScanBody reconstructs the outbound message as a REAL MIME blob for |
| 82 | // piguard.Extract, so the same extractor that handles inbound (charset decode, |