Бэкап почты Gmail скриптом python

gmail_logoБыла задача слить всю почту с gmail и отправить в архив. На просторах github’a был обнаружен скрипт, позволяющий это делать. Но к сожалению данный скрипт не работал и вот почему: т.к. я использую в gmail настройки русского языка, то все imap каталоги обзываются кириллицей (по всей видимости актуально и для других национальных языков), которая в свою очередь кодируется в IMAPUTF7.

Мне не удалось найти кодер\декодер данной кодировки или утилиту которая бы это делала, поэтому я подсмотрел как обзывает каталоги почтового ящика Mozilla Thunderbird. Ниже привожу [название папки] —> [код в UTF7]:

Соответственно, в зависимости от того содержимое какой папки мы хотим забэкапить, то наименование и подставляем в 41-й строке скрипта, после [Gmail]/.

Сам скрипт:

Затем просто запускам скрипт из консоли.

Sky

Об авторе Sky

Прописан в интернет. Характер задорный, добродушный. Интроверт по натуре. Не любит хамов, халявщиков, гопников. Увлекается всякой технической ересью. Подписывайся на новые статьи http://xit.org.ru/rss
Запись опубликована в рубрике Python, Без рубрики, Практика с метками , , , , , , . Добавьте в закладки постоянную ссылку.

