Questions tagged [mailman-gem]

An incoming mail processing microframework in Ruby

You can see the project on github : https://github.com/titanous/mailman

22 questions
3
votes
1 answer

How should I test Mailman app

I'm trying to write some specs for my application aimed to process and resend incoming emails. It's built with Mailman App. I didn't find any good examples on how to do that. What am I actually trying is to create email (with Mail gem) and process…
Davert
  • 314
  • 1
  • 5
2
votes
1 answer

how to setup the mailman gem

I'm trying the following guide on mailman http://dansowter.com/mailman-guide/ up until the incoming_mail.rb part I was finding it really easy. But where do I put that file?
Joseph Le Brech
  • 6,541
  • 11
  • 49
  • 84
2
votes
2 answers

how to process incoming mails using mailman and update them into the database

am developing ruby on rails3 application where i am sending an email to user and if user replies that email then that reply content, date should be updated to the database. For this i have ProductComment model. when admin sends comment to the user…
2
votes
0 answers

Receive emails from multiple accounts using mailman gem in rails 4

I want to access multiple accounts using mailman gem in rails. Is there a way to open multiple accounts in a single process of mailman in rails 4?
2
votes
0 answers

What are general best practices for deploying mailman so it can run unattended?

I get mail with gem mailman but after working for a while it either hangs or dies. I have it running in the loop already because of periodical connection error: begin Mailman::Application.run rescue IOError retry end But this is not enough,…
firedev
  • 20,898
  • 20
  • 64
  • 94
2
votes
2 answers

Mailman saves Mails multiple times

I've got the mailman gem integrated into my rails project. It fetches emails from gmail successfully. In my app there is a model Message for my emails. The emails are properly saved as Message model. The problem is that the emails are saved multiple…
coderuby
  • 1,188
  • 1
  • 11
  • 26
2
votes
2 answers

Receiving and Processing Email: Heroku, Sendgrid, and possibly Mailman

My app creates a unique email for each user, and users send email to that address for processing. Using Sendgrid, I've piped incoming emails to my domain (hosted on Heroku) to an address: site.com/receive_email I use the TO field to determine the…
Steve
  • 592
  • 9
  • 24
2
votes
0 answers

Daemonizing Mailman app

Starting my mailman app by running rails runner lib/daemons/mailman_server.rb works fine. When starting with my daemon script and command bundle exec rails runner script/daemon run mailman_server.rb, the script generates an…
w2bro
  • 1,016
  • 1
  • 11
  • 36
2
votes
1 answer

Receive emails from multiple accounts using mailman gem in rails

Is there a way to receive email from multiple accounts in mailman gem? Here is my mailman_server.rb which processes mail from a single account require "rubygems" require "mailman" Mailman.config.pop3 = { server: 'pop.gmail.com', port: 995, ssl:…
aash
  • 1,323
  • 1
  • 14
  • 22
2
votes
1 answer

ruby mailman remove header from email body

I am trying to display an email body in my RoR project. class IncomingMail def initialize(message, params) if person = Person.find_by_email(message.from) changeMessage = Message.where({person_id: person.id}) #message =…
1
vote
0 answers

Manually connect to Rails DB from mailman app

I am using mailman for receiving of emails and I need to put received emails to DB. As long as mailman is a separate app, I can not use ActivRecord directly. Could you advice how manually to connect to Rails DB without ActivRecord.
amaks
  • 11
  • 1
1
vote
1 answer

Not able to deploy on digitalocean with dokku

I am trying to deploy my rails application with dokku on Digital Ocean (I have $20 plan, which has 2 CPU) with new feature i.e. mailman, which is suppose to check/retrieve mail every 5 mins. Below are the configurations I am having: Procfile web:…
Dusht
  • 4,712
  • 3
  • 18
  • 24
1
vote
0 answers

Mailman server crashes on POP3 authentication failure in Rails

I am having a problem - mailman crashes each time after POP3 authentication failure occurs. I have an exception catcher as below but this appear doesn't work: Mailman::Application.run do default do begin **Some code here** …
AlexSun.dr
  • 61
  • 1
  • 4
1
vote
1 answer

how to get subject, from and body from mailman rails

i have code like this Mailman::Application.run do to 'email@local.com' do ## how to get subject, from and body in here end end how to get subject, from and body from email in rails?
tardjo
  • 1,594
  • 5
  • 22
  • 38
1
vote
0 answers

How to make a script like e.g. 'script/mailman_server' work for multiple users in a Rails app

I have a Rails app that uses the mailman gem (link) to collect inbound pop3 mails and do stuff with them. It all works just fine, but now I wish to have multiple users sign up and receive mails from their pop3 configuration. Mailman is run in…
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
1
2