Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1:/tmp/cvs-serv4540/src/mail
Modified Files:
Address.cpp
Log Message:
Parse/ignore URLs in List-* headers
Index: Address.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/Address.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -u -2 -r1.12 -r1.13
--- Address.cpp 12 Oct 2003 15:14:01 -0000 1.12
+++ Address.cpp 17 Oct 2003 13:33:32 -0000 1.13
@@ -329,2 +329,41 @@
}
+extern String FilterAddressList(const String& original)
+{
+ String result;
+
+ size_t each = 0;
+ while( each < original.size() )
+ {
+ bool match = false;
+
+ if( original[each] == _T('<') )
+ {
+ size_t colon = original.find(_T(':'),each);
+ if( colon != String::npos )
+ {
+ size_t right = original.find(_T('>'),colon);
+ if( right != String::npos )
+ {
+ if( original.substr(each+1,colon-(each+1)) == _T("mailto") )
+ {
+ result += _T('<');
+ result += original.substr(colon+1,right-(colon+1));
+ result += _T('>');
+ }
+
+ match = true;
+ each = right+1;
+ }
+ }
+ }
+
+ if( !match )
+ {
+ result += original[each];
+ ++each;
+ }
+ }
+
+ return result;
+}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates