Code review comment for lp:~therp-nl/server-env-tools/6.1-fetchmail_attach_from_folder

Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

Approve.

I tested the following use-case: single imap folder contains mail sent to and received from customers.

Did the following configuration;
- Created an incoming server document, with all the usual options
- Linked two folder configurations to this document:

1. - Folder 'Klanten' (customers)
   - match algorithm: Exact mailaddress
   - Model 'relatieadressen' (res.partner.address)
   - Field (emal): from
   - Field (model): email
   - Message state: Received
   - Domain: [('partner_id.customer', '=', True)]
   - Delete matches: False
   - Flag nonmatching: True
   - Use first match: True
2. The same as 1., except for the following:
   - Field (email): to, cc, bcc
   - Message state: Sent

I then used my mail client to send a mail wit an attachment (here our offer....) to a test customer-email. Then I used the test customer email account to sent back a reply, (I agree to the offer, find enclosed...), with another attachment.

Then I placed both the e-mail sent, and the reply received in the folder Klanten (customers) and ran the receive mail action in the incoming mail server document.

Outcome was as expected:
- I could find both mails, with the right status, on the tab 'Email' within the partner record
- I could see and open both the outgoing and the incoming attachment from within OpenERP.

Kind regards,

Ronald

review: Approve

« Back to merge proposal