Fix email API storage. 02/140502/7 accepted/tizen/unified/20170808.170930 submit/tizen/20170802.070535
authorSanjeev BA <iamsanjeev@gmail.com>
Tue, 25 Jul 2017 07:34:42 +0000 (16:34 +0900)
committerSanjeev BA <iamsanjeev@gmail.com>
Thu, 27 Jul 2017 02:50:42 +0000 (11:50 +0900)
commitd2085f9aa65aa55f2abe0f0a0759cb65cb170100
treefd1247407b70df50875558fde85e2d81ca34b989
parenta1525cb2d830851640aa53afb3cbd708bb4f6e52
Fix email API storage.

Email API writes to same file irrespective of handle.
If two processes from same app, try to write to same file, simultaneously, it could corrupt the contents.
This patch uses mkstemp() API to create temporary file names.

Change-Id: I31460f65d20b5a8707d8684ca279bdc0c54d5acb
src/email.c