Hi,

i have installed postfix 2.10 from source code. we are sending mail to
postfix server with custom headers. Based on those headers, some actions
need to be taken  at mail server. For that purpose i'm customizing postfix
source code.

In cleanup process, i'm able to parse all the custom headers. but in qmgr
process i'm not able to do that. In qmgr_active.c i have used
"attr_scan0_string" function to read header data from active queue file.
After reading the header data into a string, i'm printing the string value
using msg_info function.

With this I'm able to see all the header details. But all the headers are
separated by some token, which i'm not bale to make out.

msg_info output:
=================

Received: from localhost (localhost [127.0.0.1])N=?by AHQserver.tcs.mil.in
(Postfix) with ESMTP id 63D2F631FD43N??for <co....@tcs.mil.in>; Fri, 14
Jul 2017 11:41:06 +0530 (IST)N+Date: Fri, 14 Jul 2017 11:41:06 +0530
(IST)N?From: cdr....@tcs.mil.inn?To: co....@tcs.mil.inN8Message-ID:
<83954662.0.1500012682422.JavaMail.root@AHQ>N)Subject: Greetings from
pgm.. testing altN?MIME-Version: 1.0N)Content-Type: text/html;
charset=us-asciiN?Content-Transfer-Encoding: 7bitN?precedence:
FlashN?security_level: Top SecretN


what are these junk characters in between the haeders? how can i parse the
headers?

I'm attaching my code with the mail. please take a look and let me know
where am i going wrong.

-- 
Thanks & Regards
Hyndavi rapuru
Member( Research Staff)
Central Research Laboratory
Bharat Electronics Ltd
Jalahalli
Bangalore- 560 013

Int Ph No: 134
Off Ph No: 080-28381125
Off Fax No: 28381168

कागज़ के 3000 पन्नों के लिए एक
पेड़ को काटा जाता है... पेड़
बचाएँ... पेड़ों का संरक्षण
करें... हरियाली लाएँ... इस मेल
का या इसकी किसी फाइल का
प्रिंट तब तक न लें जब तक
सचमुच ज़रूरत न हो !!!!

Every 3000 Sheets of paper costs us a tree.. Save trees... Conserve 
Trees. Don't print this email or any Files unless you really need to!!!!

Confidentiality Notice/गोपनीय सूचना

इस इलेक्ट्रॉनिक संदेश में
शामिल जानकारी और इस संदेश के
साथ दिया गया संलग्नक केवल 
प्रेषिती के अनन्य इस्तेमाल
के लिए है और इसमें गोपनीय या
विशेषाधिकार प्राप्त
जानकारी
शामिल हो सकती है । यदि आप
आशयित प्राप्तकर्ता नहीं
हैं, तो कृपया तुरंत भारत
इलेक्ट्रॉनिक्स के प्रेषक
को बताएँ
या supp...@bel.co.in पर मेल द्वारा
सूचित करें और इस संदेश की
सभी प्रतियाँ और उसके साथ लगे
संलग्नकों को नष्ट कर दें ।  The
information contained in this electronic message and any
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain confidential or privileged
information. If you are not the intended recipient, please notify
the sender at Bharat Electronics  or supp...@bel.co.in immediately and
destroy all copies of this message and any attachments.






कागज़ के 3000 पन्नों के लिए एक पेड़ को काटा जाता है... पेड़ बचाएँ... पेड़ों का 
संरक्षण करें... हरियाली लाएँ... इस मेल का या इसकी किसी फाइल का प्रिंट तब तक न 
लें जब तक सचमुच ज़रूरत न हो !!!!
 

Every 3000 Sheets of paper costs us a tree.. Save trees... Conserve 
Trees. Don't print this email or any Files unless you really need to!!!! 

Confidentiality Notice/गोपनीय सूचना 

इस इलेक्ट्रॉनिक संदेश में शामिल जानकारी और इस संदेश के साथ दिया गया संलग्नक 
केवल 
प्रेषिती के अनन्य इस्तेमाल के लिए है और इसमें गोपनीय या विशेषाधिकार प्राप्त 
जानकारी
शामिल हो सकती है । यदि आप आशयित प्राप्तकर्ता नहीं हैं, तो कृपया तुरंत भारत 
इलेक्ट्रॉनिक्स के प्रेषक को बताएँ 
या supp...@bel.co.in पर मेल द्वारा सूचित करें और इस संदेश की सभी प्रतियाँ और 
उसके साथ लगे संलग्नकों को नष्ट कर दें । 
The information contained in this electronic message and any 
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain confidential or privileged 
information. If you are not the intended recipient, please notify
the sender at Bharat Electronics  or supp...@bel.co.in immediately
and destroy all copies of this message and any attachments.

Attachment: custom_code
Description: Binary data

Reply via email to