Hello,

PUTting a new meeting with

ATTENDEE;CN="X, Y":MAILTO:a@b

sends over 3.0/imap/imip_send_sendmail() to sendmail:
To: X, Y <a@b>
which sendmail normalizes to
To: X@fqdm, Y <a@b>

The string X, Y must be quoted, as described in RFC5322 Section 3.2.4 “Quoted 
Strings”.

Is there code in cyrus, that does such quoting, when necessary?  I found 
prot_printstring() which works on struct
protstream, but the need is for operating on char* or struct buf.

The codebase will benefit, if somebody does deduplication. There is code on 
several places generating message
boundaries, or calculating the sieve paths for a user.  There is 
lib/prot.c:isQCHAR which seems and sounds very similar
to lib/rfc822tok.c:is_special.  A const array with the value “{ "Sun", "Mon", 
"Tue", "Wed", "Thu", "Fri", "Sat" }” is
defined in imap/http_tzdist.c, imap/httpd.c, and lib/times.c, but a single 
cyrus-wide definition will be sufficient. 
Likewise, a there are several definitions of the weekdays.

Regards
  Дилян

Reply via email to