Code Monkey home page Code Monkey logo

Comments (12)

coddingtonbear avatar coddingtonbear commented on September 24, 2024

Hey there @alex-voodoo! Django-mailbox will, by default, only read your inbox, but feel free to post a pull request for allowing one to specify either a single folder or list of folders to search for messages.

I'm a little bit uncertain about your use case, though; my expected use case for this library is to allow one to perform some sort of automated work when receiving incoming messages. I guess I'm not sure what kind of automated work one might want to perform on a message just sent, but I'm interested in hearing about it.

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

Hi @coddingtonbear,
My use case is a simple CRM. The system sends an initial email to some user, and I want that email to be fetched as well as all further replies from either side.

from django-mailbox.

coddingtonbear avatar coddingtonbear commented on September 24, 2024

Ahh, so, are you sure you want to fetch the e-mail from your inbox instead of just using the reply method to record that the message went out?

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

I believe that fetching the real message would be better because that way I'll have valid IDs in reply-to fields, and the messages will link to each other naturally.

I could link them the traditional way like many CRMs do, via putting an enquiry ID to subject and asking the customer not to change it, but I don't like that. E-mails have links inside them, why not using that?

from django-mailbox.

coddingtonbear avatar coddingtonbear commented on September 24, 2024

Are you talking about the Message-ID and In-Reply-To fields?

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

Yes, exactly. The reply method generates its own ID that will not be the same as ID of the real e-mail.

And I still need a fake incoming message that I will "reply" to.

from django-mailbox.

coddingtonbear avatar coddingtonbear commented on September 24, 2024

Hrm; that would be very surprising. Could you use the reply method to send an e-mail, and then link the e-mail received by the recipient via a reply to this issue to show me that the Message-Id field is overwritten?

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

Oh now I get your idea. Django-mailbox pre-sets the ID so Django's e-mail processing will not have to set it by its own, right?

Thank you; now I need to code. I'll get back when I get results.

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

Hi @coddingtonbear,
I've succeeded; thank you for your help. Actually I've found a discussion on a similar problem—if I searched a bit more I wouldn't raise this issue.

from django-mailbox.

coddingtonbear avatar coddingtonbear commented on September 24, 2024

No worries, sir! If I had remembered having that conversation, I could've linked you to it, too ;-).

Cheers!

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

So the sent messages strike back.

I've sent a message, as explained in #25. The Message-ID header in the message is not the same as what I can see in my Django DB. These IDs look similar; apparently they are both built on the same pattern like <datetime.number1.number2@localhost>, but the numbers differ.

Why could that be?

from django-mailbox.

alex-voodoo avatar alex-voodoo commented on September 24, 2024

OK I've figured out what was wrong.

If I want to have that ID, I have to set it explicitly before sending a message.

from django-mailbox.

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.