 |
|
 |
hey hi,
Have you created any function to download the attatchment file within the MIME file? Is No then how can i download the attatchment to a seperate folder ?
thx
Rishi
|
|
|
|
 |
|
 |
Hi,
i am testing your code sample for reading MM7 message (Soap Format). Getting SMIL and TEXT attachments out of the message is working fine but when it comes to images it is saving the image with the name present iin the header but the image file cannot be opened to view what it was. windows says that the file is either corrupted or too large. please help.
Regards,
Wajeeh Ullah
|
|
|
|
 |
|
 |
Does this need unsafe code? MIME handling isn't special enough to warrant the elevated privileges needed to work with pointers.
|
|
|
|
 |
|
 |
Maybe only China and Germany have to suffer from missing ASCII compatibility... I tried several Pop3 projects on codeproject, but they failed when it came to national characters in the email body, or in the subject line. Now, I take Peter Huber's Pop3MailClient, call GetRawEmail, and put the raw message into MIME.MimeMessage. It really works!
A minor fix I had to introduce is an error encountered with subject line
"Subject: =?utf-8?Q?=34=2e=38=33=36_neue_Positionen_=2d_Ihre_aktuelle_Stellen=c3=bcbersicht?="
It is in MimeFieldCodeBase.DecodeToString, line 36 of the file. Simply do a if (j == k + 2) j = s.IndexOf("?=", j + 1); before determining the substring.
|
|
|
|
 |
|
 |
excellent!
i need to parse mht-files. your library is just what i need. very small and powerful.
|
|
|
|
 |
|
 |
Hello!
I'd like to include this library in an open source project related to email.
I need to be relicense it under some open source license like the LGPL or something similiar.
Since you've posted the code here, that's probnably ok for you, but I need you to actually state that it's okay.
I've also written the same post to the original author of the C++ code, who needs to agree as well.
Thanks,
Johannes.
|
|
|
|
 |
|
 |
LoadHeader should be testing line for emptiness rather than null, otherwise it chokes doing line[0] on an empty line
line = sr.ReadLine();
field = line + "\r\n";
while(! string.IsNullOrEmpty(line))
{
line = sr.ReadLine();
if(! string.IsNullOrEmpty(line) && (line[0] == ' ' || line[0] == '\t'))
{
field += line + "\r\n";
}
else
{
MimeField aMimeField = new MimeField();
aMimeField.LoadField(field);
m_listFields.Add(aMimeField);
field = line + "\r\n";
}
}
Then, MimeBody.cs should always initialize ChildList, if there're no children it's still a valid mime document.
private ArrayList ChildList = new ArrayList();
|
|
|
|
 |
|
 |
MimeBody.cs, line 75 has an inifinite loop if int nBstart2 = strData.IndexOf(strBstart, nBstart); is -1. This ends up gobbling memory. I have a large queue of spam mail with malformed boundaries that runs into this. A quick fix is:
while(nBstart < nBend)
{
nBstart = nBstart + strBstart.Length + 2;
int nBstart2 = strData.IndexOf(strBstart, nBstart);
if (nBstart2 == -1) nBstart2 = nBend;
MimeBody ChildBody = CreatePart();
ChildBody.LoadBody(strData.Substring(nBstart, nBstart2 - nBstart));
nBstart = nBstart2;
}
|
|
|
|
 |
|
 |
hi dude, i just saw this post, about a year later
part of the few codes that try to explain the blurry sections of the framework
i am working on an application using your code where i receive a message (as body) which is properly extracted, but i receive a second part (multipart/signed) where i want to extract the digital signature
can i manage to get the digital signature with your code ?
thanks !!
|
|
|
|
 |
|
 |
i wasn't getting the content in its proper base 64 form
i used the mime base 64 class you also provided
worked fine
haha
thanksssss for sharing, so far the problem is solved:->
|
|
|
|
 |
|
 |
I think this is a wonderful library... but I am wondering how I can create a multipart/mime message and send it via email? Can I just use System.Web.Mail for this and toss in the string output of MimeMessage?
Thanks,
Andres
|
|
|
|
 |
|
 |
hi! thank you you for these classes. Wanted to ask but as be c binary beside me why that is not got extract embedding.
|
|
|
|
 |
|
 |
Thank you for creating this library. I have found it very useful, but I just wanted to point out a couple bugs I have found: MimeField.cs, line# 50, SetParameter() method: m_strValue.Replace(strparams[i],newValue); should be: m_strValue = m_strValue.Replace(strparams[i],newValue);
MimeHeader.cs, line# 220, SetName() method: MimeField aMimeField = GetField(pszName); should be: MimeField aMimeField = GetField(MimeConst.ContentType);
|
|
|
|
 |
|
 |
Does a file encoded using these classes decode using other MIME decoders?
I'm having trouble with them, and would like some feedback from other users.
Thanks,
.Win
|
|
|
|
 |
|
 |
It looks like this code pukes when it encounters a MIME encoded set of base64 strings encoded with endline chars after every 72 chars instead of the standard max 76.
...
I'll let you know when I've fixed the problem.
Cheers,
.Win
|
|
|
|
 |
|
 |
The problem is that your code only interprets \r\n as a newline character, and some encodings use \n as newlines...
Cheers,
.Win
|
|
|
|
 |
|
 |
Nice work.
Is there a typo mistake ?
mediavedio should be mediavideo ?
|
|
|
|
 |
|
 |
yeah, right, my mistake ...thanks, feuerfrei.
while(true){
Love(life);
}
|
|
|
|
 |
|
 |
Very nice article, but perhaps You should use more features of C#. For example properties instead of functions.
|
|
|
|
 |
|
 |
Thanks for ur good advice, szgt! I'll try.;)
while(true){
Love(life);
}
|
|
|
|
 |