Commit Graph

42 Commits (459b183a42314d99d4a9a20bd17fa46e6ed2fe4c)

Author SHA1 Message Date
Ludovic Marcotte 18a300ca5b (fix) appplied fix from Zentyal - PR#102
Original commit: 33a1d2c397
2015-09-09 08:22:33 -04:00
Ludovic Marcotte f515106bcc (fix) added patch from PR93 2015-08-03 09:16:55 -04:00
Jesús García Sáez 0f432b654f oc: Fix internal EntryIds properties on multidomain
PidTag*EntryId properties were not being generated (which contain
the email address and so on). Functionality on Outlook clients like
"Reply All" were not working because of this (probably a lot more
stuff related with email addresses).

With multidomain support enabled outlook clients will use full email
address (e.g. user@domain.com) as login.

This change is needed because we were performing ldap queries on samdb
using (sAMAccountName=UIDFieldName), being UIDFieldName the parameter
configured in sogo.conf for that source. In multidomain environment
this field could be `sAMAccountName` but it could not. Actually the
more logical scenario will be to use `uid` field here (which will be
just `user`, without the `@domain.com` part).

SOGoUserManager will return `sAMAccountName` if the contact has it
(in Outlook environment that means always) so it can (and must) be
used to query samdb in MAPIStoreSamDBUtils properly.

TL;DR: use sAMAccoutName instead of uid to query samdb
2015-04-16 11:32:24 +02:00
Enrique J. Hernández Blasco f9c8661fe6 oc-mail: Use constant names in props value
This gives to the developer more information about
the property values for PidLidSharingFlavor and
PidLidSharingCapabilities.
2015-03-25 10:12:15 +01:00
Enrique J. Hernández Blasco 661b6694af oc-mail: Fix several sharing properties managing
* PidNameXSharingFlavor is used by Outlook 2010 so we have
  to store it
* 0x5100 is used although it is not in spec as Sharing Flavour
  value when the request is denied from a message where
  Request + Invitation was sent.
* Return properly PidNameXSharingCapabilities and PidNameXSharingFlavor
  as it is an string representation of a hex number
* Try to guess proper sharing flavour value when it is missing
2015-03-25 10:12:15 +01:00
Jesús García Sáez 307fe90854 Merge pull request #99 from Zentyal/ejhernandez/corner-cases-import-PST
oc-mail: Set sender on email messages without an orig recipient
2015-03-11 13:08:33 +01:00
Enrique J. Hernández Blasco 316ade13f8 oc: Implement Sharing Message Object
It acts as a proxy of MAPIStoreMailMessage and it manages the properties
defined in [MS-OXSHARE] Section 2.2 by storing them in the mail message
as eXtensible MIME headers which starts with X-MS-Sharing.
2015-03-04 18:49:17 +01:00
Enrique J. Hernández Blasco 44dfd35521 oc-mail: Set sender on email messages without an orig recipient
But it has recipients. This is for sure happening with event
invitations messages.
2015-03-03 22:52:42 +01:00
Enrique J. Hernández Blasco 96986812f4 oc-mail: Set content type for a message after upgrading sope 2.2.15
Now that message headers can be set dynamically, we can
set the body-related headers using `setHeader` selector.

This fixes emails sent using this sope version are all in plain text.
2015-02-07 00:22:45 +01:00
Enrique J. Hernández Blasco c6b976a830 oc-mail: Remove unnecessary time shift in date for new mails
The MIME type can store the date in UTC and the clients are
responsible on showing correctly to the client as it does.
2015-01-20 14:35:32 +01:00
Enrique J. Hernández Blasco a56fc93a9a oc: Guess recipients from some properties while importing PST
This is happening when importing a PST file.

From -> PidTagSenderEntryId
To   -> PidTagOriginalDisplayTo
CC   -> PidTagOriginalDisplayCc

The tested EntryID are the local users and OneOffEntries
when the users are not from the directory.

