Comments (12)
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.
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.
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.
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.
Are you talking about the Message-ID
and In-Reply-To
fields?
from django-mailbox.
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.
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.
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.
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.
No worries, sir! If I had remembered having that conversation, I could've linked you to it, too ;-).
Cheers!
from django-mailbox.
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.
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)
- when will the new version of django_mailbox be released? HOT 2
- AttributeError: 'int' object has no attribute 'decode' HOT 3
- sort messages incoming date
- Error on fetch email from gmail using oauth2 but could be fetched using email and password
- Error when upgrading to Django 4.0 HOT 7
- Project status HOT 2
- Urgent: Error importing email HOT 4
- Microsoft Exchange Server/Outlook deprecating basic auth (IMAP and POP) HOT 2
- Is this package maintained?
- why is the logging level set to info for root logger?
- get_new_mail not working with Mailbox instance HOT 13
- Release a new version to introduce support for python 3.9 HOT 1
- New Release With Office 365 API HOT 3
- Error migrating HOT 8
- when will the new code be released? HOT 7
- Exception 'str' object has no attribute 'from_email' when calling Message.reply() HOT 8
- FieldError at /django-admin/django_mailbox/message/ on latest release. HOT 2
- message.text throws exception with bad characters in attachment filename HOT 4
- folders with spaces in the name HOT 2
- message_received is not firing when receiving emails using getmail.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-mailbox.