 |
|
 |
We have a mail server with eight different mail addresses.
If i connect to the first one, it is all ok.
After getting the mails i disconnect and in the next step
i try to connect with the next account.
But it won't work. I get always the message "Session is already authenticated".
Where is the failure?
Best regards
Sven
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Depends what you downloaded, if mail server, then you need to get devel version.
|
|
|
|
 |
|
 |
First of all, thanks for your great classes Ivar, we've been using them for a while, and they've been rock solid.
We're using SMTP_Client class to send a Mail_Message object. It's been working quite happily, but I'm now trying to extend our code to add an attachment to the outgoing message.
I started with the Mail_Message::Attachments collection, but that appears to be read only.
Can you give any hints as to how to get started?
I had hoped there would be a Mail_Message::AddAttachment function, but no such luck!
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
 |
|
|
 |
|
 |
Many thanks, Ivar.
I found the CreateAttachment method yesterday, and had it working - but it would be good to be more proper, and have a "body" too!
ps, We're moving more code to use your mail libraries, as they're rock solid!
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
 |
|
 |
Hi,
Events happen when use MSSQL instead of XML.
WIN XP SP2
MSSQL 2000/2005
Work with Imap Folder share
//------------- function: LumiSoft.MailServer.VirtualServer.OnServer_SysError() 2011-3-28 16:41:27------------//
.Net SqlClient Data Provider : not found procedure 'select * from lsIMAP_ACL'。
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning
......
|
|
|
|
 |
|
|
 |
|
 |
I am sure the Version used by me is 0.94 version from:
http://www.lumisoft.ee/lswww/download/downloads/[^]
Here !
WSqlCommand.cs----
public WSqlCommand(string connectionString,string commandText)
{
m_connStr = connectionString;
m_SqlCmd = new SqlCommand(commandText);
m_SqlCmd.CommandType = CommandType.StoredProcedure;
m_SqlCmd.CommandTimeout = 180;
}
But
mssql_API--------
private DataSet GetACL()
{
using(WSqlCommand sqlCmd = new WSqlCommand(m_ConStr,"select * from lsIMAP_ACL")){
DataSet ds = sqlCmd.Execute();
ds.Tables[0].TableName = "ACL";
return ds;
}
}
"select * from lsIMAP_ACL" is not procedure!
waiting for new version
modified on Monday, March 28, 2011 9:49 PM
|
|
|
|
 |
|
|
 |
|
 |
Hi,
First of all select command never sets seen flag. Seen flag is set by fetch command if no BODY.PEEK fetch not used.
So fetching and seening messages with out setting seen flag, you need to use BODY.PEEK fetch.
|
|
|
|
 |
|
 |
hello ..
Thank you for prompt reply ..
i have tried SelectFolder() to select folder and give command server like this "UID FETCH 660554917 BODY.PEEK[1]\r\n" and write strem to this "IMAP007 UID FETCH 660554917 BODY.PEEK[1]\r\n"..is it right ?if yes then it doent work for me it stil set flag to read ,anything i forget ?
....
help me..
|
|
|
|
 |
|
 |
Doh .. sending raw command to server . You can do that only if you read back compex fetch response, trust me thats not very simple.
You should use IMAP client provided implementation to achive it.
|
|
|
|
 |
|
 |
sorry but i dont understand y u surprised ? what r u trying to say ..sorry but i m new bee in this mail, stuff...what shud i do now ?
|
|
|
|
 |
|
 |
Actually i have imap client kind of which run as service and reading ,parsing email which is unread and everything is working in background without any UI (it is ther but in system tray)...
can u tell me how other clients manage to read n unread email like yahoo,google we can do right click n set it to unread ..is there any back end process for it ?
|
|
|
|
 |
|
|
 |
|
 |
Oh thanks Recently today i have tried "imap_client_app"..but can't get my solution ..let see if i found anything else.
|
|
|
|
 |
|
 |
IMAP client example app provides all you need. It allows you to fetch BODY.PEEK with out setting seen flag.
Another code snipset of reallife code using body peek.
List<string> retVal = new List<string>();
IMAP_Client_FetchHandler fetchHandler = new IMAP_Client_FetchHandler();
fetchHandler.Body += new EventHandler<IMAP_Client_Fetch_Body_EArgs>(delegate(object s,IMAP_Client_Fetch_Body_EArgs e){
e.Stream = storeStream;
e.StoringCompleted += new EventHandler(delegate(object s1,EventArgs e1){
});
});
IMAP_SequenceSet seqSet = new IMAP_SequenceSet();
seqSet.Parse(messageID);
imap.Fetch(
true,
seqSet,
new IMAP_Fetch_DataItem[]{
new IMAP_Fetch_DataItem_BodyPeek()
},
fetchHandler
);
|
|
|
|
 |
|
 |
i have download and run it and check one mail ..it set to seen flag ..that y i was telling u cant get solution..
|
|
|
|
 |
|
 |
See my last post. imap example app uses Rfc822 fetching that equal body fetching, you need body.peek fetching and last post show exactly how to use it head is not smart enough to figure it out by own .
|
|
|
|
 |
|
 |
Hello ,
After long time i read your posted reply on this discussion.I was busy in other project, I want to thank you to provide such a nice API its very useful to me. .and i want to tell u that i found my solution by own . simply i remove "SEEN" flag from server and it seems like its unseen email ,when i failed to parse it.was so simple rite? and yes at that time i was doing just R & D so sorry for my silly questions i was new , now i am smart enough to do whatever you mentioned about.
Thank you.
|
|
|
|
 |
|
 |
Hi,Lumi
I use the pop3client code to receive message found a bug,when I want to receive the BodyText of a message,the example code
private byte[] ParseData(string mimeDataEntry)
{
switch (m_ContentEncoding.ToLower())
{
case "quoted-printable":
return Encoding.GetEncoding(m_CharSet).GetBytes(Core.QDecode(Encoding.GetEncoding(m_CharSet), mimeDataEntry));
case "7bit":
return Encoding.ASCII.GetBytes(mimeDataEntry);
case "8bit":
return Encoding.GetEncoding(m_CharSet).GetBytes(mimeDataEntry);
case "base64":
if (mimeDataEntry.Trim().Length > 0)
{
return Convert.FromBase64String(mimeDataEntry);
}
else
{
return new byte[] { };
}
default:
throw new Exception("Not supported content-encoding " + m_ContentEncoding + " !");
}
}
the bold sign have a Exception.
can you please give me any hint,thanks!
|
|
|
|
 |
|
|
 |
|
 |
Thank you for your fast reply and your finished excellent job.
I have use this latest version, Now use the POP3_Client to receive the message is OK! but I can't mime the email header and body infomation...
Can you give me a hint how to use the MIME_h_**** files to mime the headers and body of email.
The sequence of these MIME_h_*** files are invoked ....
|
|
|
|
 |