aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/pop3/POP3Folder.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-11-08 18:33:18 +0000
committerVincent Richard <[email protected]>2006-11-08 18:33:18 +0000
commitf99fc84915e4bcd2750b7fadfb24f858ccc7e5ef (patch)
treeb3c8fa78d8b145ff04aca8b17a4a74dbc348cd15 /src/net/pop3/POP3Folder.cpp
parentFixed compilation problem with GCC 3.3. (diff)
downloadvmime-f99fc84915e4bcd2750b7fadfb24f858ccc7e5ef.tar.gz
vmime-f99fc84915e4bcd2750b7fadfb24f858ccc7e5ef.zip
Imbue classic 'C' locale for the output of message parts and protocol commands.
Diffstat (limited to 'src/net/pop3/POP3Folder.cpp')
-rw-r--r--src/net/pop3/POP3Folder.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/pop3/POP3Folder.cpp b/src/net/pop3/POP3Folder.cpp
index 7ef4aa12..e19adea0 100644
--- a/src/net/pop3/POP3Folder.cpp
+++ b/src/net/pop3/POP3Folder.cpp
@@ -443,6 +443,8 @@ void POP3Folder::fetchMessage(ref <message> msg, const int options)
{
// Send the "LIST" command
std::ostringstream command;
+ command.imbue(std::locale::classic());
+
command << "LIST " << msg->getNumber();
store->sendRequest(command.str());
@@ -479,6 +481,8 @@ void POP3Folder::fetchMessage(ref <message> msg, const int options)
{
// Send the "UIDL" command
std::ostringstream command;
+ command.imbue(std::locale::classic());
+
command << "UIDL " << msg->getNumber();
store->sendRequest(command.str());
@@ -566,6 +570,8 @@ void POP3Folder::deleteMessage(const int num)
throw exceptions::illegal_state("Folder not open");
std::ostringstream command;
+ command.imbue(std::locale::classic());
+
command << "DELE " << num;
store->sendRequest(command.str());
@@ -615,6 +621,8 @@ void POP3Folder::deleteMessages(const int from, const int to)
for (int i = from ; i <= to2 ; ++i)
{
std::ostringstream command;
+ command.imbue(std::locale::classic());
+
command << "DELE " << i;
store->sendRequest(command.str());
@@ -666,6 +674,8 @@ void POP3Folder::deleteMessages(const std::vector <int>& nums)
it = nums.begin() ; it != nums.end() ; ++it)
{
std::ostringstream command;
+ command.imbue(std::locale::classic());
+
command << "DELE " << (*it);
store->sendRequest(command.str());