Find the answer to your Linux question:
Results 1 to 3 of 3
Hello. I am using Postfix as mail transport agent to filter spam messages. I am trying to log the emails in database with C++.I am using vmime library to read ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    Postfix mail format description.


    Hello.
    I am using Postfix as mail transport agent to filter spam messages. I am trying to log the emails in database with C++.I am using vmime library to read email-files and parse them. The problem is that the files from postfix are in strange format such as:

    0x8071bf8C? 2021 626 1 0T12107
    05462 492632Acreate_time=1210705462Arewrite_context=remo teSfreeman.bg@gmail.comA
    &log_client_name=el-out-1112.google.comA!log_client_address=209.85.162.179 A9log_
    message_origin=el-out-1112.google.com[209.85.162.179]A$log_helo_name=el-out-1112
    .google.comAlog_protocol_name=ESMTPA"client_name=e l-out-1112.google.comA*reverse

    I want to know how can i convert these mails to plain text like :

    From : freeman.bg@gmail.com
    To: freeman_bul@mail.bg
    Subject : Test
    ........
    and so on.

    Can anyone help me ?

    Thanks in advance.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    what type of db are you trying to store the emails in? because there may already be a solution without writing something custom
    postfix mysql - Google Search

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    2
    I know for postfix mysql support but i want to make my db implementation because this will be my project for my bachelor university degree . I am going to use postgre db to store mail info.

    Thanks in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •