LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2016, 01:41 PM   #1
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Rep: Reputation: Disabled
retrieving user email


Hello friends, please help to figure how to retrieve user's email using userid - thanks!

Also, if you can suggests good Linux book for commands
 
Old 11-04-2016, 06:09 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 2,089
Blog Entries: 3

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
There are a lot of programs to use for retrieving mail. The first one that springs to my mind is Thunderbird. Can you go into a little more detail of the approach you intend?

If you want a book about the shell and the programs you can maybe start with The Linux Command Line. It's available as a free-of-charge e-book or can be purchased from your local book store. In the beginning it might be easier to buy the paper edition and use it along side your computer. If nothing else, then you are voting with your wallet that you want more such books.

About all the other "commands" on your computer, they are just programs that you have on your system, either pre-installed by your distro or added after installation by you yourself. For example, even "ls" is just a program on the system. You can string several programs together with a pipe to get an inventory of what is on your system.

Code:
apropos -w '*' | awk '$2 == "(1)" || $2== "(8)"' | sort -u | more
Then interesting ones can be explored with "man"

Code:
man ls
man man

Last edited by Turbocapitalist; 11-04-2016 at 06:11 AM.
 
Old 11-04-2016, 11:38 AM   #3
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
so when I do this,
for i in <userid>; do getent passwd $i; done
I can get user's name but curious if I can get user's email as well...thank you.
 
Old 11-05-2016, 12:05 AM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 923
Blog Entries: 10

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
No. To see what it can do: man getent

Tell us about your Linux system: IF it stores mail locally, look into: ls -l /var/spool/mail

Scroll down a page, to "Mail user-agents", in: http://tille.garrels.be/training/tld...#sect_10_04_02

Here's my Thread about books, where onebuck added links: http://www.linuxquestions.org/questi....php?p=5615707

Welcome & Best wishes! (in posting questions, tell more details about what you want to accomplish)

Last edited by Jjanel; 11-05-2016 at 12:08 AM.
 
Old 11-08-2016, 05:51 PM   #5
samd_nest
LQ Newbie
 
Registered: Nov 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
i can see many user's username mentioned here at this location - /var/spool/mail
 
Old 11-09-2016, 03:26 AM   #6
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 923
Blog Entries: 10

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
Do you have 'root' privileges/access (to read them)?
Do you have any mail-reader [MUA] programs installed? man -k mail
(theoretically, IF you just wanted to view/look-at them, you can more/less/cat those files)
Please do some research/studying/experimenting and let us know. Best wishes on learning!
 
  


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
[SOLVED] evolution problem: not retrieving one particular email from imap account r.stiltskin Linux - Software 2 04-28-2011 01:31 AM
Sendmail/Dovecot Retrieving Email averd Linux - Software 0 10-20-2006 09:00 AM
Retrieving email using the command line/console wimnat Linux - General 2 01-26-2005 09:58 PM
imap problem on retrieving email htm Linux - Software 0 04-22-2004 09:29 AM
retrieving POP3 email using qmail flan Linux - Networking 8 12-08-2003 10:27 AM


All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration