source:
npl/overig/libvmime/vmime-backport-mailboxList-parser-29954e5.diff
@
d7191d1
Last change on this file since d7191d1 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 1.5 KB |
-
src/mailboxList.cpp
diff -urb libvmime-0.9.2.orig/src/mailboxList.cpp libvmime-0.9.2/src/mailboxList.cpp
old new 22 22 // 23 23 24 24 #include "vmime/mailboxList.hpp" 25 #include "vmime/mailboxGroup.hpp" 25 26 #include "vmime/exception.hpp" 26 27 27 28 … … 199 200 void mailboxList::parse(const string& buffer, const string::size_type position, 200 201 const string::size_type end, string::size_type* newPosition) 201 202 { 202 m_list.parse(buffer, position, end, newPosition); 203 string::size_type pos = position; 204 205 while (pos < end) 206 { 207 ref <address> parsedAddress = address::parseNext(buffer, pos, end, &pos); 208 209 if (parsedAddress != NULL) 210 { 211 if (parsedAddress->isGroup()) 212 { 213 ref <mailboxGroup> group = parsedAddress.staticCast <mailboxGroup>(); 214 215 for (size_t i = 0 ; i < group->getMailboxCount() ; ++i) 216 { 217 m_list.appendAddress(group->getMailboxAt(i)); 218 } 219 } 220 else 221 { 222 m_list.appendAddress(parsedAddress); 223 } 224 } 225 } 226 227 setParsedBounds(position, end); 228 229 if (newPosition) 230 *newPosition = end; 203 231 } 204 232 205 233 -
vmime/address.hpp
diff -urb libvmime-0.9.2.orig/vmime/address.hpp libvmime-0.9.2/vmime/address.hpp
old new 65 65 66 66 virtual ref <component> clone() const = 0; 67 67 68 protected:69 68 70 69 /** Parse an address from an input buffer. 71 70 *
Note: See TracBrowser
for help on using the repository browser.