Skip to content

Commit

Permalink
Sync transifex
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 16, 2018
1 parent 6d640ab commit f327062
Show file tree
Hide file tree
Showing 502 changed files with 29,510 additions and 27,019 deletions.
30 changes: 22 additions & 8 deletions htdocs/emailcollector/class/emailcollector.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,8 @@ public function doCollectOneCollector()

//$search='ALL';
$search='UNDELETED';
$searchfilterdoltrackid=0;
$searchfilternodoltrackid=0;
foreach($this->filters as $rule)
{
if (empty($rule['status'])) continue;
Expand All @@ -856,6 +858,8 @@ public function doCollectOneCollector()
if ($rule['type'] == 'body') $search.=($search?' ':'').'BODY "'.str_replace('"', '', $rule['rulevalue']).'"';
if ($rule['type'] == 'seen') $search.=($search?' ':'').'SEEN';
if ($rule['type'] == 'unseen') $search.=($search?' ':'').'UNSEEN';
if ($rule['type'] == 'withtrackingid') $searchfilterdoltrackid++;
if ($rule['type'] == 'withouttrackingid') $searchfilternodoltrackid++;
}

if (empty($targetdir)) // Use last date as filter if there is no targetdir defined.
Expand All @@ -882,6 +886,22 @@ public function doCollectOneCollector()
{
if ($nbemailprocessed > 100) break; // Do not process more than 100 email per launch

$header = imap_fetchheader($connection, $imapemail, 0);
$matches=array();
preg_match_all('/([^: ]+): (.+?(?:\r\n\s(?:.+?))*)\r\n/m', $header, $matches);
$headers = array_combine($matches[1], $matches[2]);
//var_dump($headers);

// If there is a filter on trackid
if ($searchfilterdoltrackid > 0)
{
if (empty($headers['X-Dolibarr-TRACKID'])) continue;
}
if ($searchfilternodoltrackid > 0)
{
if (! empty($headers['X-Dolibarr-TRACKID'])) continue;
}

$thirdpartystatic=new Societe($this->db);
$contactstatic=new Contact($this->db);
$projectstatic=new Project($this->db);
Expand All @@ -895,9 +915,8 @@ public function doCollectOneCollector()

$this->db->begin();

$overview = imap_fetch_overview($connection, $imapemail, 0);
$header = imap_fetchheader($connection, $imapemail, 0);
//$message = imap_body($connection, $imapemail, 0);
$overview = imap_fetch_overview($connection, $imapemail, 0);
$structure = imap_fetchstructure($connection, $imapemail, 0);
$partplain = $parthtml = -1;
// Loop to get part html and plain
Expand All @@ -907,11 +926,6 @@ public function doCollectOneCollector()
if ($part->subtype == 'PLAIN') $partplain=$key;
}

$matches=array();
preg_match_all('/([^: ]+): (.+?(?:\r\n\s(?:.+?))*)\r\n/m', $header, $matches);
$headers = array_combine($matches[1], $matches[2]);
//var_dump($headers);

$messagetext = imap_fetchbody($connection, $imapemail, ($parthtml >= 0 ? $parthtml : ($partplain >= 0 ? $partplain : 0)));

//var_dump($overview);
Expand Down Expand Up @@ -946,7 +960,7 @@ public function doCollectOneCollector()
// Analyze TrackId
$trackid = '';
$reg=array();
if (! empty($headers['X-Dolibarr-TrackId']) && preg_match('/:\s*([a-z]+)([0-9]+)$/', $headers['X-Dolibarr-TrackId'], $reg))
if (! empty($headers['X-Dolibarr-TRACKID']) && preg_match('/:\s*([a-z]+)([0-9]+)$/', $headers['X-Dolibarr-TRACKID'], $reg))
{
$trackid = $reg[0].$reg[1];

Expand Down
8 changes: 0 additions & 8 deletions htdocs/langs/ar_EG/admin.lang
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,18 @@ SessionId=هوية المتصل
SessionSaveHandler=معالج لتوفير دورات
SessionSavePath=موقع تخزين الدورة
PurgeSessions=انهاء الجلسات
NoSessionListWithThisHandler=.الخاص بك لا يسمح بسرد كافة الجلسات على التوالي PHP معالج حفظ الدورات و تكوينها في
LockNewSessions=اغلاق الدخول للمتصلين الجدد
ConfirmLockNewSessions=هل تريد منع اي اتصال جديد للبرنامج منك. فقط المستخدم <b>%s</b> سيكون قادر على الاتصال بعد ذلك
UnlockNewSessions=الغاء حظر الاتصال
YourSession=جلستك
Sessions=جلسات المستخدمين
WebUserGroup=مستخدم\\مجموعة خادم الويب
NoSessionFound=إن صلاحيات لغة بي اتش بي تمنعك من اظهار الجلسات الحالية. قد تكون الوجهة (<b>%s</b>)محمية
DBStoringCharset=ضبط الحروف في قاعدة البيانات لحفظ المعلومات
DBSortingCharset=ضبط الحروف في قاعدة البيانات لحفظ المعلومات
WarningModuleNotActive=إن الوحدة <b>%s</b> لابد أن تكون مفعلة
WarningOnlyPermissionOfActivatedModules=أن الصلاحيات المرتبطة بالوحدات المفعلة فقط تظهر هنا. تستطيع تفعيل وحدات أخرى من: الرئيسية ثم التنصيب ثم صفحة الوحدات
DolibarrSetup=تثبيت أو ترقية البرنامج
InternalUsers=مستخدمون داخليون
ExternalUsers=مستخدمون خارجيون
SetupArea=منطقة التنصيب
FormToTestFileUploadForm=نموذج تجربة رفع الملفات (تبعا للتنصيب)
AntiVirusCommandExample=Example for ClamWin: c:\\Progra~1\\ClamWin\\bin\\clamscan.exe<br>Example for ClamAv: /usr/bin/clamscan
AntiVirusParamExample=Example for ClamWin: --database="C:\\Program Files (x86)\\ClamWin\\lib"
ExampleOfDirectoriesForModelGen=Examples of syntax:<br>c:\\mydir<br>/home/mydir<br>DOL_DATA_ROOT/ecm/ecmdir
Module25Name=أمر شراء
Module25Desc=إدارة أوامر الشراء
Module700Name=تبرعات
Expand Down

0 comments on commit f327062

Please sign in to comment.