Mobile Bonding Accepting and parsing MMS messages.

Slides:



Advertisements
Similar presentations
. WHAT IS ? Electronic method of transferring information directly from one PC to another. Electronic method of transferring information directly.
Advertisements

Logging in on “Go” day RMIT University©2012 Information Technology Services 1 Before we switch over, an will be sent to you in GroupWise with instructions.
1 NCDesk % of the test will be Telecommunication/Internet Questions.
The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
Managing Incoming Chapter 3 Bit Literacy. Terminology client – program which retrieves s from a mail server, lets you read the mails,
XP Practical PC, 3e Chapter 9 1 Sending and Attachments.
Standard Grade Computing Electronic Communication.
s. Why use s?  send a message any time, any where and the recipient can read it at his or her convenience.  same message to several people.
Understanding and Building Basic Networks Chapter 3 The Other Internet.
3.06 Understand the use of direct marketing to attract attention and to build brand.
Surrey Libraries Computer Learning Centres Totally New to Computers Easy Gmail September 2013 Easy Gmail Teaching Script.
A – Promotion Marketing PE: Understand the use of direct marketing to attract attention and to build brand. PI: Explain the nature of marketing.
Surrey Libraries Computer Learning Centres Totally New to Computers Easy Gmail March 2013 Easy Gmail Teaching Script.
-I CS-3505 Wb_ -I.ppt. 4 The most useful feature of the internet 4 Lots of different programs, but most of them can talk to each.
evidence. Safety To stay safe on the internet there are many points you need to follow. The first point is to change your password regularly, you.
3.06 Understand the use of direct marketing to attract attention and to build brand.
Exchange 2010 Recipient and Mailbox Management IT:Network:Applications.
HOW TO CREATE A PB WORKS WIKI Prepared by: Jo-Anne Gibson Teacher-Librarian Acadia Junior High.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
WXET1143 Lecture7: , Chat and Messaging. Introduction  Electronic mail is everywhere.  Now many people in business, government, and education use.
MOBIMAGUP 1 MOBile IMAGe UPloader (MOBIMAGUP) Boyan Bontchev Bonea Ltd. Confidential.
Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates.
Santa’s s By Becky.
Gabrielle Gray Chrissy Flynn Matt Smith Paxton Kreps Brandi Dusseau.
1 Blackboard To Log In: Go To: Click On: Login Username: Firstname.Lastname Password: Last 4 digits of S.S. # View often for.
Unit 2—Using the Computer Lesson 14 and Electronic Communication.
Digital Filing A Simple Way to Digitally Centralize and Distribute Documents.
ELECTRONIC COMMUNICATIONS Standard Grade Computing ELECTRONIC COMMUNICATIONS CHAPTER 10.
4BP1 Electronic & Computer Engineering Paul Gildea th Year Interim Project Presentation.
Instructions for Administrators Choose the Enrollment slide decks that match your environment, either for SaaS or On Premise. Edit the red text to match.
Automated Scheduling and Operations for Legacy Applications.
Concepts  messages are passed through the internet by using a protocol called simple mail transfer protocol.  The incoming messages are.
Advantages Convenience Speed Inexpensive Saves on natural resources Reliable Not limited to text.
What is Blog? How to Make a Blog? 1 st step- make a gmail account.
and the business environment Explain what is and how is it used in a business environment A02 .
Feb SCV Spamming your way to High Meeting Attendance The IEEE Majordomo Server and more. Jonathan David.
© Copyright 2009 SSLPost 01. © Copyright 2009 SSLPost 02 a recipient is sent an encrypted that contains data specific to that recipient the data.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
PEMBINA TRAILS Portal System User Guide Prepared by: Jo-Anne Gibson Acadia Junior High Teacher-Librarian.
CS 160 and CMPE/SE 131 Software Engineering February 11 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
Info Spring Features to Find Send a message Read a message sent to you Reply to a message sent to you Forward a message sent to you Save messages.
Helping teachers connect instantly with students and parents.
@Connect – Students' Lifetime Student can keep account after completed their study in HKUST Domain part.
START Application Spencer Johnson Jonathan Barella Cohner Marker.
and Network Management Presented by: Information Technology.
Office 365 Help Desk Troubleshooting Guide
3.06 Understand the use of direct marketing to attract attention and to build brand.
File Management in the Cloud
Sending and Attachments
How to Create a Remind Classroom
Microsoft Outlook By: Phuong Nguyen.
Storing Images Connect to the server using the correct username and password. $conn = mysql_connect(“yourserver”, “joeuser”, “yourpass”); Create the database.
SMS MARKETING.
Services Course 9/9/2018 9:54 PM Services Course Windows Live Hotmail Participant Guide © 2008 Microsoft Corporation. All rights reserved.
Call Outlook customer support toll free number Ireland.
Hotmail Customer Support Number Hotmail Customer Support Number Now a day a lot of people are receiving s with a link in it or an.
Sending and Attachments
3.06 Understand the use of direct marketing to attract attention and to build brand.
3.06 Understand the use of direct marketing to attract attention and to build brand.
Part 4 Q16 to Q20 of National 5 Prelim
3.06 Understand the use of direct marketing to attract attention and to build brand.
The Great Remote Control.
TaxSlayer Multi-Factor Authentication (MFA)
Helping teachers connect instantly with students and parents
Student Steps Open Browser Go to: MyLogin.lausd.net Select: Student.
Student Steps Password Setup.
Chapter 7 Network Applications
MyLion Registration Website | Mobile device
3.06 Understand the use of direct marketing to attract attention and to build brand.
Presentation transcript:

