I recently started using PGP, and noticed that I could not send mail
to one particular user; PGP suddenly couldn't find his key when the
to line had been expanded by BBDB.
The user's PGP was in the form:
First I. Last <[EMAIL PROTECTED]>
and BBDB insisted on expanding this as
"First I. Last" <[EMAIL PROTECTED]>
adding the quotes around the user's name.
This caused the PGP key lookup to fail for this user.
This expansion is *incorrect*, but common. RFC 822 has commonly been
mis-interpreted in the past to require
mailbox = addr-spec ; simple address
/ WORD route-addr ; name & addr-spec
^^^^
as all of the examples in the RFC follow this convention, but the RFC
actually says:
mailbox = addr-spec ; simple address
/ phrase route-addr ; name & addr-spec
^^^^^^
phrase = 1*word ; Sequence of words
^^^^^^^^
word = atom / quoted-string
which allows:
word word word <[EMAIL PROTECTED]>
I seem to recall that this mis-interpretation was present in older
sendmails from several vendors.
In any case, I found the problem in bbdb-com.el, my fix is below:
% diff bbdb-com.el bbdb-com.el.~1~
1360,1361c1360
< ;; ((string-match "[][\000-\037\177()<>@,;:.!$%]" name)
< ((string-match "[][\000-\037\177()<>@,;:!$%]" name)
---
> ((string-match "[][\000-\037\177()<>@,;:.!$%]" name)
Who do I send this to to have in incorporated into the "canonical"
source?
Tom E. Perrine ([EMAIL PROTECTED]) | Voice: +1 619 534-8328
San Diego Supercomputer Center | FAX: +1 619 534-5152
P. O. Box 85608 | Just another UNIX pothole-filler
San Diego CA 92186-9784 | on the Information StuporHypeway.