kambani yeSwitzerland Proton AG, iyo inovandudza iyo Proton Mail uye Proton VPN masevhisi, nguva pfupi yadarika yakaunza raibhurari yeGluon IMAP, rakagadzirwa pkugadzira yako IMAP maseva. Raibhurari iyi inoshamisa sezvo inotsigira IMAP4rev1 (RFC-3501) protocol uye inosanganisirwa mushanduro itsva yeProton Bridge service.
Panguva yekusimudzira, chinotariswa chiri pakuita kurongeka, kugadzikana, kuvimbika, nyore kushandisa kune vanogadzira, uye kuita kwepamusoro.
Nezve Gluon IMAP
Izvo zvinotaurwa kuti chikonzero kugadzira kutsva kweIMAP protocol ndicho chido chemhinduro yakavimbika uye yepamusoro-soro iyo inogona kushanda nemabhokisi makuru etsamba. Zvinoenderana nevagadziri veProton Mail, aripo akavhurika sosi IMAP maraibhurari akawana matambudziko ekugadzirisa kana haana kukwira.
Nhanho yedu yekutanga pakunyora Gluon yaive yekugadzira IMAP parser kubva kune syntax yakapihwa muRFC3501 (hwindo nyowani). Isu takashandisa ANTLR4 (hwindo nyowani), yakakurumbira parser muvaki, kugadzira parser inogona kusiyanisa IMAP mirairo nemhinduro zvinoenderana nekwakatemwa. Izvi zvakatitendera kuti titarise pakushandisa iyo logic yeIMAP protocol pachinzvimbo chekuisa nekusimbisa mapindiro.
Gluon inoshandawo zvakanaka nevatengi vakawanda. panguva imwe chete, semuenzaniso, kana mushandisi ari kuona tsamba kuburikidza newebhu interface uye achishandisa yakaparadzana mail mutengi panguva imwe chete.
Kuomarara kwekuronga basa rakadai kunokonzerwa nekuti vatengi veIMAP vanowanzo shandisa nhamba dzekutevedzana dzemeseji mubhokisi retsamba kuona mameseji, asi kana mutengi mumwe akadzima meseji, nhamba dzekutevedzana dzinochinja uye mumwe mutengi anofanira kutora shanduko iyi kuita. account.
Mumamiriro ezvinhu akadaro, sevha inotumira chiziviso chekuchinja kune vatengi, asi isati yabvuma chiziviso, sevha inofanira kuva nechokwadi chokuti nhamba dzemashoko mumirairo inotumirwa dzinodudzirwa zvakanaka.
Imeyili inofanirwa kuve yakavimbika, asi inodawo kunge ichiita zvemhando yepamusoro, kunyanya sezvo saizi yeyakajairika inbox yakakura zvakanyanya mumakore gumi apfuura. Mazhinji akavhurika sosi IMAP mashandisirwo anowanzo kukwiridzira imwe uye kwete imwe, zvichitungamira kune akakura mabhugi kana tradeoffs.
Kugadzirisa dambudziko iri, zvakare kuronga kugadziridzwa kweakati wandei anoenderana kubatana kubva kune mutengi, Gluon inoshandisa snapshot mechanism. Mhedziso yemuchina uyu ndeyekuti Gluon inogovera bhokisi retsamba rayo snapshot kumutengi wega wega.
Imwe neimwe snapshot inoratidza maonero akasiyana ebhokisi retsamba rakabatana nemutengi anochengetedza mamiriro ayo uye anovimbisa kuti nhamba dzekutevedzana dzinoramba dzakafanana, zvisinei nezviito zvinotorwa nevamwe vatengi.
Gluon inochengeta mabhokisi maviri etsamba anoti: kuenderera uye chikamu. Kuramba kuripo kunoratidza nzvimbo chaiyo yemameseji mubhokisi retsamba rakasarudzwa, ukuwo mamiriro echikamu anoratidza maonero emutengi wega wega wezviri mukati mebhokisi retsamba.
Kuwiriranisa chimiro pachikamu pakati pevatengi vakabatana, Gluon inoshandisa hurongwa hwe "vanopindura". Idzi ndidzo mhando dzinobatanidza shanduko yemamiriro uye, kana yaitwa, inoshandurwa kuita IMAP mhinduro.
Kana mutengi aita chiito (sekumaka meseji sekuverengwa) iyo inogona kushandura mamiriro emumwe mutengi, iyo backend inogadzira anopindura chiitiko ichi uye inosundira kune yakakanganisika nyika. Iyo yakakanganisika nyika inoramba isina kuchinjika kudzamara anopindura aurayiwa, panguva iyo inogadziridzwa uye inoenderana IMAP mhinduro inotumirwa kumutengi.
Iyi nzira inobvumira Gluon kunyatso gadzirisa nyika pachikamu chimwe chete uku ichiva nechokwadi chekuenderana kune vakawanda vatengi.
Pakupedzisira, inotaurwa kuti nyika IMAP inochengetwa muDBMS inotsigira SQL. Kuedzwa kweBeta yeProton Mail Bridge service, yakashandurirwa kuGluon, yakaratidza kuwedzera kukuru (1000%) mukumhanya kwekushanda neIMAP. Iyo raibhurari kodhi yakanyorwa muGo uye inogoverwa pasi peMIT rezenisi.
Kana iwe uchida kuziva zvakawanda nezvazvo, unogona kubvunza ruzivo Mune inotevera chinongedzo.