It requires https://github.com/openchange/openchange/pull/175 to work.
2014-12-23 00:59:29 +01:00
Jesús García Sáez 445a1fb2d6 oc: MailMessages return correct codepage 2014-11-19 17:12:29 +01:00
Kamen Mazdrashki 2792baac02 openchange: don't overflow possible recipient type while creating message headers
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
2014-07-02 14:58:57 +02:00
Kamen Mazdrashki 4b383705ff openchange: Fix submitWithFlags to submit to BCC-ed recipients also
this reintroduces commit 7efb263c659451d2c781547a5b38cb5d01ed837f

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
2014-07-02 14:58:47 +02:00
Kamen Mazdrashki 27851ef428 openchange: FillMessageHeadersFromProperties fix skipping of last value in
possible range of recepients

IMHO, this fixes a bug, that when saving a meessage, it  is saved
without BCC fields.

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
2014-07-02 14:58:16 +02:00
Kamen Mazdrashki 7da8885190 openchange: getMessageData - replace int literals with ulRecipClass values
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
2014-07-02 14:58:06 +02:00
Ludovic Marcotte 5f9fb4e1c4 Big refactor for new caching mechanism. 2014-05-13 21:06:59 -04:00
Ludovic Marcotte 70086e5ee6 Fix for bug #1935 2013-09-19 09:56:28 -04:00
Ludovic Marcotte 33840c71cd Changed noop by unselect/select. 2013-04-10 10:48:25 -04:00
Ludovic Marcotte 1b983ef691 Fixed a potential timing issue with Dovecot when getting the modseq 2013-04-10 09:56:23 -04:00
Ludovic Marcotte 93f9a7273e Now handle mem context when saving messages and removed useless debugging. 2013-03-13 15:04:11 -04:00
Ludovic Marcotte cc98664d13 Fix for bug #2024. 2012-11-20 15:21:49 -05:00
Wolfgang Sourdeau 06fc7ed49f -submitWithFlags: adapt to new SOGoMailer API 2012-10-17 08:26:22 -04:00
Wolfgang Sourdeau 2bf242c97b Monotone-Parent: 3cd1b3a63a62fe841a9e4978d5ca818ab175f870
Monotone-Revision: e95189d2eb78ea96edf9291b7136e415251a7eb4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-09-06T14:15:03
Monotone-Branch: ca.inverse.sogo
2012-09-06 14:15:03 +00:00
Wolfgang Sourdeau fe39d82f5d Monotone-Parent: b6e0c5de869a2a15ff75f7dd4850ede790373285
Monotone-Revision: 3cd1b3a63a62fe841a9e4978d5ca818ab175f870

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-09-06T14:13:24
Monotone-Branch: ca.inverse.sogo
2012-09-06 14:13:24 +00:00
Wolfgang Sourdeau bde4b22ba7 Monotone-Parent: 572391072fa416635b9921d39ed76478ed762097
Monotone-Revision: 105b571703ff5c4cc1024854ef8a1d987aef2bf1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-17T19:04:57
Monotone-Branch: ca.inverse.sogo
2012-08-17 19:04:57 +00:00
Wolfgang Sourdeau 5093fb964e Monotone-Parent: fb5c07bbc778bf76fbbad3504f7d0d3af398045b
Monotone-Revision: 355e6e150effcfc0fdb8c4139071a1a734173bda

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-07T13:32:35
Monotone-Branch: ca.inverse.sogo
2012-08-07 13:32:35 +00:00
Wolfgang Sourdeau c9a9d83e82 Monotone-Parent: a627928e5439c333efd9a1bda334f534a91c3a30
Monotone-Revision: fb5c07bbc778bf76fbbad3504f7d0d3af398045b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-07T12:59:49
Monotone-Branch: ca.inverse.sogo
2012-08-07 12:59:49 +00:00
Wolfgang Sourdeau bd8af728ce Monotone-Parent: 08f69e80d11df21083547348b4136cf77bdb5a78
Monotone-Revision: 152cd7be8bdfd9ff8cd05ec730d08c591d29dc2e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-06T19:17:35
Monotone-Branch: ca.inverse.sogo
2012-08-06 19:17:35 +00:00
Wolfgang Sourdeau 7bb437021a Monotone-Parent: d6049f3e55fa0ac4385db63c3777aa1d84d5511c
Monotone-Revision: 3fdbf80f4c1de08138ff9435f54fd9f663ef5b8f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-20T14:13:56
Monotone-Branch: ca.inverse.sogo
2012-07-20 14:13:56 +00:00
Wolfgang Sourdeau 95a443d89a Monotone-Parent: 3f8608c82d9c379cc9e0fea6ffe853cc1949a24b
Monotone-Revision: 905276f295d6f28a6946297f6a7af9ad60f71842

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-06-29T17:59:38
Monotone-Branch: ca.inverse.sogo
2012-06-29 17:59:38 +00:00
Wolfgang Sourdeau 4f148bafc6 Monotone-Parent: 1900d82b81c570a73d4db548a566ed09b57ee43a
Monotone-Revision: b0de6c606ce6f295a8956a42ed0f0bc3b6e3cca3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-30T19:58:16
Monotone-Branch: ca.inverse.sogo
2012-03-30 19:58:16 +00:00
Wolfgang Sourdeau e01985e910 Monotone-Parent: 5e1d3b05e4ac96fabc257b4fb753b7c7439c8337
Monotone-Revision: facc7e6b6f1dbd15663b7472ae5447106a067e21

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-10T04:44:31
Monotone-Branch: ca.inverse.sogo
2012-03-10 04:44:31 +00:00
Wolfgang Sourdeau 4b81cb167d Monotone-Parent: 4e23e038f2b0b7eddf8b30700b8c9a8910768f98
Monotone-Revision: 9235e5dc4d151a3cba8ad842ac39e1b2d18c8201

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-29T19:55:21
Monotone-Branch: ca.inverse.sogo
2012-01-29 19:55:21 +00:00
Wolfgang Sourdeau cb4341db75 Monotone-Parent: 12ff4c07aa1f796a3312a4e79566255dbd94aece
Monotone-Revision: dd0644b62704e75dfed8a39a7e286d593f0014e0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-17T18:39:42
Monotone-Branch: ca.inverse.sogo
2011-11-17 18:39:42 +00:00
Wolfgang Sourdeau 6f13029d21 Monotone-Parent: e38c570559610854b85c2c517053417779a76964
Monotone-Revision: 419d3afdcfcc1cddf8eef1f0311d418b03b0d1a0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-17T16:15:38
Monotone-Branch: ca.inverse.sogo
2011-11-17 16:15:38 +00:00
Wolfgang Sourdeau 13349e9868 Monotone-Parent: 113f81e1676d886a71b93cdd6b7aff23ada6b5e4
Monotone-Revision: e836d3ba228988acc21e87b16faa064ac0c357e4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-09T14:46:08
Monotone-Branch: ca.inverse.sogo
2011-11-09 14:46:08 +00:00
Wolfgang Sourdeau 40b8b1a463 Monotone-Parent: d48fed214ae2d8c0aea1b8848de745e3ee235afa
Monotone-Revision: 2cafdbe57b649f3842f8bc101e3a2eb5ff10af5c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-07T15:11:22
Monotone-Branch: ca.inverse.sogo
2011-11-07 15:11:22 +00:00
Wolfgang Sourdeau 2c3cb08c97 Monotone-Parent: 8a43228272ae820e41c9c73e361ca745f6695527
Monotone-Revision: 2d5ff72c3c099708827ce0e685f1f29a86eddcb0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-28T15:13:15
Monotone-Branch: ca.inverse.sogo
2011-10-28 15:13:15 +00:00
Wolfgang Sourdeau 6b820b12bd Monotone-Parent: 4ce6162defbc430cacd1a414c9d9b8a3d7e9940e
Monotone-Revision: 8a43228272ae820e41c9c73e361ca745f6695527

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-28T13:12:21
Monotone-Branch: ca.inverse.sogo
2011-10-28 13:12:21 +00:00
Wolfgang Sourdeau f94d90acd2 Monotone-Parent: a297f80b93f195cc2534f1493b2f4e4a124cf3ca
Monotone-Revision: d9b2b0a2845a06c22e7a7b71eb7857acb44bf0e4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-26T23:52:55
Monotone-Branch: ca.inverse.sogo
2011-10-26 23:52:55 +00:00
Wolfgang Sourdeau cc335e8f72 Monotone-Parent: c2bdfbc593f7ac0758ee78b63baee4d5b409e6bd
Monotone-Revision: a297f80b93f195cc2534f1493b2f4e4a124cf3ca

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-26T21:33:51
Monotone-Branch: ca.inverse.sogo
2011-10-26 21:33:51 +00:00