LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-21-2003, 05:10 AM   #1
priyesh
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
formail with procmail


I 'm using procmailrc to filter messages

I want to get the from address to a variable say FROM how can I do that?

I tried like this...
.FROM=`formail -xFrom:`

but I 'm getting the first part say name but not the full e-mail id.

for eg: if "Priyesh" <priyesh@britekindia.com> is the from address, I 'm getting "Priyesh" but not the later part...

How to solve this issue?

Priyesh
 
Old 10-22-2003, 07:28 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Try FROM=$(formail -rtzx To:), it should be the email address from the $(formail -zX From:) line.
 
Old 10-22-2003, 11:01 PM   #3
priyesh
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanx

Thanx for the reply...

I tried and sucseeded

Priyesh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
formail fails on virtual user [qmail,vpopmail,procmail,formail] jonavogt Linux - Networking 2 01-15-2009 09:29 AM
procmail formail anonymous re-mailer for my very expensive two-way pager? jgilels Linux - Software 11 07-04-2003 09:44 AM
Procmail and formail aBl_tR3kr Linux - Software 1 03-26-2003 10:15 AM
procmail and formail aBl_tR3kr Linux - Networking 1 03-26-2003 10:02 AM
procmail and formail aBl_tR3kr Linux - Newbie 0 03-26-2003 09:41 AM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration