[LON-CAPA-users] environment.notification
lon-capa-users@mail.lon-capa.org
lon-capa-users@mail.lon-capa.org
Mon, 8 Sep 2008 09:11:59 -0400
<div>Very helpful response - nice documentation of the possible variables. =
Interesting that the student might have critnotification instead of notific=
ation set; I need to check that.<br><br>As I looked at my code, I was actua=
lly doing the &EXT call correctly; a subsequent line of code (misuse of=
the perl =3D=3D instead of eq) was causing my problem:( Massive emba=
rrassment...<br><br>Thanks,<br>brew<br></div><font color=3D"#990099">-----l=
on-capa-users-admin@mail.lon-capa.org wrote: -----<br><br></font><blockquot=
e style=3D"border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding=
-left: 5px; margin-left: 5px; margin-right: 0px;">To: lon-capa-users@mail.l=
on-capa.org<br>From: Stuart Raeburn <raeburn@msu.edu><br>Sent by: lon=
-capa-users-admin@mail.lon-capa.org<br>Date: 09/07/2008 11:42PM<br>Subject:=
[LON-CAPA-users] environment.notification<br><br><font face=3D"monospace" =
size=3D"3">Brew,<br><br>&EXT('environment.notification') is the correct=
invocation to echo the <br>LON-CAPA message notification e-mail addr=
ess of the user. Other items <br>from a user's environment will=
similarly use <br>EXT("environment.$itemname"), replacing $itemname =
with the appropriate <br>variable to be displayed.<br><br>There are t=
wo items of user information which use the form: <br>&EXT("user.$=
itemname"):<br><br>(a) &EXT('user.name') echoes the username of the cur=
rent user.<br>(b) &EXT{'user.domain') echoes the domain of the current =
user.<br><br>Note: in LON-CAPA, there are three different e-mail addresses =
stored <br>in a user's environment.db. These are: notification,=
critnotification <br>and permanentemail.<br><br>The first two are se=
t by the user - via:<br>Main Menu -> Set my user preferences -> "Chan=
ge Message Forwarding and <br>Notification Email Addresses"<br><br>Th=
e third is set/modified by a Domain Coordinator, and also may be <br>=
set/modified by a Course Coordinator, depending on the domain <br>con=
figuration. A regular user is not able to modify the value of <=
br>permanentemail stored in environment.db.<br><br>I have created a survey =
question which echoes the user's information. <br>Log-in to LON-CAPA,=
select a role which permits browsing of the <br>repository of publis=
hed content, and point at:<br><br>/res/msu/raeburn/examples/userinfo=5Ffrom=
=5Fext.survey<br><br>This item has been published open source.<br><br>Stuar=
t Raeburn<br>MSU LON-CAPA group<br><br>> In the old word document showin=
g useful things you can do with &EXT <br>> it lists the comman=
d<br>><br>> &EXT ("environment.notification")<br>><br>> as =
returning the user's email address. It doesn't seem to be working for me,<b=
r>> so I wonder if anyone else has used this? Is there a different  =
;<br>> invocation? It seems like it would be something like<br>><br>&=
gt; &EXT("user.notification")<br>><br>> but I have tried a few th=
ings and not gotten anything work.<br>><br>> Thanks,<br>> brew<br>=
><br><br><br>=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F<br>LON-CAPA-users mailing list<br>LON-CAPA-users@mail.lon-capa.or=
g<br><a href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">h=
ttp://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br></font></blo=
ckquote><br><BR>