<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">Yes, a general "create mine boundary" function could be written.  I guess nobody figured it was worth the effort yet.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Bron.</div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">On Sat, Jan 26, 2019, at 00:33, Дилян Палаузов wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div style="font-family:Arial;">Hello,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">sending a MIME message implies generating multipart boundary (random) string.  Cyrus does this in:<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">imap/cyrdump.c:g<br></div><div style="font-family:Arial;">enerate_boundary()<br></div><div style="font-family:Arial;">imap/httpd.c:write_multipart_body()<br></div><div style="font-family:Arial;">imap/http_caldav_sched.c:imip_send_sendmail()<br></div><div style="font-family:Arial;">imap/jmap_mail.c:_mime<br></div><div style="font-family:Arial;">_make_boundary()<br></div><div style="font-family:Arial;">imap/lmtp_siele.c:send_rejection()<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Isn’t it feasible to avoid on this occassion code duplication?<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Regards<br></div><div style="font-family:Arial;"> <br></div><div style="font-family:Arial;">Дилян<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;"><br></div></blockquote><div style="font-family:Arial;"><br></div><div id="sig56629417"><div class="signature">--<br></div><div class="signature">  Bron Gondwana, CEO, FastMail Pty Ltd<br></div><div class="signature">  brong@fastmailteam.com<br></div><div class="signature"><br></div></div></body></html>