Hi i am new to ruby on rails. I am using RMail which is ruby mail to
read the email that i fetch from. When the rmail read the email it will
insert the data inside the email to the database which i have created in
the first place. However i don’t wish to have duplicate data inside the
database and i found out that every email have it own unique message-id.
But i does not know how to validate the new email’s message-id with the
one in the database whether there is the same data inside the database.
My new email the message-id is jKqhYh15424 but there is the same
message-id inside the database and which i don’t wish to insert the new
data into the database…