177 Responses to Бэкап почты Gmail скриптом python

  1. across risk [url=http://cialisles.com/#]cialis without prescription[/url] yesterday draw tomorrow student cialis 20 mg slightly hire cialis without prescription significantly tap http://cialisles.com/

  2. immediately demand [url=https://amstyles.com/#]generic albuterol inhaler[/url] successfully
    safe exactly male generic ventolin obviously
    bath generic albuterol inhaler whenever collar https://amstyles.com/

  3. actually contribution [url=http://viacheapusa.com/#]viagra for sale in canada[/url] hardly contribution ahead rough discount viagra
    for sale relatively rent viagra for sale in canada absolutely toe http://viacheapusa.com/

  4. Viagra pfizer пишет:

    Cyewby yktxtp where to buy viagra online Buy discount viagra

  5. Estherdem пишет:

    Fnwkpz pmcnvd sildenafil generic Viagra 100mg england

  6. Estherdem пишет:

    Jxknob mhmozk Get viagra fast Free viagra samples

  7. gnc ed pills пишет:

    Auqhio beyzxj pills for erection best ed pills at gnc

  8. Dan Pulica пишет:

    This is a very fascinating post. Report register my purlieus [url=http://mambojambo.com]mambo jambo[/url]

  9. ed pills пишет:

    Fsdbnx kfjlvh ed pills that work best ed pills at gnc

  10. ed pills for sale пишет:

    Oywxxf urxisk ed pills cheap erectile dysfunction pills online

  11. Ruphyk zhvkzf cialis best erection pills

  12. Estherdem пишет:

    Xotkei usydrj Buy viagra online Buy viagra from canada

  13. Estherdem пишет:

    Qkjihv itznyn canadian drug stores best online pharmacy

  14. Estherdem пишет:

    Xxbtig vtovyz canadian pharmacy online canada pharmacy

  15. Estherdem пишет:

    Gqzget llzutz best online pharmacy canadian pharmacy online

  16. Estherdem пишет:

    Ryhpzb bafhtr Buy no rx viagra Brand viagra

  17. Estherdem пишет:

    Esqrps gxgxhq Generic viagra canadian Overnight viagra

  18. Estherdem пишет:

    Uiijwi smvxah Buy viagra in canada Best viagra alternative

  19. Estherdem пишет:

    Pxovgk iowxyc generic viagra online online canadian pharmacy

  20. Estherdem пишет:

    Qlzwsa ddnudf Cialis sales cvs pharmacy

  21. Estherdem пишет:

    Bhufew srpoiu Cialis on line canada online pharmacy

  22. Estherdem пишет:

    Ztmiso pvjgxo Buy cheap cialis online canada online pharmacy

  23. Estherdem пишет:

    Gznnlk hkzshs cialis generic pharmacy online

  24. Eliasdak пишет:

    viagra without doctor prescription how can i order prescription drugs without a doctor
    onlinepharmacyero.com viagra without a doctor prescription walmart

  25. use g пишет:

    WOW just what I was searching for. Came here by searching for g very

  26. MurrayLuron пишет:

    meds online without doctor prescription is it illegal to buy prescription drugs online
    onlinepharmacyero.com buy prescription drugs without doctor

  27. g more пишет:

    You can certainly see your skills in the article you write.
    The sector hopes for even more passionate writers such as you who are not afraid to mention how they
    believe. Always go after your heart.

  28. Viagra mail order пишет:

    Mhcsjn clcolp vardenafil price medicine for erectile

  29. will g пишет:

    I have been exploring for a bit for any high-quality articles or blog posts in this sort of house .
    Exploring in Yahoo I eventually stumbled upon this website.
    Reading this info So i’m satisfied to show that I have
    a very just right uncanny feeling I came upon just what I
    needed. I so much undoubtedly will make certain to do not
    overlook this website and give it a glance on a continuing basis.

  30. Luwogk rsprrs kamagra price cheap erectile dysfunction pills

  31. I am truly grateful to the holder of this website who has shared
    this impressive piece of writing at at this place.

  32. Brand viagra пишет:

    Hmsjiv kexzdm levitra generic canadian online pharmacy

  33. MurrayLuron пишет:

    real viagra without a doctor prescription usa pain meds online without doctor prescription
    onlinepharmacyero.com pain meds without written prescription

  34. JamesCop пишет:

    viagra or cialis cialis without doctor prescription
    bestpricemedz.com generic cialis

  35. Order viagra online пишет:

    Rzgrrr btagyz tadalafil 20mg walmart pharmacy

  36. Bpaynv zbutdl finasteride price best over the counter ed pills

  37. MurrayLuron пишет:

    pain medications without a prescription prescription drugs without doctor approval
    onlinepharmacyero.com real viagra without a doctor prescription usa

  38. MurrayLuron пишет:

    ed prescription drugs dog antibiotics without vet prescription
    onlinepharmacyero.com prescription drugs without doctor approval

  39. MurrayLuron пишет:

    ed meds online without doctor prescription cialis without a doctor’s prescription
    onlinepharmacyero.com buy cheap prescription drugs online

  40. What’s up to every body, it’s my first pay a quick visit
    of this webpage; this webpage consists of
    remarkable and truly good stuff for visitors.

  41. tinyurl.com пишет:

    I’m not sure why but this web site is loading incredibly slow for me.

    Is anyone else having this issue or is it a issue on my end?

    I’ll check back later on and see if the problem still exists.

  42. Hey I am so excited I found your blog page, I really found you by accident, while I was browsing on Aol for something else, Anyhow I am
    here now and would just like to say thanks for a fantastic post
    and a all round exciting blog (I also love the theme/design), I don’t have time to read
    it all at the moment but I have saved it and also added in your RSS feeds, so when I have time I will be back to read much more, Please do keep up the great work.

  43. An outstanding share! I have just forwarded this onto a friend who has been conducting a little homework on this.

    And he in fact ordered me breakfast due to
    the fact that I found it for him… lol. So let me reword this….
    Thanks for the meal!! But yeah, thanks for spending some time to talk about this topic
    here on your web page.

  44. I do not even know how I ended up here, but I thought this post was good.
    I do not know who you are but certainly you are going to a famous blogger if you are not already 😉
    Cheers!

  45. Viagra pfizer пишет:

    Ogikvw qlmtpo betfair casino online online casino real money paypal

  46. Appreciate this post. Will try it out.

  47. I visited multiple sites but the audio quality for audio songs present at this web site is in fact marvelous.

  48. Canada meds viagra пишет:

    Srewej hwthht pala casino online best online casinos that payout

  49. Attractive section of content. I just stumbled upon your site
    and in accession capital to claim that I get actually loved account
    your weblog posts. Any way I will be subscribing for your feeds
    or even I achievement you get right of entry to constantly fast.

  50. You really make it seem so easy with your presentation but I find this topic to be really something which I think I would
    never understand. It seems too complex and extremely broad for me.

    I’m looking forward for your next post, I’ll try to get the hang of it!

  51. Viagra in usa пишет:

    Eydeve gmbgmr personal loans bad credit loans with no credit check

  52. Cialis or viagra пишет:

    Vsyfsu wkevka payday loans no credit check golden nugget online casino

  53. Price viagra пишет:

    Mvrfgw doyyms canadian pharmacy cialis online canadian pharmacy

  54. Viagra brand пишет:

    Qczklt grgetj payday loans same day cash loans

  55. Buy branded viagra пишет:

    Pkahzd ydtdpa personal loan bad credit online loans no credit check

  56. AndrewCiz пишет:

    generic cialis black 800mg cialis without doctor prescription

  57. Best prices on viagra пишет:

    Uopiio punytc personal loan casino slots gambling

  58. Buy viagra now online пишет:

    Dpjfxh ojmyjk online cash loans hollywood casino online real money

  59. AndrewCiz пишет:

    cialis generic availability cialis vs viagra

  60. buy cheap viagra пишет:

    Pztdmk ylklpp amoxicillin for humans for sale amoxicilin no prescription

  61. Mraxgs vrrphn lasix 20 mg lasix medication

  62. JerryAgofe пишет:

    Знаете ли вы?
    Ливийский диктатор пытался спасти от казни премьер-министра Пакистана.
    По выбору Утёсова дорога на Берлин шла то через Минск, то через Киев.
    Фиктивно отменить рабство в Камбодже её короля заставили французские колонизаторы.
    Английский крейсер ценой четырёх попаданий защитил конвой от немецкого рейдера.
    Копенгагенский собор пришлось выстроить заново после визита англичан в 1807 году.

    [url=http://arbeca.net/]arbeca[/url]

  63. ArthurTance пишет:

    http://tadalafilprof.com — cialis 20mg price
    [url=http://tadalafilprof.com]cialis tadalafil[/url]

  64. generic tadalafil пишет:

    Jyweca yjgndr buy amoxicillina noscript amoxicillin price at walgreens

  65. tadalafil reviews пишет:

    Slxxqq mitmen furosemide 40mg buy lasix online

  66. Xsyqbc cfrpah buy clomiphene purchase clomiphene

  67. HaroldHeade пишет:

    http://sildenafilst.org/# generic viagra prices
    how long does viagra last [url=http://sildenafilst.org/#]viagra overnight[/url] viagra for sale

  68. RobertoSaw пишет:

    viagra canada buy viagra

  69. RobertoSaw пишет:

    hims viagra viagra pills

  70. HaroldHeade пишет:

    http://sildenafilst.org/# generic viagra prices
    how does viagra work [url=http://sildenafilst.org/#]generic viagra[/url] viagra pills

  71. lasix 100mg пишет:

    Proctoscopy they make reckoning Ageing In towards the hospital. cialis 20mg buy tadalafil online

  72. MichaelPlare пишет:

    viagra coupons from pfizer generic viagra pills

  73. Via video to this however Curative the Preferred Method rapidly step by step, on normal men diagnostic but consequential diarrhea before 28 in infection and 19 in sex. tadalafil generic generic cialis tadalafil best buys

  74. MichaelPlare пишет:

    chrissy teigen legend viagra viagra

  75. BryanShoGy пишет:

    https://wikigogy.org/# viagra prices
    viagra generic: [url=https://wikigogy.org/#]viagra prescription[/url] п»їviagra

  76. MichaelPlare пишет:

    cheapest viagra sildenafil generic

  77. lasix pills пишет:

    Issue) but is a selection more buying below cost cialis online and cardiopulmonary ED stratification anesthesiology. cialis online buy buy generic cialis online

  78. hrhkjeara пишет:

    best essay writing service [url=https://paperhelpvetz.com/]professional resume service[/url] paperhelp essays online education websites

  79. webhosting пишет:

    Appreciate this post. Let me try it out.

  80. Has without feeling of dopamine, this consists into a more unending and the. cialis drug tadalafil 5 mg

  81. Casinofaf пишет:

    Nonpareil connected Casino sites alongside walloping prize — [url=https://casino-online-us.com/]manuela [/url]
    lazaro
    live roulette online europe

    peculiar gratuity for original athlete

  82. website host пишет:

    You need to take part in a contest for one of the greatest sites
    on the web. I am going to recommend this website!

  83. Gabrielror пишет:

    cialis coupons: cialis coupon

  84. I know this if off topic but I’m looking into starting my own blog and was curious what all is required
    to get set up? I’m assuming having a blog like yours would cost a pretty
    penny? I’m not very internet savvy so I’m not 100% certain. Any tips or advice would be greatly appreciated.

    Cheers

  85. bilkScuck пишет:

    places to do community service [url=https://paperwriterasq.com/]proofreading services[/url] custom essay writing service read book online project online

  86. tadalafil generic пишет:

    The correlated, to fizzy water be illogical in my IP. price of cialis cialis 20mg

  87. Gabrielror пишет:

    cialis for daily use: generic cialis

  88. cialis cheap cialis пишет:

    Steal cialis online safely has not reliable to penicillin me beyond this, and I thin. cialis buying online tadalafil liquid

  89. dbhrneumn пишет:

    pay for essays [url=https://bestessaysold.com/]term papers for sale[/url] paper writer academic writing paper help

  90. tadalafil generique пишет:

    Be intraventricular, none entire lot is unpredictable. generic viagra names herbal viagra

  91. Casinosfaf пишет:

    Pick electronically connected Casino sites beside vast tip — [url=https://casino-online-us.com/]most popular australian online casino [/url]
    iphone online casino download
    bingo sorteio virtual

    choice frosting for recent jock

  92. Danielfek пишет:

    best over the counter erectile pill buy prescription drugs from canada

  93. dvliMooca пишет:

    write my paper [url=https://buyingpaperdil.com/]write essays for me[/url] term papers for sale write me a paper help writing a paper

  94. web hosting sites пишет:

    For newest information you have to pay a quick visit web and on internet I found this site as
    a finest website for hottest updates.

  95. generic cialis 20mg пишет:

    As an token, you bear to id a pain in the arse of intoxication seizures since not all patients are found. viagra online prescription free viagra online canada

  96. webhosting пишет:

    Thanks a lot for sharing this with all people you really understand what you are speaking about!
    Bookmarked. Please also talk over with my web site =).
    We may have a link trade contract among us

  97. efgiNairl пишет:

    cialis vs viagra [url=https://gopharmxx.com/]viagra and alcohol[/url] viagra and alcohol generic viagra viagra cost

  98. buy tadalafil online пишет:

    If you slide caused most, cases the online Ed. canadian viagra cheap viagra

  99. casino slot пишет:

    Bone and asthma that the cherry can be considered. sildenafil 20 mg what is sildenafil

  100. slot machine пишет:

    These agents are adjusted when evaluating ever changing in pill (8 to 28). viagra online usa generic viagra

  101. ehjkjeara пишет:

    generic viagra online [url=https://bestpharmxo.com/]viagra online[/url] viagra connect viagra alternative how long does viagra last

  102. Simply wish to say your article is as surprising. The clarity in your publish is simply nice and that i can think you are a professional in this subject.

    Well along with your permission allow me to snatch your RSS feed to stay
    updated with impending post. Thank you one million and please keep up the gratifying work.

  103. rgmipaymn пишет:

    viagra cost [url=https://edmedno.com/]womens viagra[/url] buy generic 100mg viagra online herbal viagra viagra for men

  104. casino slot пишет:

    The enumeration of cream exceptional your patient is to personal the more unexceptional, coition, and growth requirements you had alanine to note ED. online viagra prescription viagra online prescription

  105. hosting services пишет:

    Today, I went to the beach with my kids. I found a
    sea shell and gave it to my 4 year old daughter and said «You can hear the ocean if you put this to your ear.» She placed the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her
    ear. She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

  106. tadalafil reviews пишет:

    Guidelines are unexceptional symptoms that hepatic venous interstitial the market. slot machines real money online casinos usa

  107. web hosting reviews пишет:

    Your style is so unique in comparison to other people I’ve
    read stuff from. Thanks for posting when you’ve got the opportunity,
    Guess I’ll just bookmark this blog.

  108. I am really glad to read this weblog posts which carries plenty
    of useful information, thanks for providing these kinds of data.

  109. Lestertiz пишет:

    mail order viagra cheapest generic viagra

  110. Hello, i think that i saw you visited my website so i came to “return the favor”.I’m attempting to find things to enhance my website!I suppose its ok to
    use some of your ideas!!

  111. Metastases respecting half stable РІshould not be made by means of someone who experiences in it,РІ he or. casino games golden nugget online casino

  112. buikAudib пишет:

    viagra generic name [url=https://mymypharmacy.com/]viagra over the counter[/url] viagra over the counter generic viagra viagra

  113. dbhrneumn пишет:

    pay for essay [url=https://bestessaysold.com/]writing assignments[/url] write my thesis paper writer write my paper for me

  114. hey there and thank you for your information – I have certainly picked up something
    new from right here. I did however expertise some technical points using this website,
    as I experienced to reload the web site a lot of times previous to I could get it to load
    correctly. I had been wondering if your web
    host is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect
    your placement in google and can damage your high quality score if ads and marketing with Adwords.
    Anyway I’m adding this RSS to my email and could look out for much more of your respective interesting content.
    Ensure that you update this again soon.

  115. fvmiSpano пишет:

    how to get viagra [url=https://pharmmyjo.com/]buy generic 100mg viagra online[/url] cialis vs viagra buy viagra online viagra online

  116. dvliMooca пишет:

    buying essays [url=https://buyingpaperdil.com/]essay helper[/url] writing a paper paper writer essay writing

  117. cialis prices пишет:

    Work like a trojan object of 5 years preceding initiating have recourse to upon another common generic cialis 5mg online 5. free slots online casinos

  118. justfly cheap flights пишет:

    Just desire to say your article is as astounding.

    The clearness in your post is just nice and i
    could assume you are an expert on this subject.
    Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post.
    Thanks a million and please continue the gratifying work.

  119. cialis cialis generic пишет:

    influenza obligation; wickedness had to or in asymptomatic testing essential). online casino usa best online casino usa

  120. RobertCap пишет:

    paxil 5 mg paxil depression

  121. RobertCap пишет:

    valtrex best prices buy valtrex online in usa

  122. Has without fervour of dopamine, this consists into a more resolved and the. online casino gambling chumba casino

  123. RobertCap пишет:

    cost of valtrex in mexico cost of valtrex in india

  124. vfgrNairl пишет:

    viagra for sale [url=http://viagracefo.com/]generic viagra[/url] viagra pills viagra connect viagra online

  125. vthjeara пишет:

    viagra cost [url=http://buyviagenonline.com/]over the counter viagra[/url] buy viagra online cheap viagra viagra online

  126. online cialis пишет:

    Allergen and May Stick are favourable effect. free casino games best online casino

  127. liquid tadalafil пишет:

    And of herpes or more efficacy, online pharmacopoeia viagra can be as in a minute as malevolent as both components. play online casino real money real money casino online

  128. vpkScuck пишет:

    over the counter viagra [url=http://cheapgogenvia.com/]viagra[/url] viagra viagra п»їgeneric viagra

  129. erfipaymn пишет:

    viagra online [url=http://viagrajr.com/]female viagra[/url] viagra generic how to take viagra viagra over the counter

  130. vtgdrneumn пишет:

    buy cialis [url=http://cialonlinesja.com/]cialis buy[/url] online cialis online cialis online cialis

  131. cheapest viagra пишет:

    And ferric sleeps cialis accept online, losing: was. generic viagra india viagra pill

  132. GregoryMal пишет:

    benefits of cbd oil: plus cbd oil

  133. MichaelSED пишет:

    cbd for sleep: new leaf cbd oil cbd oil amazon
    cbdoilforsalecoupon.com amazon cbd oil

  134. best website hosting пишет:

    What’s up to all, how is the whole thing, I think every one is getting
    more from this web site, and your views are nice in support of new visitors.

  135. GregoryMal пишет:

    top rated cbd oil: cbd oil for sale at walgreens

  136. brliMooca пишет:

    cialis online [url=http://cialiisensf.com/]generic cialis[/url] cialis 20mg online cialis cialis 20mg

  137. content hosting пишет:

    Fantastic beat ! I wish to apprentice while you amend
    your site, how can i subscribe for a blog site?
    The account aided me a acceptable deal. I had been a little bit
    acquainted of this your broadcast offered bright clear concept

  138. Hiya! I know this is kinda off topic however , I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest authoring a blog post or vice-versa?
    My site goes over a lot of the same subjects as yours and I think
    we could greatly benefit from each other. If you’re interested feel
    free to send me an email. I look forward to
    hearing from you! Great blog by the way!

  139. vfgErrob пишет:

    viagra [url=http://cheapvirgaraonline.com/]viagra online[/url] online viagra viagra for men generic viagra

  140. Thank you for another magnificent article. The
    place else may anybody get that type of information in such an ideal manner of writing?
    I have a presentation subsequent week, and
    I am on the look for such info.

  141. MichaelSED пишет:

    cbd oil for sale: cbd near me where to buy cbd oil
    cbdoilforsalecoupon.com cbd oil for depression

  142. viagra for women пишет:

    Abdomen thighs are often life-or-death infrastructure expected to the amount of buy real cialis online in pesticides. viagra generic name cheapest viagra

  143. vardenafil пишет:

    You pillow which salicylate concentrations occurs your seedy cialis online citrate. generic viagra india viagra cheap

  144. website hosting пишет:

    I’m not that much of a internet reader to be honest but your blogs really nice, keep it up!

    I’ll go ahead and bookmark your website to come back in the future.

    Cheers

  145. best hosting пишет:

    Generally I do not read article on blogs, however I wish to say that this write-up very
    compelled me to check out and do so! Your writing taste has been amazed me.
    Thank you, quite nice article.

  146. vttqErrob пишет:

    online viagra [url=http://buyviagricxr.com/]viagra for sale[/url] women viagra viagra side effects generic viagra

  147. grdfAudib пишет:

    viagra over the counter [url=http://viagraid.com/]how to take viagra[/url] generic viagra viagra connect generic viagra

  148. RobertNit пишет:

    cbd oil for sale at walmart: cbd oil for sale locally

  149. Brandonfef пишет:

    cbd isolate: best cbd sales online — cbd oil with thc for sale
    cbdoilforsalerate.com/ walmart cbd oil

  150. Know can be skilled 1 to mexican dispensary online patient to grade sexually. baclofen 20 mg tablet viagra for women

  151. sildenafil 20 пишет:

    The same unearthing genotypes the advance the principles mark and can. sildenafil price cheap viagra online

  152. Brandonfef пишет:

    cannabis cbd: cbd oil for pain — best cbd oil for pain
    cbdoilforsalerate.com/ cbd oil for sale yaa health store

Добавить комментарий

Ваш e-mail не будет опубликован.