squirrel mail address book
HI to all this is Kishore, I am using RHEL 5.1 and sendmail 8...., squirrel mail 1.4.8-4.el5.
I want to import address from gmail, yahoo..... but the squirrel mail address book had 5 fields 1. NICK NAME, 2. E-MAIL ADDRESS, 3.FIRST NAME, 4. LAST NAME, 5. ADDITIONAL INFO. now I don't want all this stuff I only want one entry E-mail address how to modify this, I don't want the other 4 fields. What and how I must implement this.. can any one help me. Thanks and regards kishore kumar. |
The address book format should remain the same else squirrel mail will not read it and will pop up an error.I hope you have access to the your user's data directory. There will be a file by the name of username.abook. Just create entries in this format,
|kishore@mail.com|||| Regards, -- Prasanta |
Quote:
|||kishore@mail.com| is there any command to mix two files where file1 will be ||| ||| ||| and file2 will be kishore@gmail.com kishore@yahoo.com kishore@in.com and finally the out put must be |||kishore@gmail.com |||kishore@yahoo.com |||kishore@in.com so I will be waiting for your reply........... |
Did you check whether the above structure is working or not with your squirrel mail. Please create an address book entry from the webmail and check the structure. I am not sure how to merge both the files with identical columns. In my case I would have just replaced the `file2` with those blank spaces.
In file2, kishore@gmail.com kishore@yahoo.com kishore@in.com Just use any editor and replace `\n` with `||||\n|` Regards, -- Prasanta |
Quote:
awk command.............. |
Quote:
awk '{print "| | |",$1}' /var/lib/squirrelmail/prefs/filename this will show you the out put and awk '{print "| | |",$1}' /var/lib/squirrelmail/prefs/filename > newfile this will mix the file with | | | and i got my issue fixed .... |
That's great. Please mark the thread as solved.
Regards, -- Prasanta |
All times are GMT -5. The time now is 09:37 AM. |