diff --git a/autoResponder.py b/autoResponder.py new file mode 100644 index 0000000..c572dae --- /dev/null +++ b/autoResponder.py @@ -0,0 +1,15 @@ +import codecs +from mail_util import checkFor_unkownContacts, sendEmails + +def getResponseText(): + with open('responses/bookingResponse.txt', 'r') as file: + data = file.read() + return data + + +contacts = checkFor_unkownContacts() +testContacts = [] +testContacts.append('e.neug@icloud.com') +responseText = getResponseText() +print(responseText) +sendEmails(responseText, testContacts) \ No newline at end of file diff --git a/chatbot.py b/chatbot.py index 7162a41..ce381e2 100644 --- a/chatbot.py +++ b/chatbot.py @@ -1,3 +1,5 @@ import subprocess -subprocess.call(['sh','./sender.sh', 'Aus Python']) \ No newline at end of file +def sendMessage(message): + subprocess.call(['sh','./sender.sh', message]) + diff --git a/config.py b/config.py new file mode 100644 index 0000000..23e7396 --- /dev/null +++ b/config.py @@ -0,0 +1,20 @@ +import os +from dotenv import load_dotenv +from datetime import date, timedelta + +load_dotenv() + +pw = os.getenv('PASSWORD') +server ="w00e1ce2.kasserver.com" +username ="booking@sommerschein.de" + +today = date.today() +yesterday = today - timedelta(days=1) +dateStringToday = today.strftime("%d-%b-%Y") +dateStringYesterday = yesterday.strftime("%d-%b-%Y") + +searchUnawnsered = "UNANSWERED SENTSINCE 01-Sep-2022" +searchAll = 'ALL' +searchSentsince = 'SENTSINCE 01-Sep-2022' +searchToday = 'SENTON ' + dateStringToday +searchYesterday = 'SENTON ' + dateStringYesterday \ No newline at end of file diff --git a/contacts.json b/contacts.json new file mode 100644 index 0000000..684808c --- /dev/null +++ b/contacts.json @@ -0,0 +1,700 @@ +[ + "magneticmountainband@gmail.com", + "patrick@headlineconcerts.de", + "germaine.jil@live.de", + "info@sommerschein.de", + "dave@furore-band.de", + "notification@turbobit.net", + "sf@psychophoniac.de", + "betamenschmusik@gmail.com", + "info@backtrip.de", + "bassmanner40822@gmail.com", + "kontakt@bestb4after.de", + "calves@elf-artists.de", + "robin.garrido92@googlemail.com", + "kevin-radke@gmx.de", + "ilkavasquez@hotmail.com", + "jayfizymusic@gmail.com", + "booking@modernpost.de", + "haptic_invaders@gmx.net", + "sircollapse@yahoo.com", + "info@reinventingopera.com", + "booking@stundenull.net", + "ilber@qunstwerk.com", + "lucas.pentzek@gmail.com", + "info@postmodern-orchestra.de", + "booking@ska-punk.net", + "lars@3dog-entertainment.com", + "echolons.official@gmail.com", + "info@sommerschein.de", + "marius@adieu-naomi.com", + "walking.on.rivers@gmail.com", + "contact@marakeshmusic.com", + "booking@nordlichtbooking.de", + "info@paranoid-android.eu", + "bschick@hofheim.de", + "bschley@hofheim.de", + "heidi.werkmann@t-online.de", + "fabian.wegmann@web.de", + "ben.10santana@gmail.com", + "booking@voodoovegas.de", + "booking@nospammusic.com", + "ubershark@gmx.de", + "dierks@undercover.de", + "franz.fesel@googlemail.com", + "aaron.rosenfelder@gmx.de", + "allmyenemies@gmx.net", + "quantum.veritatis@gmx.de", + "florianheib@gmx.de", + "bahira.music@gmail.com", + "callmeonfriday@gmail.com", + "backdoorslam@gmx.de", + "luke@merchandevents.de", + "backdoorslam@gmx.de", + "lucas@schobert.net", + "richard.schaeffer@gmx.de", + "sibylle.hatzi@web.de", + "peter@fitches.de", + "info@sommerschein.de", + "info@sommerschein.de", + "marvin.goessel@googlemail.com", + "info@sommerschein.de", + "info@clement-stiftung.de", + "gazzari@gazzari.de", + "kontakt@openparachine.com", + "danny-klose@gmx.net", + "lui@tzunami-music.com", + "jasmin.stocker@gmx.de", + "booking@funkundseele.de", + "contact@notenoughspace.com", + "sebastian@carelessworld.com", + "booking@eatthebar.de", + "management@joeyvoodoo.de", + "booking@pzzl.de", + "max_jost@gmx.de", + "booking@revolutioneve.de", + "paul@jackalope-anm.com", + "punch-hole-cloud@web.de", + "sebastian@klein-ideas.com", + "info@groundswimmer.de", + "tunecircus@gmx.net", + "robin.garrido92@googlemail.com", + "alex@akewstag.com", + "booking@thisisvisdom.com", + "info@voodookiss.de", + "booking.bonsai@gmail.com", + "loschmarvin@gmail.com", + "margrafmail@gmx.de", + "ohlala.musik@t-online.de", + "cateaters.official@gmail.com", + "lars@3dog-entertainment.com", + "skullboogey@web.de", + "info@herk-roepe.de", + "alex.dezember@gmail.com", + "mail@rooftop-getaway.de", + "mail@funkundseele.de", + "flo@joeyvoodoo.de", + "helge@insert-coin.info", + "booking@libellmusik.de", + "infectedworld12@gmail.com", + "beatfrog@gmx.de", + "intern@sommerschein.de", + "patrick-woehrle@gmx.de", + "booking@ramin-ton.net", + "a.poersch@apevent.de", + "bender-jens@gmx.de", + "katrin@chrisandtaylor.de", + "hi@jylda.com", + "joshua@jackalope-anm.com", + "buskies@ize-music.de", + "saxareller@yandex.com", + "simon@teamhochzehn.de", + "booking@thelegionghost.com", + "booking@boxofx.de", + "max_jost@gmx.de", + "info@kojband.com", + "booking@dermuenzer.com", + "moosavi_behrooz@yahoo.com", + "juergen@stereodrama.de", + "roland.weirich@arcor.de", + "booking@we4rosa.com", + "booking@xn--schlsselkind-band-52b.de", + "kenneth.young@s-f.com", + "booking@mindblowingofficial.de", + "booking@summerymind.de", + "contact@olivereves.com", + "friedhelm@pojpoj.com", + "booking@drivers-inc.com", + "f.loepthien@gmail.com", + "stygium@gmx.de", + "faedde@faeddedeluxe.de", + "volker@desertcrow.de", + "johannes@junkyard-rebellion.de", + "noreply@sommerschein.de", + "bibla7@aol.com", + "fabianweygandt@me.com", + "leitung@die-musikschule-hofheim.de", + "philipp_wetzel@yahoo.com", + "booking@set-alight.de", + "info@ianlate.com", + "pese@selectiveartists.com", + "band.kiktron@t-online.de", + "booking@punktantonio.de", + "booking@dirtypurpleturtle.ch", + "tidalwave.berlin@gmail.com", + "kat.entertainment.agency@gmail.com", + "julia-weiss@gmx.de", + "no-reply@dropbox.com", + "info@karakter-live.com", + "booking@tim-ahmed.de", + "info@dw-bookings.com", + "booking@reload-rulez.com", + "info@thesecluded.com", + "joshua@jackalope-anm.com", + "fluchtplan@gmx.net", + "helmrich-kai@gmx.de", + "theweightthewarmth@gmail.com", + "fiyahnation.band@zoho.com", + "booking@driven-music.de", + "booking@grafschlotz.com", + "paul@handshake-booking.com", + "limelightfire@googlemail.com", + "contact@un-even.de", + "alan@yetnotnow.de", + "kambeckova@gmx.de", + "kontakt@totalbanal.com", + "booking@sommerschein.de", + "sbleistein@hofheim.de", + "sbleistein@hofheim.de", + "janahuhn2@gmail.com", + "probst@boese.biz", + "mailer-daemon@dd30318.kasserver.com ", + "booking@pzzl.de", + "tontechnik@markus-engel.info", + "madhousematadors@gmail.com", + "matthias.ewald@gmx.de", + "karsten.lengwenus@klscs.de", + "booking@skiptrack.de", + "greyfriesmusic@gmail.com", + "hello@shawnband.com", + "lucasklemm@gmx.de", + "thilfrich@yahoo.de", + "noerdertuitje@gmail.com", + "timo.heuser@online.de", + "timcammerzell@yahoo.de", + "goreminister@gmx.net", + "felix.mattick@kit.edu", + "simon@teamhochzehn.de", + "show@ar2com.de", + "musikpromotion@auhofer.de", + "gleeman.crew@hotmail.com", + "marco@cloudberry.de", + "tobi-enzl@web.de", + "booking@crimsonoak.de", + "info@banjoory.de", + "thelo5ives@gmail.com", + "thorsten@veion.de", + "antje.kunze@t-online.de", + "ben@heavyonwire.de", + "a.poersch@apevent.de", + "till@solarpenguin.de", + "booking@electriccoast.de", + "lastjeton@gmx.de", + "chris.wilhelm.booking@googlemail.com", + "doppelton@gmx.net", + "daniel@soe-musik.de", + "voidofanimus@gmail.com", + "booking@thekenpoet.de", + "info@jensbreidenstein.de", + "info@toonamusic.com", + "nils_eggers@yahoo.de", + "deruwepfeiffer@googlemail.com", + "info@maryred.de", + "info@sommerschein.de", + "info@blackstonestudios.de", + "booking@stereodynamite.de", + "johnxgrey@gmx.de", + "invitations@linkedin.com", + "sircollapse@koma-booking.de", + "infectedworld12@gmail.com", + "frauruthofficial@gmail.com", + "lili@diediebe.ch", + "friedhelm@pojpoj.com", + "koerpa@nexgo.de", + "info@oligarchymusic.com", + "booking@mutant-invasion.de", + "flo.tavares@gmx.de", + "fuenftermaerzmusik@gmail.com", + "info@voodookiss.de", + "passedmeby@web.de", + "booking@kompass-band.de", + "thegarciassfb@gmail.com", + "booking@first-of-all.de", + "mail@mental-reservation.de", + "booking@wearerivers.de", + "info@electriclove.de", + "service@agenturrahn.de", + "noreply@sommerschein.de", + "igorhubik@hotmail.com", + "geissler.nele@gmx.de", + "carolin@extratours-konzertbuero.de", + "bandlioba@mail.de", + "info@bad-butler.de", + "nazcaspacefox@gmx.de", + "booking@themorningpints.com", + "mail@boohoomusic.com", + "booking@mindblowingofficial.de", + "booking@waste-rock.de", + "mountshastaband@googlemail.com", + "booking@alaskapirate.de", + "booking@animal-bizarre.de", + "sara@artificialfamily.de", + "seltsam@seltsam-music.de", + "tobias.wagner.fb@t-online.de", + "band-kontakt@jazzkeller-hofheim.de", + "timo.roeder@t-online.de", + "bernd@virusmusik.de", + "mario@modeste.de", + "sf@psychophoniac.de", + "booking@juicyroadkill.com", + "grandsheeps@gmail.com", + "johannes@streetfighter.berlin", + "jonas.nem@freenet.de", + "booking@paramagnet.de", + "kazo.music.booking@gmail.com", + "leylatrebbien@hotmail.de", + "booking@popup-records.de", + "johannes.fettes@yahoo.de", + "wellandaliveband@gmail.com", + "gmsguangzhou@21cn.com", + "dennis@selectiveartists.com", + "marcel@samarah.de", + "booking@paramagnet.de", + "georg@exsultim.de", + "booking@salud-rock.de", + "luciano@handshake-booking.com", + "brockmannmoritz97@gmail.com", + "friedhelm@pojpoj.com", + "bookingsdw@gmail.com", + "office@handshake-booking.com", + "f.maier@hellfire-concerts.de", + "lili@diediebe.ch", + "management@joeyvoodoo.de", + "tigeryouth@gmx.de", + "booking.earthgaze@gmail.com", + "bustartbooking@gmx.de", + "max_jost@gmx.de", + "holger@seltsam-music.de", + "holger@seltsam-music.de", + "offbeat@revolte-tanzbein.de", + "buch.die@papierflieger-ban.de", + "info@banjoory.de", + "tobias.wagner.fb@t-online.de", + "minds120@gmail.com", + "lukas.lassmann1997@gmail.com", + "noreply@wetransfer.com", + "post@agentur-streckenbach.de", + "seltsam@seltsam-music.de", + "loveseesnocolor@gmx.net", + "marecia.s.willoughby@gmail.com", + "gcscale@gmail.com", + "info@hyteandhaywire.com", + "nessiehowe@web.de", + "uwecharisse@icloud.com", + "veytstanz-booking@t-online.de", + "jung.edv@arcor.de", + "noreply@sommerschein.de", + "superuse2017@gmail.com", + "maximilian-pfeffer94@web.de", + "theblacklane@gmx.de", + "info@set-alight.de", + "touchofmusic@gmx.de", + "paul@homegrown-music.de", + "info@waitforjune.de", + "robert@noisegroupie.com", + "newsletter@bellaconcerts.com", + "finn@turbine-promotion.com", + "arsen@wlc-roxx.de", + "music@lutopiaorchestra.com", + "booking@bouncing-betty.de", + "marek.maniac@email.cz", + "lars@3dog-entertainment.com", + "jmp70@t-online.de", + "noisegateschoch@aol.com", + "booking@driven-music.de", + "booking@saendaepause.de", + "laura-jung92@web.de", + "booking@colbinger.com", + "info@eskalation-band.de", + "aandgmusicproduction@gmail.com", + "noreply@sommerschein.de", + "booking@analogue-birds.com", + "noreply@sommerschein.de", + "too-late@gmx.net", + "info@die-neuhofer-dorfkapelle.de", + "gofarmgmt@gmail.com", + "info@unduster.de", + "egotripmusik@googlemail.com", + "noreply@sommerschein.de", + "kathrina-wd@web.de", + "katrin@chrisandtaylor.de", + "soulonmusic67@googlemail.com", + "p.lima@bluecatmusic.de", + "jannek_ramm@gmx.de", + "info@stefanottomachtmusik.de", + "dope@damionlee.bayern", + "sven.boege@web.de", + "weisrock.b@gmx.de", + "info@ize-music.de", + "p.lipp@bougalou.com", + "noreply@sommerschein.de", + "highfidelitysongs@gmail.com", + "show@ar2com.de", + "sebastian_11@hotmail.de", + "mariechain@wlc-roxx.de", + "minuspol@wlc-roxx.de", + "kaja-music@web.de", + "svenetto@googlemail.com", + "m.rossmann@kaiwagner.com", + "label@hicktown-records.de", + "seltsam@seltsam-music.de", + "booking@blaucrowdsurfer.de", + "booking@cforcaroline.de", + "foleynrw@outlook.com", + "tobikrissel@gmail.com", + "booking@allthatweare.de", + "booking@onestepfurther.de", + "jannic@flowlabmedien.de", + "pedro@vira-lata-agency.net", + "jan@ani-booking.com", + "kontakt@remedy-band.com", + "booking@stereodynamite.de", + "michael@popup-records.de", + "info@dreimannrock.de", + "sandra@malinski.com.br", + "booking@nullachtfuffzehn.berlin", + "d.kirchner@rockimgruenen.de", + "noconaheat@gmx.de", + "info@tonart-promotions.com", + "kap-club@mail.ru", + "info@kojinmari-agency.com", + "noreply@sommerschein.de", + "jetevil@gmx.de", + "noreply@sommerschein.de", + "noreply@sommerschein.de", + "booking@gruphuub.de", + "noreply@sommerschein.de", + "nurul.f@nusatrip.com", + "stefan@whosmary.de", + "booking@dailyjourney.de", + "zwischenmenschband@gmail.com", + "detlef.fischbuch@gmx.de", + "mreasy-band@gmx.de", + "info@kore-music.com", + "info@eskalation-band.de", + "joe@freezeebee.de", + "office@haasgmbh.at", + "mona@all-noir.com", + "label@hicktown-records.de", + "delicious@headlineconcerts.de", + "booking@helgaweiss.de", + "sharon@spezialrabatt.biz", + "kontakt@gema.de", + "lena@handshake-booking.com", + "info@street-heppenheim.de", + "booking@summerymind.de", + "hbilling@schwarzworz.de", + "lieberherrmeier@live.de", + "booking@4zkb.de", + "c.geppert@tonart-promotions.com", + "bego@noizebox.de", + "booking@kunstfehler-musik.de", + "lara@soundofliberation.com", + "mountshastaband@googlemail.com", + "queenmedusa@gmx.de", + "kaoma@lkmanagementgroup.com", + "patrick@impetus.band", + "harry@sixteentimes.com", + "kaleu@circus-rhapsody.de", + "office@solarpenguin.de", + "info@street-heppenheim.de", + "bidi@tobiasbiedert.de", + "booking@horny-lulu.de", + "five.fingers.crossed@gmail.com", + "info@banjoory.de", + "immi.elzer@live.de", + "booking@gazebotree.de", + "buchen@kathrina-spielt.de", + "booking@boiler-band.de", + "vladracul_3@hotmail.com", + "beate@evendon.de", + "autumntree@gmx.de", + "smed@gmx.de", + "booking@thursdayinmarch.de", + "booking@steven-cole.de", + "contact@liottaseoul.com", + "a-side@gmx.net", + "emperorslairband@gmail.com", + "info@theblacklane.com", + "jakweber@gmx.de", + "benjamins@gmx.net", + "info@cforcaroline.de", + "show@ar2com.de", + "dominik@rolamusic.com", + "info@cleklingt.net", + "thievesinlove@gmail.com", + "meike@powderforpigeons.com", + "laxdiamondofficial@gmail.com", + "booking@skiptrack.de", + "info@parade-official.com", + "info@atlasbird.com", + "booking@k-ste.de", + "booking@roadstring-army.de", + "janis.kraemer@posteo.de", + "jan@colorwaveofficial.com", + "booking@vantomband.de", + "booking@steven-cole.de", + "webmaster@sommerschein.de", + "insareichwein@gmail.com", + "info@kruppa-music.de", + "atriobooking@gmail.com", + "booking@apaath.de", + "kontakt@endeffekt.info", + "cashcropsmusic@googlemail.com", + "nschulze@hofheim.de", + "wesley@belgianquoband.be", + "contact@corcochonk-records.com", + "entex@wlc-roxx.de", + "tony@solarpenguin.de", + "roadragemusic@gmx.de", + "tony@solarpenguin.de", + "svynx@mail.de", + "ciao.marco@gmx.de", + "peteramrum.11@gmail.com", + "tony@solarpenguin.de", + "hnieraad@gmx.de", + "info@nomansvalley.com", + "andy@cyrcus.com", + "brigitte.gross@b-musik-management.de", + "monzanoise@gmail.com", + "torsten@zwingenberger.berlin", + "los.andros@gmx.de", + "arsen@wlc-roxx.de", + "booking@saendaepause.de", + "dan.cmonartaxbooking@gmail.com", + "kluberika@alphafrau.de", + "strictly.mint@chinchat.de", + "peter.harasim@cbfranken.eu", + "4outoforder@gmail.com", + "overlaps.music@gmail.com", + "drummerk@gmx.de", + "svynx@mail.de", + "marcus.ruessel@gigmit.com", + "info@blackicetribute.com", + "dralban@lkmanagementgroup.com", + "booking@sommerschein.de", + "booking@sommerschein.de", + "booking@sommerschein.de", + "booking@solarpenguin.de", + "apewards@gmail.com", + "info@standupstacy.com", + "booking@musikmaschine.net", + "xr66band@gmail.com", + "info@inyourhonor.be", + "mlwr.music@gmail.com", + "arne.grasmueck@everever.de", + "angelrodriguez@web.de", + "roseforhelena@gmx.de", + "voidofanimus@gmail.com", + "dave-sc@gmx.de", + "hendrik@190a.de", + "gibsonbrothers@lkmanagementgroup.com", + "noreply@sommerschein.de", + "johannes@hoemepage.com", + "paul@homegrown-music.de", + "tony@solarpenguin.de", + "noreply@sommerschein.de", + "booking@morningmode.de", + "darius@flixagency.com", + "five.fingers.crossed@gmail.com", + "band@annaandariot.de", + "pmarx@musikistweltsprache.de", + "booking@modernpost.de", + "birger.niessen@gmx.de", + "harry@sixteentimes.com", + "peter@allesvoned.com", + "j.hauser@wizpro.com", + "guenther@solarpenguin.de", + "booking@the-governors.com", + "booking@blaucrowdsurfer.de", + "roland.weirich@arcor.de", + "mail@kultnet.de", + "greg@swampbooking.de", + "6263819209156531528723@angelosnypizza.com", + "lukeimp@optusnet.com.au", + "auf@firmenlift.ch", + "booking@k-ste.de", + "edu.gorca@gmail.com", + "janis.kraemer@posteo.de", + "maik@dragon-productions.com", + "info@frankleyeverlong.com", + "tony@solarpenguin.de", + "office@solarpenguin.de", + "jan@cantona-entertainment.de", + "vvlva@gmx.de", + "hannah@das-bluehende-leben.de", + "info@jackalope-anm.com", + "lenny.hofheim@gmail.com", + "pelle@black-harbour.com", + "info@codaofficial.com", + "wymeband@gmail.com", + "wohlfarth@undercover.de", + "marie@solarpenguin.de", + "sabine@koks-music.de", + "ancakmd@bizarty.de", + "iwtehyt@bizarty.de", + "iyyubmx@bizarty.de", + "oqdupkv@mazaret.at", + "mark@eurosciconnetworks.com", + "rizasart@calidavertrieb.com", + "giorgio@swampbooking.com", + "ricky@swampbooking.com", + "wade@swampbooking.com", + "vitalsigns.da@gmail.com", + "presse@undercover.de", + "weisrock.b@gmx.de", + "greg@swampbooking.com", + "diego@swampbooking.com", + "awnoqcd@willins.de", + "mary@turbo-booking.de", + "gabriel@gigmit.com", + "gabriel@gigmit.com", + "ixpazpv@baransely.network", + "post@agentur-streckenbach.de", + "upfotcp@axesrtym.de", + "axrifpm@olabizer.de", + "ipjyswf@mazaret.at", + "aktif@gonderix.net", + "a.stein@schnelle-uebersetzungen.com", + "empakmx@dimaster.de", + "event-manager-updates@allevents.in", + "anna@gigmit.com", + "lena@handshake-booking.com", + "support@triasoft.co.uk", + "iwsydyz@bizarios.at", + "opnakvh@xindesom.ch", + "karin.haberzettl@web.de", + "electric.riots.booking@gmail.com", + "federico@swampbooking.com", + "asdadsl@xind.es", + "ubrypjn@xind.es", + "dominik@rolamusic.com", + "oppeyzf@bizarios.at", + "alnapwc@bizarios.at", + "jason999@ms4.hinet.net", + "dan.cmonartaxbooking@gmail.com", + "wesley@belgianquoband.be", + "gonza@rolamusic.com", + "yyyuzzr@maxistoren.biz", + "event-industry-updates@allevents.in", + "iwximld@maxx-hotels.eu", + "adpekhb@maxx-hotels.eu", + "evbefmt@gerilonse-hopeu.com.de", + "itcolsc@arty-hotel.uk", + "yfxulrt@maxi-store-n.ink", + "eprojcx@maxx-hotels.eu", + "sajozef@stcable.net", + "ulwabhw@maxx-hotels.eu", + "essaykb@maxx-hotels.eu", + "ekpejmm@maxx-hotels.eu", + "ohsoryl@maxx-hotels.eu", + "ecqunmp@bazionerts.rodeo", + "orahernanadezrh9k@outlook.com", + "cristicartegena7j3j@outlook.com", + "schacke@undercover.de", + "gabriel@gigmit.com", + "jeanmariehibert1994@hotmail.com", + "bradenlitka3a30@hotmail.com", + "mh@handshake-booking.com", + "cater93anemone@outlook.com", + "mondaydriggers1996@outlook.com", + "lanzafamejannette1999@hotmail.com", + "bwtourbooking@gmail.com", + "booking@nordir.com", + "uxpisss@gerilonse-hopeu.com.se", + "ucryypf@mc-hotel.art", + "afjulxy@gerilonse-hopeu.com.se", + "paul@handshake-booking.com", + "support@webexpress.se", + "mail@uwin.co.il", + "iswaxly@paseece.online", + "presse@undercover.de", + "alan@yetnotnow.de", + "booking@vonflocken.de", + "yqxiryd@faresiones.mordovia.ru", + "info@sommerschein.de", + "scheiba.band@gmail.com", + "jodorsheimer@web.de", + "c.nad@gmx.de", + "booking@analogue-birds.com", + "noreply@flyeralarm.com", + "noreply@flyeralarm.com", + "rechnungen@flyeralarm.de", + "newsletter@michow-concerts.com", + "info@mc.flyeralarm.com", + "vogel.manu@gmail.com", + "redveil@gmx.de", + "booking@birdsview.eu", + "theblacklane@gmx.de", + "dliabooking@gmail.com", + "fritz_schaal@gmx.de", + "timo-malcom@t-online.de", + "tgtt@gmx.net", + "info@julikwadwo.com", + "noreply@mc.flyeralarm.com", + "booking@chrismols.com", + "sascha.smollen@web.de", + "booking@firestormffm.de", + "mail@birdsview.eu", + "frank_ehrhardt@gmx.de", + "samuel.wahlandt@online.de", + "offer@hotelloungepost.de", + "jodorsheimer@web.de", + "flyeralarm@ratepay.de", + "no-reply@mywebsite-editor.com", + "info@zeltplatz-hofheim.de", + "booking-gapintheclouds@outlook.de", + "info@julikwadwo.com", + "marvin@whosmary.de", + "frank.albersmann@gmail.com", + "info@sommerschein.de", + "info@electric-conzertration.de", + "jackybastekmusic@gmail.com", + "jonas.jazzkeller@gmail.com", + "booking@sommerschein.de", + "scheiba.band@gmail.com", + "booking@analogue-birds.com", + "info@flyeralarm.de", + "thomas.voelker@dielinke-mtk.de", + "info@sommerschein.de", + "hans-peter.krecker@t-online.de", + "juergenlengemann@gmx.de", + "engellie.stern-krecker@web.de", + "emmessingerw@yahoo.de", + "sale@bigmashines.buzz", + "thomas.voelker@dielinke-mtk.de", + "clara-schuster@t-online.de", + "robin.garrido92@googlemail.com", + "reklamation@flyeralarm.com", + "alan@yetnotnow.de", + "a.nad@gmx.de", + "rokko@rolamusic.com", + "kontakt@galo-bookings.de", + "richardschwertner@gmail.com", + "info@sommerschein.de", + "montytown@t-online.de", + "fadingsunday@gmail.com", + "f.br82@icloud.com", + "info@snippetupperlaser.com", + "plasmajet@gmx.net" +] \ No newline at end of file diff --git a/mailParse.py b/mailParse.py deleted file mode 100644 index b20ea07..0000000 --- a/mailParse.py +++ /dev/null @@ -1,67 +0,0 @@ -import imaplib, email, os -from dotenv import load_dotenv - -searchUnawnsered = "UNANSWERED SENTSINCE 01-Sep-2022" -searchAll = 'ALL' - -load_dotenv() -pw = os.getenv('PASSWORD') -server ="w00e1ce2.kasserver.com" -username ="booking@sommerschein.de" - -# Connect to inbox -imap_server = imaplib.IMAP4_SSL(host=server) -imap_server.login(username, pw) -imap_server.select() # Default is `INBOX` - -contacts = [] - -# Find all emails in inbox -_, message_numbers_raw = imap_server.search(None, searchAll) -for message_number in message_numbers_raw[0].split(): - _, msg = imap_server.fetch(message_number, '(RFC822)') - - # Parse the raw email message in to a convenient object - message = email.message_from_bytes(msg[0][1]) - contact = message['from'].lower() - if contact not in contacts: - contacts.append(contact) - """ - print('== Email message =====') - # print(message) # print FULL message - print('== Email details =====') - print(f'From: {message["from"]}') - - - print(f'To: {message["to"]}') - print(f'Cc: {message["cc"]}') - print(f'Bcc: {message["bcc"]}') - print(f'Urgency (1 highest 5 lowest): {message["x-priority"]}') - print(f'Object type: {type(message)}') - print(f'Content type: {message.get_content_type()}') - print(f'Content disposition: {message.get_content_disposition()}') - print(f'Multipart?: {message.is_multipart()}') - # If the message is multipart, it basically has multiple emails inside - # so you must extract each "submail" separately. - if message.is_multipart(): - print('Multipart types:') - for part in message.walk(): - print(f'- {part.get_content_type()}') - multipart_payload = message.get_payload() - for sub_message in multipart_payload: - # The actual text/HTML email contents, or attachment data - print(f'Payload\n{sub_message.get_payload()}') - else: # Not a multipart message, payload is simple string - print(f'Payload\n{message.get_payload()}') - # You could also use `message.iter_attachments()` to get attachments only - -for c in contacts: - print(c) -""" -for c in contacts: - contact = c.split('<') - if len(contact) == 2: - contact = contact[1].split('>') - print(contact[0]) - else: - print(contact[0]) \ No newline at end of file diff --git a/mail_util.py b/mail_util.py new file mode 100644 index 0000000..a1788f8 --- /dev/null +++ b/mail_util.py @@ -0,0 +1,139 @@ +import imaplib, email, os, json +from config import server, username, pw, searchAll, searchYesterday + +from smtplib import SMTP_SSL, SMTP_SSL_PORT + + + +def sendEmails(text, reciever): + SMTP_HOST = server + SMTP_USER = username + SMTP_PASS = pw + + # Craft the email by hand + from_email = 'Maily-Sommerschein ' # or simply the email address + to_emails = reciever + body = text + headers = f"From: {from_email}\r\n" + headers += f"To: {', '.join(to_emails)}\r\n" + headers += f"Subject: Autoresponse\r\n" + email_message = headers + "\r\n" + body # Blank line needed between headers and body + + # Connect, authenticate, and send mail + smtp_server = SMTP_SSL(SMTP_HOST, port=SMTP_SSL_PORT) + smtp_server.set_debuglevel(1) # Show SMTP server interactions + smtp_server.login(SMTP_USER, SMTP_PASS) + smtp_server.sendmail(from_email, to_emails, email_message) + + # Disconnect + smtp_server.quit() + +def loadKnownContacts(): + f = open('contacts.json') + contacts = json.load(f) + return contacts + +def getContacts(search): + # Connect to inbox + imap_server = imaplib.IMAP4_SSL(host=server) + imap_server.login(username, pw) + imap_server.select() # Default is `INBOX` + + contacts = [] + + # Find all emails in inbox + _, message_numbers_raw = imap_server.search(None, search) + for message_number in message_numbers_raw[0].split(): + _, msg = imap_server.fetch(message_number, '(RFC822)') + + # Parse the raw email message in to a convenient object + message = email.message_from_bytes(msg[0][1]) + contact = message['from'].lower() + if contact not in contacts: + contacts.append(contact) + + newContacts = [] + + for c in contacts: + contact = c.split('<') + if len(contact) == 2: + contact = contact[1].split('>') + #contact = contact[0].split('(') + newContacts.append(contact[0]) + #print(contact[0]) + else: + contact = contact[0].split('(') + #print(contact[0]) + newContacts.append(contact[0]) + + + return newContacts + +def jsonAddContacts(contacts): + if os.path.isfile('./contacts.json'): + print('Deleting Contacts') + os.remove('contacts.json') + + with open('contacts.json', 'w', encoding='utf-8') as f: + json.dump(contacts, f, ensure_ascii=False, indent=4) + +def jsonCreateContacts(): + # Connect to inbox + imap_server = imaplib.IMAP4_SSL(host=server) + imap_server.login(username, pw) + imap_server.select() # Default is `INBOX` + + contacts = [] + + # Find all emails in inbox + _, message_numbers_raw = imap_server.search(None, searchAll) + for message_number in message_numbers_raw[0].split(): + _, msg = imap_server.fetch(message_number, '(RFC822)') + + # Parse the raw email message in to a convenient object + message = email.message_from_bytes(msg[0][1]) + contact = message['from'].lower() + if contact not in contacts: + contacts.append(contact) + + newContacts = [] + rawContacts = [] + + for c in contacts: + rawContacts.append(c) + contact = c.split('<') + if len(contact) == 2: + contact = contact[1].split('>') + #contact = contact[0].split('(') + newContacts.append(contact[0]) + #print(contact[0]) + else: + contact = contact[0].split('(') + #print(contact[0]) + newContacts.append(contact[0]) + + if os.path.isfile('./contacts.json'): + print('Deleting Contacts') + os.remove('contacts.json') + + + if os.path.isfile('./rawContacts.json'): + print('Deleting Contacts') + os.remove('rawContacts.json') + + with open('contacts.json', 'w', encoding='utf-8') as f: + json.dump(newContacts, f, ensure_ascii=False, indent=4) + + with open('rawContacts.json', 'w', encoding='utf-8') as f: + json.dump(rawContacts, f, ensure_ascii=False, indent=4) + +def checkFor_unkownContacts(): + contacts = getContacts(searchYesterday) + knownContacts = loadKnownContacts() + unknownContacts = [] + for c in contacts: + if c not in knownContacts: + # TODO: send Email + #print(c) + unknownContacts.append(c) + return unknownContacts diff --git a/rawContacts.json b/rawContacts.json new file mode 100644 index 0000000..0cf7d58 --- /dev/null +++ b/rawContacts.json @@ -0,0 +1,702 @@ +[ + "magmo ", + "patrick kirsch ", + "germaine jil. ", + "=?utf-8?q?milan_sch=c3=a4fer?= ", + "david schmidt ", + "\"turbobit.net\" ", + "fritz schaal ", + "betamensch ", + "\"backtrip\" ", + "laurent r ", + "kontakt@bestb4after.de", + "\"cihan ozaman | calves booking\" ", + "harter tobak ", + "\"kevin radke\" ", + "ilka v.d. ", + "jay fizy ", + "jonas liedel | modern post ", + "\"hapticinvaders\" ", + "sir collapse ", + "reinventingopera ", + "michael schweigkofler ", + "ilber qunstwerk ", + "lucas pentzek ", + "=?utf-8?q?falk_sch=c3=b6nfelder?= ", + "dominik speh ", + "lars wege ", + "echolons.official@gmail.com", + "=?utf-8?q?\"sommerschein_info_//_f=c3=b6rderkreis_kultur_regional?=\r\n =?utf-8?q?_e.v.\"?= ", + "marius bracke ", + "david laudage ", + "marakesh ", + "\"nordlicht booking\" ", + "\"paranoid android\" ", + "\"schick, bernhard\" ", + "\"schley, britta\" ", + "\"heidi.werkmann@t-online.de\" ", + "fabian wegmann ", + "ben ten ", + "gordon strutz ", + "\"booking@nospammusic.com\" ", + "=?utf-8?q?=22daniel_m=c3=b6wius=22?= ", + "carsten dierks ", + "franz fesel ", + "\"aaron rosenfelder\" ", + "allmyenemies@gmx.net", + "\"quantum veritatis\" ", + "\"florian heib\" ", + "bahira ", + "=?utf-8?q?alex_m=c3=bche?= ", + "backdoorslam@gmx.de", + "lucas schobert ", + "backdoorslam ", + "lucas schobert ", + "\"richard schaeffer \" ", + "\"sibylle hatzi\" ", + "\"peter bering\" ", + "=?utf-8?q?=22sommerschein_info_//_f=c3=b6rderkreis_kultur_region?=\r\n =?utf-8?q?al_e=2ev=2e=22?= ", + "sommerschein info ", + "marv g ", + "\r\n \"=?utf-8?q?sommerschein_info_//_f=c3=b6rderkreis_kultur_regional_e.v.?=\"\r\n ", + "=?utf-8?q?cl=c3=a9ment_stiftung?= ", + "jacques uhlemann ", + "open parachine ", + "\"daniel klose\" ", + "\"lui - tzunami music\" ", + "jasmin stocker ", + "funk & seele - booking ", + "", + "sebastian kraus ", + "\"eli\" ", + "management // joey voodoo ", + "pzzl booking ", + "max ", + "revolution eve ", + "=?utf-8?q?paul=20=2d=20jackalope?= ", + "punch-hole-cloud@web.de", + "sebastian klein ", + "info@groundswimmer.de", + "\"tune circus\" ", + "robin.garrido92@googlemail.com", + "alexander mayer ", + "=?utf-8?q?visdom=20|=2070s=20stonersoaked=20hardrock?= ", + "\"voodoo kiss\" ", + "bonsai booking ", + "marvin losch ", + "christoph margraf ", + "\"ohlala musik\" ", + "cat eaters ", + "\"3 dog entertainment\" ", + "skullboogey@web.de", + "=?iso-8859-1?q?herk_r=f6pe?= ", + "alex schueller ", + "\"rooftop getaway\" ", + "funk & seele ", + "flo // joey voodoo ", + "=?iso-8859-1?q?helge_gro=dfe?= ", + "libell booking ", + "infected world ", + "beatfrog ", + "=?utf-8?q?=22sommerschein_intern_//_f=c3=b6rderkreis_kultur_regional?=\r\n =?utf-8?q?_e=2ev=2e=22?= ", + "=?utf-8?q?=22patrick_w=c3=b6hrle=22?= ", + "ramin ton booking ", + "=?utf-8?q?=22alexander_p=c3=b6rsch=2c_ap_event=22?= ", + "\"jens bender\" ", + "katrin lang ", + "jylda ", + "=?utf-8?q?joshua=20=2f=20jackalope?= ", + "tim buskies ", + "\"michael gauss\" ", + "simon / th10 ", + "\"booking thelegion:ghost\" ", + "mirco blumenberg ", + "\"max jost\" ", + "\"simon von der gathen (koj)\" ", + "=?utf-8?q?=f0=9f=97=bf_-thomas_st=c3=bcrmer-?= ", + "behrooz moosavi ", + "=?iso-8859-1?q?j=fcrgen_deck?= ", + "roland.weirich@arcor.de", + "=?utf-8?q?jens_j=c3=a4ger?= ", + "=?iso-8859-1?q?schl=fcsselkind_band?= ", + "kenneth mitchell young ", + "\"tim schmidt\" ", + "summery mind ", + "oliver eves ", + "=?utf-8?q?friedhelm_hofmann_=7c_p=c3=b8j_p=c3=b8j?= ", + "\"[drivers inc] - premium quality rock music\" ", + "felix loepthien ", + "\"philip rainman\" ", + "\"faedde | faedde deluxe\" ", + "\"volker desert crow\" ", + "johannes | junkyard rebellion ", + "jens dahme ", + "bibla7@aol.com", + "fabian weygandt ", + "=?utf-8?q?sven_m=c3=bcller-laupert?= ", + "philipp wetzel ", + "set alight ", + "ian late ", + "=?utf-8?q?selective=20artists?= ", + "\"band.kiktron@t-online.de\" ", + "booking@punktantonio.de", + "daniel zimmermann ", + "tidalwave ", + "katia touillon ", + "=?utf-8?q?=22julia_wei=c3=9f=22?= ", + "\"philipp hofmeister \\(via dropbox\\)\" ", + "=?utf-8?q?karakter=20live?= ", + "\"iris hagen\" ", + "norrland & dw bookings ", + "booking reload ", + "info@thesecluded.com", + "=?utf-8?q?joshua=20=2d=20jackalope?= ", + "\"flucht- plan\" ", + "helmrich-kai@gmx.de", + "rieke fischer ", + "bob venga ", + "\"driven booking\" ", + "booking@grafschlotz.com", + "handshake booking - paul heuer ", + "lars schmidt ", + "\"krissi von un-even\" ", + "\"alan covic | yetnotnow\" ", + "\"angelika kambeck\" ", + "total banal ", + "=?utf-8?q?soomerschein_booking//f=c3=b6rderkreis_kultur_regional_e.v./?=\r\n =?utf-8?q?/germaine_jil_pook?= ", + "sbleistein@hofheim.de", + "\"bleistein, susanne\" ", + "jana ", + "yvonne probst ", + "mailer-daemon@dd30318.kasserver.com (mail delivery system)", + "booking@pzzl.de", + "markus engel ", + "madhouse matadors ", + "matthias ewald ", + "\"k.lengwenus\" ", + "booking ", + "julien pfeil ", + "", + "\"lucas klemm\" ", + "thomas hilfrich ", + "\"m. noerder-tuitje\" ", + "timo heuser ", + "tim cammerzell ", + "goreminister@gmx.net", + "\"mattick, felix (ine)\" ", + "simon / teamhochzehn ", + "julakim - liedermacherin ", + "konrad auhofer ", + "gleeman crew ", + "\"marco pleil\" ", + "\"tobias enzl\" ", + "julia maria labsch ", + "banjoory reggaestyles & more ", + "the lo-5ives ", + "thorsten@veion.de", + "\"antje.kunze@t-online.de\" ", + "ben heavyonwire ", + "", + "\"till faust\" ", + "booking ", + "lastjeton@gmx.de", + "christopher wilhelm ", + "doppelton ", + "daniel riedel ", + "void of animus ", + "thekenpoet - booking ", + "antje kunze ", + "toona music ", + "\"nils eggers\" ", + "uwe pfeiffer ", + "mary red ", + "jana huhn ", + "gerrit haasler ", + "matthias // booking stereo dynamite ", + "\"johannes kneisel\" ", + "=?utf-8?q?lydia_sprengard_=c3=bcber_linkedin?= ", + "koma booking ", + "ifw ", + "frau ruth ", + "lili ", + "=?utf-8?q?\"p=c3=b8j_p=c3=b8j_|_friedhelm_hofmann\"?= ", + "koerpa@nexgo.de", + "", + "mutant invasion ", + "florian weik ", + "=?utf-8?q?daniel_labenz=2c_martin_st=c3=b6mmer?= ", + "info@voodookiss.de", + "passedmeby@web.de", + "marc hartmann ", + "the garciass ", + "\"first of all\" ", + "mental reservation ", + "rivers - booking ", + "denise ", + "\"armin rahn agency & management\" ", + "gabriel spateneder - the unduster ", + "igor hubik ", + "nele geissler ", + "carolin borst ", + "bandlioba@mail.de", + "gary bonassi ", + "\"nazca space fox\" ", + "\"the morning pints (booking)\" ", + "bernhard karakoulakis ", + "\"mind blowing\" ", + "christopher horn ", + "mount shasta ", + "alaska pirate booking ", + "booking@animal-bizarre.de", + "", + "seltsam! ", + "tobias wagner ", + "marius ", + "=?iso-8859-1?q?timo_r=f6der?= ", + "bernd@virusmusik.de", + "=?utf-8?q?mario=20bueker=20=2f=20modeste?= ", + "sf ", + "booking@juicyroadkill.com", + "the grand sheep official ", + "johannes | street fighter ", + "jonas.nem@freenet.de", + "sasanferencsven ", + "pia-anna allgaier ", + "leyla trebbien ", + "=?utf-8?q?michael=20wohlfarth=20=5bpopup=2drecords=5d?= ", + "admin ", + "gabriel klisic ", + "\"dr shi ying\"", + "=?utf-8?q?selective=20artists=20|=20dennis=20krause?= ", + "marcel@samarah.de", + "booking paramagnet ", + "", + "salud booking ", + "=?utf-8?q?luciano=20hoch=20=2f=2fhandshake=20booking?= ", + "moritz brockmann ", + "=?utf-8?q?\"p=c3=b8j_p=c3=b8j_|_friedhelm\"?= ", + "norrland booking & dw bookings ", + "=?utf-8?q?handshake=20booking?= ", + "\"hellfire concerts | fabian maier\" ", + "=?utf-8?q?lili?= ", + "management | joey voodoo ", + "\"tilman benning\" ", + "earthgaze official ", + "\"robert kalix\" ", + "max jost ", + "\"=?utf-8?q?seltsam=40seltsam-music.de?=\" ", + "holger ", + "revolte tanzbein gbr ", + "robert sgaslik ", + "banjoory ", + "\"tobias.wagner.fb@t-online.de\" ", + "kamran inaiat ", + "lukas lassmann ", + "wetransfer ", + "\"agentur streckenbach gmbh & co. kg\" ", + "seltsam@seltsam-music.de", + "\"stefan herber\" ", + "marecia willoughby ", + "glasgow coma scale ", + "\"hyte and haywire\" ", + "\"vanessa howe\" ", + "=?utf-8?q?uwe_chariss=c3=a9?= ", + "\"veytstanz-booking@t-online.de\" ", + "", + "stefan ", + "super use ", + "maximilian-pfeffer94@web.de", + "\"joscha boldt\" ", + "set alight ", + "thomas rohr ", + "=?utf-8?q?homegrown=20music?= ", + "\"info@waitforjune.de\" ", + "robert grosse/noisegroupie ", + "=?utf-8?q?bella=20concerts?= ", + "finn norberg ", + "\"arsen\" ", + "lutopia orchestra ", + "bb booking ", + "", + "\"lars wege\" ", + "m ", + "schoch promotion ", + "driven booking ", + "=?utf-8?q?s=c3=a4nd=c3=a4pause_booking?= ", + "\"laura-esther jung\" ", + "colbinger - management & booking ", + "=?utf-8?q?eskalation=20band?= ", + "=?utf-8?q?audrey_=c3=93_nuadh=c3=a1in?= ", + "philipp frank ", + "analogue birds booking ", + "five fingers crossed ", + "tim matthaei ", + "", + "sebastian wittag - gofar mgmt ", + "booking & management | the unduster ", + "thorsten dietrich ", + "toto dietrich ", + "kathrina-wd@web.de", + "\"katrin lang // chris & taylor\" ", + "\"steven elijah neuhaus\" ", + "p.lima@bluecatmusic.de", + "\"jannek ramm\" ", + "stefan otto macht musik! ", + "=?utf-8?q?the=20dopers?= ", + "\"sven boege\" ", + "\"benjamin weisrock\" ", + "dan glaunsinger | ize ", + "\"p.lipp@bougalou.com\" ", + "neat mentals ", + "high fidelity ", + "julakim ", + "sebastian mehling ", + "\"marie chain\" ", + "\"minuspol\" ", + "\"katharina asbach\" ", + "=?utf-8?q?sven_kr=c3=a4tschmann?= ", + "mario rossmann ", + "=?utf-8?q?hicktown_records_=c2=ae_label?= ", + "holger ", + "booking@blaucrowdsurfer.de", + "booking | c for caroline ", + "=?iso-8859-1?q?f=f8ley_band?= ", + "tobias krissel ", + "all that we are ", + "one step further ", + "jannic chopty ", + "pedro lima ", + "\"jan@ani-booking.com\" ", + "\"remedy band\" ", + "matthias // stereo dynamite (booking) ", + "=?utf-8?q?michael=20wohlfarth=20=5bpopup=2drecords=5d?= ", + "", + "mattick@bartf0011.email.locaweb.com.br,\r\n\tfelix (ine) felix.mattick@kit.edu ", + "booking@nullachtfuffzehn.berlin", + "dominik kirchner ", + "nocona heat ", + "tonart-promotions - claudia geppert-kohnle ", + "=?utf-8?b?qwxlea==?= ", + "manus leupert | kojinmari agency ", + "nick//hazel the nut ", + "\"wieland wilkens\" ", + "lioba ", + "noah choi ", + "booking grup huub ", + "phillip steven albright // der wahnsinn ", + "mattick@mail.nusatrip.com, felix (ine) ", + "stefan who's mary ", + "booking ", + "zwischenmensch ", + "\"detlef fischbuch\" ", + "\"mr.easy\" ", + "\"info@kore-music.com\" ", + "\"info@eskalation-band.de\" ", + "\"johannes aeppli\" ", + "sparkasse gmbh ", + "\"all noir\" ", + "=?iso-8859-1?q?hicktown=20records=20=ae=20jessy?= ", + "delicious! | office ", + "\"ben // helga weiss\" ", + "\"werksvertrieb\" ", + "\"gema, kontakt\" ", + "=?utf-8?q?lena=20m=c3=bcller=20=2d=20handshake=20booking?= ", + "alena&kathrin ", + "=?utf-8?q?christopher_m=c3=bcller?= ", + "\"hbilling@schwarzworz.de\" ", + "=?utf-8?q?lieber=20herr=20meier?= ", + "manuel schneider ", + "\"claudia geppert-kohnle\" ", + "\"bego\" ", + "\"booking@kunstfehler-musik.de\" ", + "\"lara f. / sound of liberation\" ", + "stefan hummel ", + "\"kevin flentje\" ", + "\"kaoma\" ", + "=?utf-8?q?patrick_h=c3=a4nsler?= ", + "harry ", + "kaleu@circus-rhapsody.de", + "\"solar penguin agency\" ", + "street-heppenheim ", + "", + "horny lulu ", + "five fingers crossed - band ", + "info@banjoory.de", + "immi e. ", + "booking@gazebotree.de", + "\"liedermacher kathrina\" ", + "booking@boiler-band.de", + "vlado ", + "=?utf-8?q?evendon._|_beate_h=c3=bcls?= ", + "\"autumn tree\" ", + "niklas schmedding ", + "booking@thursdayinmarch.de", + "\"booking @ steven cole\" ", + "nikolas becker ", + "\"stefan reese von a-side\" ", + "emperors lair ", + "info@theblacklane.com", + "jakob weber ", + "\"benjamins@gmx.net\" ", + "\"jan schlagowski (c for caroline)\" ", + "booking julakim ", + "dominik schmidt ", + "cleklingt ", + "thieves in love ", + "powder for pigeons ", + "lax diamond ", + "=?utf-8?q?skip_track_booking_f=c3=bcr?= ", + "parade ", + "atlas bird ", + "booking@k-ste.de", + "", + "=?utf-8?q?janis_kr=c3=a4mer?= ", + "jan colorwave ", + "=?utf-8?q?vantom=20=2d=20booking?= ", + "steven cole ", + "sommerschein festival ", + "insa reichwein ", + "=?utf-8?q?patrick=20=2f=2f=20kruppa=20music?= ", + "atrio ", + "booking@apaath.de", + "kontakt@endeffekt.info", + "cash crops ", + "\"schulze, niklas\" ", + "\"wes - belgian quo band\" ", + "corcochonk|booking ", + "\"entex\" ", + "\"the moorings | solar penguin agency\" ", + "chris hammer ", + "\"dreimillionen | solar penguin agency\" ", + "", + "\"marco henkenjohann\" ", + "=?utf-8?b?ugv0zxigtcokzgvy?= ", + "\"tony volkov | solar penguin agency\" ", + "\"hendrik nieraad\" ", + "\"no man's valley\" ", + "andy@cyrcus.com", + "=?utf-8?q?__brigitte_gro=c3=9f_v_b._musik_manag?=\r\n\t=?utf-8?q?ment?= ", + "monza kinski ", + "torsten zwingenberger ", + "=?utf-8?q?=22andr=c3=a9_petry=22?= ", + "\"arsen booking\" ", + "=?utf-8?b?u8okbmtdphbhdxnl?= ", + "=?utf-8?q?dan=20=2d=20c=27mon=20artax=21=20booking?= ", + "benno bruschke | klub erika ", + "strictly mint ", + "peter harasim ", + "out of order <4outoforder@gmail.com>", + "overlaps ", + "=?utf-8?q?=22hans-j=c3=bcrgen_k=c3=b6hler=22?= ", + "\"svynx\" ", + "=?utf-8?q?marcus_r=c3=bcssel?= ", + "black ice ", + "\"dr alban\" ", + "robin garrido ", + "=?utf-8?q?sommerschein_booking_//_f=c3=b6rderkreis_kultur_regional_e.v?=\r\n =?utf-8?q?._//_robin_garrido?= ", + "\"booking@sommerschein.de\" ", + "\"solar penguin agency\" ", + "apewards ", + "stand up stacy ", + "=?utf-8?q?booking-team_///_k=c3=bcnstleragentur_musikmaschine_?=", + "xr66 band ", + "\"in your honor\" ", + "my little white rabbit ", + "=?utf-8?q?arne_grasm=c3=bcck_/_ever_ever_management?= ", + "\"angel rodriguez toledo\" ", + "\"rose for helena\" ", + "voidofanimus@gmail.com", + "\"david schulz\" ", + "hendrik myland | 190a ", + "\"gibson brothers\" ", + "josch ", + "=?utf-8?q?johannes_jacobi_=7c_h=c3=b6me?= ", + "paul@homegrown-music.de", + "\"tony volkov\" ", + "selina post ", + "=?utf-8?q?morning_mode_=e2=80=93_booking?= ", + "=?utf-8?q?darius_lohm=c3=bcller?= ", + "five fingers crossed ", + "anna and a riot ", + "=?utf-8?q?paul=20marx?= ", + "booking | modern post ", + "", + "harry - sixteentimes music ", + "\"alles von ed\" ", + "jana hauser ", + "\"guenther@solarpenguin.de\" ", + "", + "blaucrowd surfer ", + "roland weirich ", + "kultnet kultur-ausschreibungen ", + "greg // swamp booking ", + "-paypal- <6263819209156531528723@angelosnypizza.com>", + "lukeimp@optusnet.com.au", + "=?utf-8?q?liliane=20b=c3=bcrli?= ", + "k-ste booking ", + "jorge da rocha ", + "\"janis.kraemer\" ", + "maik | dragon productions ", + "info@frankleyeverlong.com", + "\"tony v | solar penguin agency\" ", + "\"office@solarpenguin.de\" ", + "=?utf-8?b?smfuiefdvg50agvy?= ", + "\"tobias ritter\" ", + "=?utf-8?q?hannah=20=2f=2f=20das=20bl=c3=bchende=20leben?= ", + "=?utf-8?q?jackalope=2dbooking?= ", + "\"leonard hacker\" ", + "pelle thiedemann ", + "christian hendges ", + "wyme ", + "michael wohlfarth ", + "\"marie imkeller\" ", + "\"sabine \\(k.o.k.s.\\) \" ", + "\"bitcoin halving\" ", + "\"bitcoin halving\" ", + "\"bitcoin halving\" ", + "\"colin erickson", + "\"=?utf-8?b?ikthcgl0ywwtr2vzzxr6zxnsw7xja2ui?=\" ", + "\"r. bader\" ", + "\"kelley preuss\" ", + "=?utf-8?q?giorgio_/_swamp_booking?= ", + "=?utf-8?q?ricky_/_swamp_booking?= ", + "=?utf-8?q?wade_/_swamp_booking?= ", + "lukas scholpp ", + "=?utf-8?q?undercover=20booking?= ", + "benjamin weisrock ", + "=?utf-8?q?greg_/_swamp_booking?= ", + "=?utf-8?q?diego_/_swamp_booking?= ", + "\"bitcoin halving\" ", + "\"mary@turbobooking\" ", + "\" gabriel \" ", + "\"gabriel \" ", + "\"sonderbericht\" ", + "agentur streckenbach | newsletter ", + "\"bitcoin halving\" ", + "\"potenzpillen\" ", + "\"=?utf-8?b?4ocesmo2agxligrlcibmw7z3zw7igjwgu3lzdgvt?=\" ", + "die plomaten ", + "\"andreas stein\" ", + "\"freitag, september 4, 2020\" ", + "event managers updates ", + "\"anna\" ", + "=?utf-8?q?handshake_booking_-_lena_m=c3=bcller?=\r\n ", + "-paypal ", + "\"mittwoch, november 4, 2020\" ", + "\"bitcoin up\" ", + "karin.haberzettl@web.de", + "electric riots booking ", + "=?utf-8?q?federico_/_swamp_booking?= ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "=?utf-8?q?dominik=20&=20team=20rola=20music?= ", + "\"bitcoin system\" ", + "\"=?utf-8?b?4ocesmo2agxligrlcibmw7z3zw7igjw=?=\" ", + "\"bernard henry\" ", + "\"c'mon artax! booking\" ", + "\"bookings - bqb management\" ", + "=?utf-8?q?gonza=20=2f=20rola=20music?= ", + "\"=?windows-1251?b?b3f2ew5yag==?=\" ", + "event managers updates ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"bitcoin system\" ", + "\"boris hofmann\" ", + "\"die plomaten\" ", + "michael schacke ", + "gabriel ", + "\"boris hofmann\" ", + "\"die plomaten\" ", + "=?utf-8?q?moritz=20holzkamp=20=2d=20handshake=20booking?= ", + "\"boris hofmann\" ", + "\"die plomaten\" ", + "\"die plomaten\" ", + "black web tourbooking ilija ", + "viktor nordir ", + "\"bitcoin system\" ", + "\"online-apotheke\" ", + "\"bitcoin system\" ", + "=?utf-8?q?paul=20heuer=20=2d=20handshake=20booking?= ", + "-dhl ", + "brianna hester ", + "\"=?windows-1251?b?tmvlzgxl?=\" ", + "=?utf-8?q?undercover=20gmbh?= ", + "=?utf-8?q?yetnotnow?= ", + "=?utf-8?q?von=20flocken?= ", + "\"brigitte krenn\" ", + "\"elijah werner\" ", + "scheiba ", + "joachim dorsheimer ", + "christian nad ", + "m01b4525 ", + "flyeralarm ", + "noreply@flyeralarm.com", + "rechnungen@flyeralarm.de", + "michow concerts entertainment ", + "\"flyeralarm\" ", + "emanuel vogel ", + "marius fiebig ", + "bird's view booking ", + "the black lane ", + "dlia booking ", + "fritz schaal ", + "timomalcom ", + "tgtt@gmx.net", + "juli kwadwo ", + "\"flyeralarm\" ", + "booking@chrismols.com", + "sascha.smollen@web.de", + "marco russo ", + "bird's view ", + "frank ehrhardt ", + "\"samuel.wahlandt@online.de\" ", + "", + "jo dorsheimer ", + "flyeralarm ", + "mywebsite ", + "\"zeltplatz hofheim\" ", + "=?iso-8859-1?q?florian_h=f6lzel?= ", + "julian waibel ", + "marvin kornek ", + "frank albersmann ", + "maren pauer ", + "electric conzertration ", + "jacky bastek ", + "jonas keller ", + "jonas ", + "scheiba scheiba ", + "booking@analogue-birds.com", + "info@flyeralarm.de", + "=?utf-8?q?thomas_v=c3=b6lker?= ", + "nina ", + "\"h.-p. krecker\" ", + "=?utf-8?q?j=c3=bcrgen_lengemann?= ", + "\"engellie stern-krecker\" ", + "eva wiener ", + "premortal breath ", + "\"thomas =?utf-8?q?v=c3=b6lker?=\" ", + "clara schuster ", + "robin garrido ", + "reklamation ", + "=?utf-8?q?alan=20covic=20|=20yetnotnow?= ", + "alexander nad ", + "=?utf-8?q?rokko?= ", + "kontakt@galo-bookings.de", + "richard schwertner ", + "elijah werner ", + "montytown ", + "", + "falk bruckmann ", + "nina vietzke ", + "nik ", + "" +] \ No newline at end of file diff --git a/responder.py b/responder.py deleted file mode 100644 index 68d0696..0000000 --- a/responder.py +++ /dev/null @@ -1,24 +0,0 @@ -# import the modules -import imaplib -import email -from email.header import decode_header -import webbrowser -import os -from dotenv import load_dotenv -import time -# load env file -load_dotenv() -pw = os.getenv('PASSWORD') -server ="w00e1ce2.kasserver.com" -username ="booking@sommerschein.de" - -# Connect to inbox -imap_server = imaplib.IMAP4_SSL(host=server) -imap_server.login(username, pw) -imap_server.select() # Default is `INBOX` - -# Find all emails in inbox and print out the raw email data -_, message_numbers_raw = imap_server.search(None, 'ALL') -for message_number in message_numbers_raw[0].split(): - _, msg = imap_server.fetch(message_number, '(RFC822)') - print(msg[0][1]) \ No newline at end of file diff --git a/responses/bookingResponse.txt b/responses/bookingResponse.txt new file mode 100644 index 0000000..51eb201 --- /dev/null +++ b/responses/bookingResponse.txt @@ -0,0 +1,30 @@ +Willkommen bei eurer Bewerbung fuer das Sommerschein-Festival! + +Vielen Dank fuer eure Anfrage. Wir fuehlen uns geehrt, dass ihr Interesse an einem Auftritt auf +unserem Festival vom 25. - 27.08.2023 habt. + +Wir freuen uns am meisten, wenn Bands persoenlich an uns herantreten. Bookingagenturen und +Managements verbessern leider nicht die Chance auf eine Show auf unserem Festival. Bitte bewerbt +euch daher direkt als Band. + +Zwar sollte selbsterklaerend sein, dass wir auf unserem kostenlosen und ehrenamtlichen Festival +keine Traumgagen zahlen koennen, natuerlich soll aber auch keiner leer ausgehen. +Beachtet bitte auch, dass wir nicht immer sofort persoenlich antworten koennen, aber wenn ihr +innerhalb von vier Wochen keine Antwort erhaltet, bedeutet das, dass wir derzeit keine Moeglichkeit +fuer einen Auftritt haben. Eine erneute Bewerbung ist natuerlich immer willkommen. + +Bitte gebt uns die folgenden Informationen: + +- Mit welcher Band bewerbt ihr euch? +- Welche Instrumentalisierung? +- Woher kommt ihr? +- Das ist so weit von Hofheim entfernt: +- Wie habt ihr vom Sommerschein erfahren? +- Wie viele Personen gastieren fuer euer Konzert bei uns? +- Wie viele mit uebernachtung? +- Hoerbeispiele und sonstige Links: +- Kleiner Freitext: + +Wir freuen uns auf eure Bewerbung! +Liebe Gruesse, +Das Sommerschein-Team \ No newline at end of file