Mailing List Archive

Qmail and fingerd
Is there a way to make fingerd look in $HOME/Mailbox when someone fingers
your account, instead of /var/spool/mail/$USER? I couldn't find it
anywhere in the source for fingerd... I'm assuming it's probably calling
some external function somewhere. Any thoughts? Thanks. :)

**********************************************************************
* Bryce Newall * IRC: Data * Email: data@dal.net *
* WWW: http://voyager.abac.com/data * IRC Admin, voyager.dal.net *
* --== Try DALnet! Server irc.dal.net, port 7000 ==-- *
* "Stop smirking, Number 1." -- J.L. Picard *
* "I'm a doctor, not a doorstop!" -- EMH Program, ST:FC *
**********************************************************************
Re: Qmail and fingerd [ In reply to ]
Hi,

It's a very trivial patch in mail.c of Netkit finger.
Netkit fingerd calls finger.

Andi

At 20:06 14/02/97 -0800, Bryce Newall wrote:
>Is there a way to make fingerd look in $HOME/Mailbox when someone fingers
>your account, instead of /var/spool/mail/$USER? I couldn't find it
>anywhere in the source for fingerd... I'm assuming it's probably calling
>some external function somewhere. Any thoughts? Thanks. :)
>
>**********************************************************************
>* Bryce Newall * IRC: Data * Email: data@dal.net *
>* WWW: http://voyager.abac.com/data * IRC Admin, voyager.dal.net *
>* --== Try DALnet! Server irc.dal.net, port 7000 ==-- *
>* "Stop smirking, Number 1." -- J.L. Picard *
>* "I'm a doctor, not a doorstop!" -- EMH Program, ST:FC *
>**********************************************************************
>
>
>
,,,
(o o)
==============================oOO==(_)==OOo===============================
Andi Gutmans - Computer Science, Israel Institute of Technology (Technion)

Email: andi@vipe.technion.ac.il Web: http://andi.rifkin.technion.ac.il
andi@actcom.co.il

Beta test Thrash - the first UNIX multithreaded shell
http://staff.netvision.net.il/~bourbon/thrash

For a PGP public key finger andi@vipe.technion.ac.il

.oooO Oooo.
==============================( )==( )================================
\ ( ) /
\_) (_/
Re: Qmail and fingerd [ In reply to ]
Hi,

My memory betrayed me. It's in util.c in userinfo()

Andi

At 20:06 14/02/97 -0800, Bryce Newall wrote:
>Is there a way to make fingerd look in $HOME/Mailbox when someone fingers
>your account, instead of /var/spool/mail/$USER? I couldn't find it
>anywhere in the source for fingerd... I'm assuming it's probably calling
>some external function somewhere. Any thoughts? Thanks. :)
>
>**********************************************************************
>* Bryce Newall * IRC: Data * Email: data@dal.net *
>* WWW: http://voyager.abac.com/data * IRC Admin, voyager.dal.net *
>* --== Try DALnet! Server irc.dal.net, port 7000 ==-- *
>* "Stop smirking, Number 1." -- J.L. Picard *
>* "I'm a doctor, not a doorstop!" -- EMH Program, ST:FC *
>**********************************************************************
>
>
>
,,,
(o o)
==============================oOO==(_)==OOo===============================
Andi Gutmans - Computer Science, Israel Institute of Technology (Technion)

Email: andi@vipe.technion.ac.il Web: http://andi.rifkin.technion.ac.il
andi@actcom.co.il

Beta test Thrash - the first UNIX multithreaded shell
http://staff.netvision.net.il/~bourbon/thrash

For a PGP public key finger andi@vipe.technion.ac.il

.oooO Oooo.
==============================( )==( )================================
\ ( ) /
\_) (_/
Re: Qmail and fingerd [ In reply to ]
On Sun, 16 Feb 1997, Andi Gutmans wrote:

> My memory betrayed me. It's in util.c in userinfo()

No problem. :) However, I checked there, and it references a variable
called _PATH_MAILDIR. However, I can't find in the source any place where
that variable is defined. Any other ideas? :)

**********************************************************************
* Bryce Newall * IRC: Data * Email: data@dal.net *
* WWW: http://voyager.abac.com/data * IRC Admin, voyager.dal.net *
* --== Try DALnet! Server irc.dal.net, port 7000 ==-- *
* "Stop smirking, Number 1." -- J.L. Picard *
* "I'm a doctor, not a doorstop!" -- EMH Program, ST:FC *
**********************************************************************
Re: Qmail and fingerd [ In reply to ]
At 23:45 15/02/97 -0800, Bryce Newall wrote:
>On Sun, 16 Feb 1997, Andi Gutmans wrote:
>
>> My memory betrayed me. It's in util.c in userinfo()
>
>No problem. :) However, I checked there, and it references a variable
>called _PATH_MAILDIR. However, I can't find in the source any place where
>that variable is defined. Any other ideas? :)

My patch is:
In util.c:
- (void)sprintf(tbuf, "%s/%s", _PATH_MAILSPOOL, pw->pw_name);
+ (void)sprintf(tbuf, "%s/%s", pw->pw_dir, "Mailbox");

In lprint.c:
I changed it so that if it can't read the .qmail file (the homedir is 700)
it'll just print a nice message "Cannot determince mail information." (I
run finger as nobody not as root of course)
This is what it looks like (You might also have to change the .forward to
.qmail in one of the .h files. (I pasted more than necessary here so you'll
be able to find the place.

+ if (pn->mailrecv == -1)
+ printf("No mail.\n");
+ else if ((pn->mailrecv || pn->mailread) == 0)
+ printf("Cannot determine mail information.\n");

Andi
,,,
(o o)
==============================oOO==(_)==OOo===============================
Andi Gutmans - Computer Science, Israel Institute of Technology (Technion)

Email: andi@vipe.technion.ac.il Web: http://andi.rifkin.technion.ac.il
andi@actcom.co.il

Beta test Thrash - the first UNIX multithreaded shell
http://staff.netvision.net.il/~bourbon/thrash

For a PGP public key finger andi@vipe.technion.ac.il

.oooO Oooo.
==============================( )==( )================================
\ ( ) /
\_) (_/