Mobile Bonding Accepting and parsing MMS messages

problems that need to be solved How to… – Pull mails into application –Parse s –Associate to a user account –Decode attachments –Save to database

Pulling s into application Initial thought –run a cron job on mailbox every few minutes and parse new s, but very hackish and not instant. How we ended up doing it –setup MTA to forward to your applications method for handling s ActionMailer.recieve(raw_ )

Setting up MTA to forward s were using Exim – create a new alias in /etc/aliases mms_mail: "| /path/to/ruby /path/to/app/script/runner 'AccountMailer.receive(STDIN.read)" rebuid alias table sendmail –bi Virtual alias file: : mms_mail Now all send to gets forwarded to

Parsing s Go figure, rails provides a great built in method for this class MyMailer < ActionMailer::Base def receive(mail)... end Put in a raw , returns a workable object (TMAIL)

class AccountMailer < ActionMailer::Base def receive( ) puts .title if .has_attachments? puts .attachments.count end >> check out my car >> 3

Associating s with a user account Users need to know where to send s Site needs to know who sent an –Was it john doe, or a spam bot? s need to be verified

Verifying s / Users s contain FROM: which is in the format of Ask users for their mobile number on site Give users a verification code to send from their mobile device –send to verify your Site matches number / code combination => verifies users mobile device

def receive( _text) user = User.find_user_from_mms( _text) if !user raise Invalid Exception.new("Bunk ") elsif !user.is_bonded? #look for verification code only plainparts = [] _text.parts.each do |part| plainparts << part if part.content_type == "text/plain" code_correct = user.verification_code_correct?(plainparts.body) end if code_correct user.bonded = true begin user.save! AccountMailer.deliver_bond_confirmation(user, tmail.from[0]) rescue Exception => e puts "error saving new user bond" end else AccountMailer.deliver_bond_reminder(user) end elsif user.is_bonded? #user is found and bonded, return user, asset, post mms = MMS2R::Media.create( _text) mms.process begin if mms.media['image/jpeg'][0] asset = Asset.new(mms.media['image/jpeg]) asset.save end rescue MobileBondException => e puts e end Full process in Receive function 1)Parse for who it is from 2)Match mobile number to user 3)If user is not bonded, look for verification code 4)If user is bonded, parse

Decoding Attachments MMS messages are full of junk Plugin MMS2R handles removing junk by carrier (verizon puts in 6 images) mms = MMS2R::Media.create( _text) mms.process mms.media['text/plain'] mms.media[image/jpeg']

Testing Cant setup local server, so fake it class AccountMailerTest < Test::Unit::TestCase … def test_should_receive_video_from_ AccountMailer.receive(raw_ ("mms-video.mail")) assert_equal 1, user.media.size End Private def raw_ (action) IO.readlines("#{FIXTURES_PATH}/Mail/#{action}").join End end