[trunk][7.0] fetchmail writes fetchmail_server_id to mail.mail, but shouldn't it be mail.message?

Bug #1265882 reported by Holger Brunn (Therp)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned
OpenERP Community Backports (Addons)
Status tracked in 7.0
7.0
New
Undecided
Unassigned

Bug Description

Please correct me if I'm wrong, but shouldn't lines 266ff in http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/fetchmail/fetchmail.py#L266 be about mail.message? I can't think of a way how an email fetched by fetchmail could end up as a mail.mail.

Working on a fetchmail related module, I found it would be very helpful to have exactly that on mail.message.

If you confirm this one, I'll be more than happy to provide appropriate merge requests.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

After a quick glance through the code it seems to me you are perfectly right. I for one would welcome a proposal for this.

Revision history for this message
Niels Huylebroeck (red15) wrote :

mail.mail has a mail.message embedded (encapsulated / as a child)

_inherits = {'mail.message': 'mail_message_id'}

http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/mail/mail_mail.py#L42

This makes me consider that if you create a mail.message an optional mail.mail can be made as a parent and this would serve to store more details about the actual mail message (instead of just the content) and how it got delivered or should be sent.

This would server to keep the mail.message agnostic of the source, allowing users to enter messages without having to have one model that needs more columns to store all the possible meta data associated with real SMTP/IMAP/POP3 protocols.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.