Giter Site home page Giter Site logo

cloudmailin / docs.cloudmailin.com Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 20.0 15.39 MB

The CloudMailin documentation ready for you to fork and submit patches!

Home Page: http://docs.cloudmailin.com

Ruby 24.90% CSS 10.18% HTML 8.99% Dockerfile 1.11% SCSS 16.29% Haml 27.91% JavaScript 10.63%

docs.cloudmailin.com's People

Contributors

brianray avatar gordonapplepie avatar maletor avatar preilly-gl avatar robkitson avatar scsmith avatar stof avatar wasnotrice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docs.cloudmailin.com's Issues

Node.js parse example

I had a lil trouble getting Formidable up and running with Cloudmailin.

Could you guys please paste a suggested setup like you do for Ruby, PHP, Java...

I used 90 txts just testing things out, but I'm happy about the service and possibilities with it.

Best

Node.js multipart is not giving parsing perfectly

Hi, this is amar.I am using cloudmainin in node.js.If i am going to test it on local application ,it is not working properly with multipart content type with express.js ,It is giving fields like in the fallowing manner.I am using formidable package which will be exist in your example.Please tell a solution or atleast suggest best parsing package alternate to formidable

{ plain: '',
html: '


\n',
reply_plain: '',
'headers[Received][0]': 'by mail-lb0-f182.google.com with SMTP id z11so3555109lbi.41 for [email protected]; Fri, 08 Aug 2014 02:35:13 -0700',
'headers[Received][1]': 'by 10.112.120.139 with HTTP; Fri, 08 Aug 2014 02:35:13 -0700',
'headers[Date]': 'Fri, 08 Aug 2014 15:05:13 +0530',
'headers[From]': 'amarnadh meda [email protected]',
'headers[To]': '[email protected]',
'headers[Message-ID]': 'CAPcmA0UkWvcMrw8D7NMo=XhGXVv-DVr_1EM2Rvm+CgPSoST0og@mail.gmail.com',
'headers[Subject]': '',
'headers[Mime-Version]': '1.0',
'headers[Content-Transfer-Encoding]': '7bit',
'headers[DKIM-Signature]': 'v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version๐Ÿ“…message-id:subject:from:to:content-type; bh=F4GmjFI/S83XtY7V3YCAzFHYeEzRSlzX7NOysdLBjdY=; b=Q4lWnpWrk8GLSWwhi9xl/U6x89TPyQdzq/W7iOCQhFblc5ZAvld9USooDK5Q7uGylZ pHKQF/oUZ1fFTBVog00pYvmTFfxxgglDReOu9Yc7rU62uby8lWKLPkCj+yZSphHp85rP Ivlc/Db2wuMH3T2NWcveO4P4tYqp/D/5Sgg+bWdnz9aXUx6Z/hmsLYLOuNfjLGsQdpQJ B21+H5CbXJW+nI765Aj//5ZZ0T3wUrqlIR5+fHpH5/KIXH4s2kTGEkNMi2V1xy5iwZnn uX8NmGC4RDt+5sorsTx1814dCuQcpd65h/nPUVohljD++jm7azkIFW9JgJHEwAC//Nlb 5Rxg==',
'headers[X-Received]': 'by 10.152.29.33 with SMTP id g1mr20910311lah.38.1407490513840; Fri, 08 Aug 2014 02:35:13 -0700 (PDT)',
'envelope[to]': '[email protected]',
'envelope[recipients][0]': '[email protected]',
'envelope[from]': '[email protected]',
'envelope[helo_domain]': 'mail-lb0-f182.google.com',
'envelope[remote_ip]': '209.85.217.182',
'envelope[spf][result]': 'neutral',
'envelope[spf][domain]': 'gmail.com',
'attachments[0][file_name]': '45dbb99967218b26d764.csv',
'attachments[0][content_type]': 'text/csv',
'attachments[0][size]': '549',
'attachments[0][disposition]': 'attachment',
'attachments[0][url]': 'http://ssspl.s3.amazonaws.com/stock/dbe0046be963645fe8d2.csv',
'attachments[0][content_id]': '' }.

If you look at the each key value ,for example :attachments[0][file_name].
In the this manner how can we find how many attachments are there in the mail dynamically.

Even if i am using json post format ,It was not allowing in express .
When i am moving to node.js pure http server package the fallowing error is coming
If am using json parsing in pure node http server with combination of simple-node-router,i am getting the content in the body ,but it is not supporting JSON parsing operation with
JSON.parse

My node server code is as fallowing.
Router.post('/incoming_mail',function (request,response) {
try {
var form = new formiddable.IncomingForm();

var data = JSON.parse(request.post)
console.log(data);
}catch (err) {
    console.log(err);
}

});
The error is : [SyntaxError: Unexpected token o]
.

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.