LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-15-2009, 12:22 PM   #1
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Rep: Reputation: 15
Thumbs up 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.

Last edited by kishorerhce508; 09-15-2009 at 12:23 PM.
 
Old 09-16-2009, 01:32 PM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
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
 
Old 09-16-2009, 02:59 PM   #3
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by prasanta View Post
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
Hi Prasanta thanks for your fast response and I am creating entries as

|||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...........
 
Old 09-16-2009, 11:43 PM   #4
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
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
 
Old 09-17-2009, 04:19 PM   #5
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by prasanta View Post
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
Thanks for your suggestions. Finally i fixed my issue with

awk command..............
 
Old 09-17-2009, 04:22 PM   #6
kishorerhce508
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kishorerhce508 View Post
Thanks for your suggestions. Finally i fixed my issue with

awk command..............

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 ....
 
Old 09-17-2009, 11:30 PM   #7
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
That's great. Please mark the thread as solved.

Regards,

--
Prasanta
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM
thunderbird + importing mail , settings and address book aeby Linux - Server 2 08-30-2007 02:07 AM
Importing mail,address book to new FC6 install. mickeyboa Fedora 0 10-30-2006 08:07 AM
Any way to pull eudora address book into mozilla mail? kkempter Linux - Software 0 05-23-2003 08:45 PM
mail server w/ global address book stroh78 Linux - General 1 07-07-2001 04:01 PM


All times are GMT -5. The time now is 06:16 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