Mercurial > mxe-octave
comparison src/vmime-1-win32.patch @ 590:6c39b5f524fd
optional To recipients list in package vmime
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Fri, 11 Dec 2009 14:52:04 +0100 |
parents | e8df86a739e2 |
children | dab071eac9c0 |
comparison
equal
deleted
inserted
replaced
589:72e6bc298b7f | 590:6c39b5f524fd |
---|---|
470 + NO_NEW_LINE_SEQUENCE = (1 << 2), /**< Use CRLF instead of new-line sequence (CRLF + TAB). */ | 470 + NO_NEW_LINE_SEQUENCE = (1 << 2), /**< Use CRLF instead of new-line sequence (CRLF + TAB). */ |
471 + QUOTE_IF_POSSIBLE = (1 << 3) /**< Use quoting instead of encoding when possible (even if FORCE_ENCODING is specified). */ | 471 + QUOTE_IF_POSSIBLE = (1 << 3) /**< Use quoting instead of encoding when possible (even if FORCE_ENCODING is specified). */ |
472 }; | 472 }; |
473 | 473 |
474 /** Encode and fold text in respect to RFC-2047. | 474 /** Encode and fold text in respect to RFC-2047. |
475 --- libvmime-0.9.0.orig/src/messageBuilder.cpp 2009-11-12 11:27:52.000000000 +0100 | |
476 +++ libvmime-0.9.0/src/messageBuilder.cpp 2009-12-11 14:21:31.000000000 +0100 | |
477 @@ -54,11 +54,15 @@ | |
478 if (m_from.isEmpty()) | |
479 throw exceptions::no_expeditor(); | |
480 | |
481 - if (m_to.isEmpty() || m_to.getAddressAt(0)->isEmpty()) | |
482 + if ((m_to.isEmpty() || m_to.getAddressAt(0)->isEmpty()) && | |
483 + (m_cc.isEmpty() || m_cc.getAddressAt(0)->isEmpty()) && | |
484 + (m_bcc.isEmpty() || m_bcc.getAddressAt(0)->isEmpty())) | |
485 throw exceptions::no_recipient(); | |
486 | |
487 msg->getHeader()->From()->setValue(m_from); | |
488 - msg->getHeader()->To()->setValue(m_to); | |
489 + | |
490 + if (!m_to.isEmpty()) | |
491 + msg->getHeader()->To()->setValue(m_to); | |
492 | |
493 if (!m_cc.isEmpty()) | |
494 msg->getHeader()->Cc()->setValue(m_cc); |