GithubHelp home page GithubHelp logo

level-mailinator's Introduction

Mailinator Example

Get a token from mailinator

$ cp defaults.json.example defaults.json
$ vim defaults.json # set token value
...
$ ./scripts/mail-repl
-> watch()
'OK'
-> find({from: 'David'})
-> { id: '1419905935-64206899-georgebush',
  to: '[email protected]',
  time: 1419905935623,
  subject: 'yo dawg',
  fromfull: '[email protected]',
  been_read: false,
  from: 'David',
  ip: '209.85.218.44' }
-> find({from: 'Elena'}, {limit: 2})
 { id: '1419854745-57827481-georgebush',
  to: '[email protected]',
  time: 1419854745605,
  subject: 'Hi my friend!',
  fromfull: '[email protected]',
  been_read: false,
  from: 'Elena',
  ip: '190.246.233.81' }
{ id: '1419856188-58924064-georgebush',
  to: '[email protected]',
  time: 1419856188755,
  subject: 'Hi my friend!',
  fromfull: '[email protected]',
  been_read: false,
  from: 'Elena',
  ip: '189.149.126.11' }
-> ls
[Function]
-> ls()
undefined
{"id":"1419530507-35948612-georgebush","to":"[email protected]","time":1419530507513,"subject":"Say Hello to these matches!","fromfull":"[email protected]","been_read":false,"from":"Cougar Life","ip":"66.240.151.87"}
{"id":"1419564838-37346551-georgebush","to":"[email protected]","time":1419564838050,"subject":"guarantee you will get laid tonight ","fromfull":"[email protected]","been_read":false,"from":"Landon","ip":"118.97.175.114"}
...
>
31 Dec 13:31:13 - checking for new email
{ newMail:
   { id: '1420050661-71115404-georgebush',
     to: '[email protected]',
     time: 1420050661588,
     subject: 'testing...',
     fromfull: '[email protected]',
     been_read: false,
     from: 'David',
     ip: '209.85.214.177' } }
-> read('1420050661-71115404-georgebush')
 { apiInboxFetchesLeft: 202,
  apiEmailFetchesLeft: 10,
  data:
   { headers:
      { sender: '[email protected]',
        'content-type': 'multipart/alternative; boundary=001a113dd2763a4e3f050b874f32',
        to: '[email protected]',
        'x-connecting-ip': '209.85.214.177',
        subject: 'testing...',
        'mime-version': '1.0',
        'x-received-time': '1420050661588',
        received: 'by 10.202.74.142 with HTTP; Wed, 31 Dec 2014 10:31:01 -0800 (PST)',
        from: 'David <[email protected]>',
        date: 'Wed, 31 Dec 2014 13:31:01 -0500',
        'x-received': 'by 10.202.192.11 with SMTP id q11mr31695062oif.75.1420050661263;\r\n Wed, 31 Dec 2014 10:31:01 -0800 (PST)' },
     seconds_ago: 27,
     id: '1420050661-71115404-georgebush',
     to: '[email protected]',
     time: 1420050661588,
     subject: 'testing...',
     fromfull: '[email protected]',
     parts: [ [Object], [Object] ],
     been_read: false,
     from: 'David',
     ip: '209.85.214.177' },
  forwardsLeft: 10 }
->
(^C again to quit)
->

Look at the database:

$ cd mail.db
$ lev
/>ls

!MessageRecord!1419530507-35948612-georgebush
!MessageRecord!1419564838-37346551-georgebush
!MessageRecord!1419568848-37536714-georgebush
!MessageRecord!1419579885-38043401-georgebush
!MessageRecord!1419608752-39542509-georgebush
!MessageRecord!1419613263-39804896-georgebush
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.