# HG changeset patch
# User Aron Griffis <aron@hp.com>
# Date 1215117037 14400
# Branch HEAD
# Node ID d3ad5eb552b481627c3c441df19737702fc464a3
# Parent f72fce68ca1922a321ee7351f656c4f7e1670947
Tolerate In-Reply-To with more than one @ sign. Closes #3090
diff -r f72fce68ca19 -r d3ad5eb552b4 parse.c
|
a
|
b
|
|
| 131 | 131 | if (new) |
| 132 | 132 | { |
| 133 | 133 | /* make sure that this really does look like a message-id. |
| 134 | | * it should have exactly one @, and if we're looking at |
| | 134 | * it should have an @, and if we're looking at |
| 135 | 135 | * an in-reply-to header, make sure that the part before |
| 136 | 136 | * the @ has more than eight characters or it's probably |
| 137 | 137 | * an email address |
| 138 | 138 | */ |
| 139 | | if (!(at = strchr (new, '@')) || strchr (at + 1, '@') |
| | 139 | if (!(at = strchr (new, '@')) |
| 140 | 140 | || (in_reply_to && at - new <= 8)) |
| 141 | 141 | FREE (&new); |
| 142 | 142 | else |