Code Monkey home page Code Monkey logo

Comments (4)

reinaldocoelho avatar reinaldocoelho commented on July 16, 2024

Hi @domshifter !
I never heard about this issue.
Can you give to us the steps to reproduce the problem?

from mailsystem.net.

codeminic avatar codeminic commented on July 16, 2024

Hi @reinaldocoelho , thank you for your fast reply!

We used Comodo to generate a certificate which we then used to sign the mails.

I tested three scenarios:

  1. Send a mail from my dev machine, then fetch it with my application which also runs on my machine. This works (maybe because i got the certificate installed on my machine which i used to sign the mails?)

  2. Send a mail from my dev machine, then fetch it with my application on another dev machine which is in the same domain. This also works.. (maybe because the two pc's are in the same domain?)

  3. Send a mail from outside our domain, then fetch it on my local running application. In this case, i'm not able to get the attachments.

Our code looks something like this:

_client = new Imap4Client();
_client.ConnectSsl(settings.ServerName, settings.Port);
var inbox = _client.SelectMailbox("inbox"); 
var messages = inbox.SearchParse("ALL");

foreach (var message in messages)
{
    foreach (MimePart attachment in message.Attachments)
    {
        //process attachment
    }
}
_client.Disconnect();

from mailsystem.net.

reinaldocoelho avatar reinaldocoelho commented on July 16, 2024

@domshifter only the attachments is out of message?
Can you get both EML files and attach to this issue to compare that?

You can use the methods Message.StoreToFile() or Message.ToMimeString().

from mailsystem.net.

reinaldocoelho avatar reinaldocoelho commented on July 16, 2024

Closing for no answer.

from mailsystem.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.