$user_email variable causes problems in Use Email From setting, posted by John Habermann on Sun Feb 6 04:12:52 2005
|
I am running into problems when I try and use the
Use Email From = $user_email
setting in my individual logbook configs. I had to set this field as I set a
Use Email From = real_email_address
in my global config so that the email would be sent out by the
CommunigatePro mail server.
When I made those changes though the mail was not sent and I got the
following errors in the elog log:
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} NEW entry #0
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} Email from
john.habermann@wilderness.org.au to john.habermann@wilderness.org.au,
SMTP host localhost:
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 220
tanami.wilderness.org.au ESMTP CommuniGate Pro 4.2.8 is glad to see you!
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog}
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} HELO tanami.wilderness.org.au
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 250
tanami.wilderness.org.au your name is not tanami.wilderness.org.au
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} MAIL FROM:
john.habermann@wilderness.org.au
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 555 syntax error in MAIL
FROM parameters
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} RCPT TO:
<john.habermann@wilderness.org.au>
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 501 Unknown command
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} DATA
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 501 Unknown command
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} To:
john.habermann@wilderness.org.au
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} From:
john.habermann@wilderness.org.au
Subject: [twslog: Elog] will it work on tanami from konqueror
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} X-Mailer: Elog, Version
2.5.6-1
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} X-Elog-URL:
http://tanami.wilderness.org.au:8080/Elog/36
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} X-Elog-submit-type: web|elog
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} Date: Sun, 06 Feb 2005
13:48:34 +1100
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} Content-Type: TEXT/PLAIN;
charset=US-ASCII
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} .
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 501 Unknown command
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} QUIT
06-Feb-2005 13:48:34 [john@137.219.117.245] {Elog} 501 Unknown command
It looks like Communigate Pro doesn't like what is being put in the From as
it complains about the syntax.
I tried the same elog.conf file on my laptop which uses a qmail server as
its SMTP and the mail was sent ok but I got mailto appearing in the from
header. I saw that elog:333 reported a similar problem but this was listed
as fixed. This is the headers from a message sent by the qmail server:
X-Gmail-Received: 04395b7bf4189dd6e4c23606ee6adbd5fdcb0e53
Delivered-To: john.haberman@gmail.com
Received: by 10.54.43.19 with SMTP id q19cs16478wrq;
Sat, 5 Feb 2005 18:44:47 -0800 (PST)
Received: by 10.54.43.11 with SMTP id q11mr64342wrq;
Sat, 05 Feb 2005 18:44:47 -0800 (PST)
Return-Path: <john.habermann@wilderness.org.au>
Received: from mx-1.netregistry.net (mx-1.netregistry.net [203.202.16.27])
by mx.gmail.com with ESMTP id 33si43805wra.2005.02.05.18.44.45;
Sat, 05 Feb 2005 18:44:47 -0800 (PST)
Received-SPF: neutral (gmail.com: 203.202.16.27 is neither permitted nor
denied by best guess record for domain of
john.habermann@wilderness.org.au)
Received: from mail.ngogeeks.com ([216.17.101.59])
by mx-1.netregistry.net with esmtp (Exim 4.20 #2 (Debian))
id 1CxcPj-0003zY-Io
for <john.habermann@wilderness.org.au>; Sun, 06 Feb 2005 13:44:43 +1100
Received: (qmail 5486 invoked by uid 1021); 6 Feb 2005 00:45:04 +0000
Received: from john.habermann@wilderness.org.au by ngogeeks.com by
uid 1012 with qmail-scanner-1.22-st-qms
(clamdscan: 0.75. spamassassin: 2.20. Clear:RC:1(10.3.0.2):.
Processed in 0.363281 secs); 06 Feb 2005 00:45:04 -0000
X-Antivirus-MYDOMAIN-Mail-From: john.habermann@wilderness.org.au via
ngogeeks.com
X-Antivirus-MYDOMAIN: 1.22-st-qms (Clear:RC:1(10.3.0.2):. Processed in
0.363281 secs Process 5482)
Received: from unknown (HELO localhost) (10.3.0.2)
by mail.ngogeeks.com with SMTP; 6 Feb 2005 00:45:03 +0000
To:
john.habermann@wilderness.org.au
From: john.habermann@wilderness.org.au
Subject: [twslog: Email] test of new elog version
X-Mailer: Elog, Version 2.5.6-1
X-Elog-URL: http://localhost:8080/Email/79
X-Elog-submit-type: web|elog
Date: Sun, 06 Feb 2005 13:43:31 +1000
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Antivirus-MYDOMAIN-1.22-st-qms: added fake MIME-Version header
MIME-Version: 1.0
X-Antivirus-MYDOMAIN-Message-ID: <11076507048355482@ngogeeks.com>
Message-Id: <E1CxcPj-0003zY-Io@mx-1.netregistry.net>
X-Spam-Score: 0.3 (/)
X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/)
*1CxcPj-0003zY-Io*13Qgra0rAPA*
A new entry has been submitted on localhost
Logbook : Email
Author : John Habermann
Subject : test of new elog version
Type : Other
Todo :
Logbook URL : http://localhost:8080/Email/79
=================================
Testing |
Re: $user_email variable causes problems in Use Email From setting, posted by Stefan Ritt on Sun Feb 6 12:44:03 2005
|
> header. I saw that elog:333 reported a similar problem but this was listed
> as fixed.
Yes, this was fixed in revision 1.550 of elogd.c. You apparently have revision 1.54x
which does not yet contain the patch. You need to donwload the newest version from
CVS and compile it by hand (or wait for the next major release). |
Conditional attributes does not work in French, posted by Laurent S. Nadolski on Wed Feb 2 10:37:48 2005
|
Hi,
I am very much interested in using elog as a shift logbook for SOLEIL
accelerators.
I tested most of the options. Every thing works well except the conditional
attributs when French language is selected. In this case, I lost the
selected list option in the Field Equipement.
Here a simple exemple for testing.
NB: tests were done using the last and before last elog version.
I switched the language from English to French in Global options
Attributes = Accelerateur, Equipement
Options Accelerateur= Linac{1}, LT1{2}
{1}Options Equipement= cannon, section1
{2}ROptions Equipement= Alimentation, Diagnostics
I guess this is a simple bug since this problem does not exist for other
languages.
Best Regards,
Laurent Nadolski |
Re: Conditional attributes does not work in French, posted by Stefan Ritt on Thu Feb 3 16:48:41 2005
|
> I am very much interested in using elog as a shift logbook for SOLEIL
> accelerators.
Hey, elog made it to SOLEIL! You know, we run it here at the SLS...
> I tested most of the options. Every thing works well except the conditional
> attributs when French language is selected. In this case, I lost the
> selected list option in the Field Equipement.
There was indeed a bug which only happend when switching to French! Some
javascript code contained
confirm('Erreur: l'attribute .... ')
So the "'" in l'attribute finished the string and Javascript stopped working. I
changed the quotes to
confirm("Erreur: l'attribute .... ")
so it works now. The new version is under CVS.
- Stefan |
Finding Last Changed Entries, posted by Bee on Tue Feb 1 14:41:08 2005
|
Is there an inbuilt way to find the last entries changed in an elog?
I could add a "Last Mod" attribute and then config "Subst on edit Last Mod =
$date", but it occurred to me that this functionality might already be in
this wonderful tool somewhere, but I just haven't found it yet.
So, is it?
Best regards, Ralph. |
Re: Finding Last Changed Entries, posted by Stefan Ritt on Tue Feb 1 14:44:00 2005
|
> Is there an inbuilt way to find the last entries changed in an elog?
>
> I could add a "Last Mod" attribute and then config "Subst on edit Last Mod =
> $date", but it occurred to me that this functionality might already be in
> this wonderful tool somewhere, but I just haven't found it yet.
>
> So, is it?
No it isn't. Not everybody wants it. So you have to do it in the way you
outlined it. Also have a look at http://midas.psi.ch/elog/faq.html#11
- Stefan |
Automatic Export, posted by Tim Fowler on Thu Jan 27 19:09:55 2005
|
Is there any way to automatically export the logbook(s)? |
Re: Automatic Export, posted by Stefan Ritt on Fri Jan 28 08:33:49 2005
|
> Is there any way to automatically export the logbook(s)?
Kind of. You can use "wget" under Linux (use cygwin under Windows to get wget
under Windows). Then issue a
wget "http://midas.psi.ch/elogs/forum/?cmd=Search&mode=xml"
and you will get an XML export. Same works with CSV export. If you put that
command in cron, you have this on an automatic basis. |
Re: Automatic Export, posted by Tim Fowler on Fri Jan 28 18:04:03 2005
|
> > Is there any way to automatically export the logbook(s)?
>
> Kind of. You can use "wget" under Linux (use cygwin under Windows to get wget
> under Windows). Then issue a
>
> wget "http://midas.psi.ch/elogs/forum/?cmd=Search&mode=xml"
>
> and you will get an XML export. Same works with CSV export. If you put that
> command in cron, you have this on an automatic basis.
Thanks Stefan! That was exactly what I was looking for! |
mirroring specific logbooks, posted by John Habermann on Sun Jan 23 02:51:58 2005
|
Hi
I was just wondering if it is possible to define what logbooks you want
mirrored in the [Global] part of the elogd.conf file. I want to mirror the
logbooks that I use for work from my laptop to the work server but I have
set up other logbooks that I will use for uni and other non work projects.
I have set the mirroring up in [Global] using the cron based settings but I
am guessing that is going to try and mirror all the logbooks.
;The mirror settings
Mirror server = tanami:8080
;Mirror the contents of the elogd.conf file for individual logbooks but not
global settings
Mirror config = 1
;Mirror every hour between 07:00 and 20:00 during the week day
Mirror cron = 0 7-20 * * 1-5
Mirror user = john
I gather my personal logbooks won't sync across as I get an "error accessing
remote logbook" so that is fine but was just wondering if you can set it so
that you can define in global what logbooks you want to sync.
thank you
John |
Re: mirroring specific logbooks, posted by Stefan Ritt on Tue Jan 25 21:48:52 2005
|
> I was just wondering if it is possible to define what logbooks you want
> mirrored in the [Global] part of the elogd.conf file.
I added a new option
Mirror exclude = 1
which has to be put into the individual logbook section (not the [global] one).
The modification will be contained in the next release. |
Re: mirroring specific logbooks, posted by John Habermann on Wed Jan 26 07:40:46 2005
|
> > I was just wondering if it is possible to define what logbooks you want
> > mirrored in the [Global] part of the elogd.conf file.
>
> I added a new option
>
> Mirror exclude = 1
>
> which has to be put into the individual logbook section (not the [global] one).
> The modification will be contained in the next release.
Thank you very much Stefan. |
Find using multiple values with MOptions, posted by Neil Swartz on Sat Jan 8 16:40:04 2005
|
I have a logbook with an attribute that has a number of fixed values. I
use MOptions to prevent typos when entering and allow multiple "keywords".
When searching the users can only search on one keyword.
Is there any way to search on multiple values (AAA|BBB|CCC)? If I do not
use MOption, they can do this, but the users entering logs may mistype the
keywords. |
Re: Find using multiple values with MOptions, posted by Stefan Ritt on Mon Jan 17 16:51:35 2005
|
> I have a logbook with an attribute that has a number of fixed values. I
> use MOptions to prevent typos when entering and allow multiple "keywords".
> When searching the users can only search on one keyword.
> Is there any way to search on multiple values (AAA|BBB|CCC)? If I do not
> use MOption, they can do this, but the users entering logs may mistype the
> keywords.
Even with Moptions, you can put into the "Text:" line
(AAA|BBB|CCC)
and click on "Search text also in attributes". This is a valid regular
expression with searches for AAA or BBB or CCC. Unfortunately you still can
mistype the values. If I would add check boxes in the find page, it would not
be clear if one searches for an "AND" of several values or an "OR" (Most people
would probably think that they want an "AND" because this happens if they
restrict several attributes). |
Re: Find using multiple values with MOptions, posted by Neil Swartz on Tue Jan 18 03:37:40 2005
|
> > I have a logbook with an attribute that has a number of fixed values. I
> > use MOptions to prevent typos when entering and allow multiple "keywords".
> > When searching the users can only search on one keyword.
> > Is there any way to search on multiple values (AAA|BBB|CCC)? If I do not
> > use MOption, they can do this, but the users entering logs may mistype the
> > keywords.
>
> Even with Moptions, you can put into the "Text:" line
>
> (AAA|BBB|CCC)
>
> and click on "Search text also in attributes". This is a valid regular
> expression with searches for AAA or BBB or CCC. Unfortunately you still can
> mistype the values. If I would add check boxes in the find page, it would not
> be clear if one searches for an "AND" of several values or an "OR" (Most people
> would probably think that they want an "AND" because this happens if they
> restrict several attributes).
Yes, I can use the Text: search, but I still have the mistyping problem. (My
field values are like "ENA, ETB, HRES, etc.) -- Easy to have a typo.
Currently there is a dropdown when searching for MOption fields. Maybe you could
allow multiple selections in the dropdown. This to me is an "OR" search. |
Re: Find using multiple values with MOptions, posted by Stefan Ritt on Tue Jan 18 13:06:48 2005
|
> Currently there is a dropdown when searching for MOption fields. Maybe you could
> allow multiple selections in the dropdown. This to me is an "OR" search.
Multiple selections are not possible in HTML, only a single value can be selected at
a time. |
Re: Find using multiple values with MOptions, posted by Neil Swartz on Wed Jan 19 04:33:00 2005
|
> > Currently there is a dropdown when searching for MOption fields. Maybe you could
> > allow multiple selections in the dropdown. This to me is an "OR" search.
>
> Multiple selections are not possible in HTML, only a single value can be selected at
> a time.
Try: (From monster.com)
<SELECT NAME="lid" multiple size="5">
<OPTION VALUE=""> ------- Select all -------- </OPTION>
<OPTION VALUE="323">Alabama-Anniston</OPTION>
<OPTION VALUE="324">Alabama-Birmingham</OPTION>
<OPTION VALUE="325">Alabama-Mobile/Dothan</OPTION>
<OPTION VALUE="328">Alabama-Montgomery</OPTION>
...
</SELECT>
Although this may not be supported in all browsers. (I think recent versions of
Netscape and IE support it) |
Re: Find using multiple values with MOptions, posted by Stefan Ritt on Fri Jan 21 23:30:35 2005
|
<SELECT NAME="lid" multiple size="5">
Oh, nice, I didn't know of that. However, I prefer to have multiple options to be selected
with individual check boxes, this saves more vertical window space. So I added that
functionality to the find page. If more than one option of a MOptions attribute are
selected, they are or'ed together during the search. You can try that in this forum with
the "OS" for example. |
increasing the height of the attribute display field, posted by John Habermann on Thu Jan 20 16:32:25 2005
|
Was wondering if it was possible to increase the height that the text box
for an attribute is displayed as. I would like to construct a form for a
weekly report which consist of a couple of text area attributes. I have
found the format option and can see how you can increase the width and
number of characters but not the height. This is what is have in the config
file for the log book:
-----------------------
[Weekly Reports]
Comment = The logbook for people to enter their weekly reports
Attributes = Author,Position, Achievements_last_week, Plans for Coming Week,
Issues and Concerns, Other Items to Report
Format Achievements_last_week = 0,messageframe,attribvalue,90,1000
Show text = 0
Enable Attachments = 0
---------------------------
Basically what I would like is for the text field for 4 of the attributes to
be something like the text area for the main body. Is that possible or is a
better way to incorporate the form into the main body somehow?
Thanks for any help. Been using elog for about a month now as a logging tool
for our IT team and this is the first time i have had to ask anything thanks
to the great documentation and the example. Great job Stefan |
Re: increasing the height of the attribute display field, posted by Stefan Ritt on Thu Jan 20 17:40:33 2005
|
> Was wondering if it was possible to increase the height that the text box
> for an attribute is displayed as.
What you ask for is multi-line attributes. This is not implemented, but on the
wishlist since some time, where I added your vote.
Best regards,
Stefan |
Re: increasing the height of the attribute display field, posted by John Habermann on Thu Jan 20 23:59:19 2005
|
Sorry I didn't see the wishlist but I see what you mean. I have just found out
that pasting content that contains more than 1 line into an attribute field
crashes elog.
I have a play with the Preset text setting and see what I can come up with. By the
way there is a spelling mistake in the config.html page. In the Conditional
Attributes section you use the Preset text setting as an example but have spelt it
as "Prset text ="
Thank you for you help
John
> > Was wondering if it was possible to increase the height that the text box
> > for an attribute is displayed as.
>
> What you ask for is multi-line attributes. This is not implemented, but on the
> wishlist since some time, where I added your vote.
>
> Best regards,
>
> Stefan |
Re: increasing the height of the attribute display field, posted by Stefan Ritt on Fri Jan 21 10:43:21 2005
|
> I have a play with the Preset text setting and see what I can come up with. By the
> way there is a spelling mistake in the config.html page. In the Conditional
> Attributes section you use the Preset text setting as an example but have spelt it
> as "Prset text ="
Thanks, fixed. |
Login/Password request appears twice, posted by PJ Meyer on Mon Dec 6 20:05:58 2004
|
Have set up 3 top level groups, each with their own password file.
Ever since users have to 'login' twice to get to the appropriate elog.
You click on top level group, get to log book and click on the one you want
and get login/password dialog box, click ok and and you get it again and
then you finally get into the elog book.
Anything I can check on this behavior? |
Re: Login/Password request appears twice, posted by Stefan Ritt on Wed Jan 5 16:04:53 2005
|
> Have set up 3 top level groups, each with their own password file.
> Ever since users have to 'login' twice to get to the appropriate elog.
> You click on top level group, get to log book and click on the one you want
> and get login/password dialog box, click ok and and you get it again and
> then you finally get into the elog book.
>
> Anything I can check on this behavior?
Sorry my late reply, was very busy these days... (;-) Can you send me your
elogd.cfg so that I can see how you defined your groups?
- Stefan |
Re: Login/Password request appears twice, posted by PJ Meyer on Wed Jan 12 23:48:18 2005
|
> > Have set up 3 top level groups, each with their own password file.
> > Ever since users have to 'login' twice to get to the appropriate elog.
> > You click on top level group, get to log book and click on the one you
want
> > and get login/password dialog box, click ok and and you get it again
and
> > then you finally get into the elog book.
> >
> > Anything I can check on this behavior?
>
> Sorry my late reply, was very busy these days... (;-) Can you send me your
> elogd.cfg so that I can see how you defined your groups?
>
> - Stefan
OK elogd.cfg is attached. |
Re: Login/Password request appears twice, posted by Stefan Ritt on Mon Jan 17 21:29:32 2005
|
> OK elogd.cfg is attached.
I tried to reproduce your problem, but without success. I only have to login once.
So can you please check how your cookies are set? Under Mozilla Firefox, enable
prompting for cookies (Tools/Options/Privacy/Cookies/Keep kookies=ask me every
time, IE must have similar switch). Each cookie contains a path, for which it
will be sent to the elogd in the future. Since you have your password files in
the [global] sections, they are valid for the whole set of logbooks and the path
is therefre "/". This means of course that the browser also tries to send the
cookies to the logbooks in the other top groups, since in the URL path they are
all next to each other (like "/Work+Requests", "/Completed+Work+Requests").
With the cookie prompting enabled, you can check which cookie gets set for which
directory. You should see a cookie "unm" for username, "upwd" for the encrypted
password and "urem" for the "Remember me" button. If the cookie contents is
empty, the cookie will be removed.
So carefully check the sequence of setting and resetting of cookies, trying to
figure out what goes wrong. It is a good idea for a starting point to delete all
your cookies.
- Stefan |