Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 45 of 806  Not logged in ELOG logo
    icon2.gif   Re: Attribute and checkbox, posted by Stefan Ritt on Fri Sep 22 08:55:22 2006 
Well, what we use for such kind of check lists is the following:

Use Preset test = file.txt where file.txt contains exactly the ASCII code you mentioned, like
[ job done]  [ customer ] [ activity ] [ What should be done ]
[]            BLA          Check job1   Backup mail check
[]            BLA1         Check job2   check error report
[]            Bla2         Check job3   check MQ jobs

So one can put the "X" in the "[]" manually. I know, the individual lines are no real elog attributes, but it works nicely for some check lists. Drawback might be that a use can edit the whole text, but sometimes I find that's even a plus, since the user might add some comments.
    icon2.gif   Re: Entry Submission Help, posted by Stefan Ritt on Mon Sep 25 21:09:58 2006 

kcmin wrote:
1. When an entry is submitted is it possible to have it return to the submit page instead of a summary of the entry. In the ELog.cfg syntax on the site it mentions something about this. However It says something about a file being present in the resource directory. I am not sure what to do here.


You can hand-write a HTML file which gets displayed after submission, but that's probably not what you want. Unfortunately there is no option to go back to the submit page, so you have to click New again. If you want to enter a bulk of data, you can also do a CSV import. Maybe that's easier for you. Just write a comma-separated-value file, and import it via "CSV Import".


kcmin wrote:
2. When you submit an entry is it possible for the fields to stay set to the value that was selected on submission of the last entry. You would need to still be able to change them though.


The Duplicate command was made for that. Just select an entry which is close to your new one (might be the last one entered), and click Duplicate. This gets you to what you want.
    icon2.gif   Re: Conditional E-Mail Attributes, posted by Stefan Ritt on Tue Oct 10 08:52:50 2006 

Grant Jeffcote wrote:
My version shows V2.6.2-1699.
I noticed you have 1714, is that the latest binary or your compiled CVS release?


Try this one: http://midas/elog/download/windows/elog262-3.exe which is the most recent.
icon13.gif   Elog v2.6.2-1722 appears to have broken "Suppress default [0|1|2|3]" option on Windows XP box, posted by Gregory M. Caughey on Wed Oct 11 11:37:03 2006 
Hi Stefan!

Been running Elog-2.6.2-1714 successfully for a while and yesterday decided to download and experiment with the latest Elog-2.6.2-1722 build. I want to report a possible bug involving the "Suppress default" option when running build 2.6.2-1722 on a Windows XP laptop. I installed 2.6.2-1722 into a development folder and copied my current production 'elogd.cfg' file and other custom files to the development folder. Test postings produced the following results:

1.) The "Suppress default [0|1|2|3]" option causes the [] Suppress Email notification to display or not display as expected.

2.) However, email notifications will be sent under all circumstances regardless of which parameter selected.

3.) Downgrading to Elog-2.6.2-1714 produces the expected behavior.

I am running Windows XP with all current upgrades and security patches and Internet Explorer 7 - version: 7.0.5700.6

Regards, Greg
    icon2.gif   Re: Elog v2.6.2-1722 appears to have broken "Suppress default [0|1|2|3]" option on Windows XP box, posted by Stefan Ritt on Wed Oct 11 11:47:29 2006 

Gregory M. Caughey wrote:
2.) However, email notifications will be sent under all circumstances regardless of which parameter selected.


Thanks for reporting that problem. I just implemented Suppress email on edit and this could have had some side effect. I tried however to reproduce your problem and was not able to. Trying the "minimal" configuration file, the email notifications were suppressed if the check box was checked, or if Suppress default = 3. Can you check if it works with a minimal config file, and if yes, what option in your "full" config file causes this effect?
    icon3.gif   Re: Elog v2.6.2-1722 appears to have broken "Suppress default [0|1|2|3]" option on Windows XP box, posted by Gregory M. Caughey on Wed Oct 11 19:37:10 2006 Capture10-11-2006-5.05.21_AM.jpgCapture10-11-2006-5.06.40_AM.jpgCapture10-11-2006-5.09.34_AM.jpg

Stefan Ritt wrote:

Gregory M. Caughey wrote:
2.) However, email notifications will be sent under all circumstances regardless of which parameter selected.


Thanks for reporting that problem. I just implemented Suppress email on edit and this could have had some side effect. I tried however to reproduce your problem and was not able to. Trying the "minimal" configuration file, the email notifications were suppressed if the check box was checked, or if Suppress default = 3. Can you check if it works with a minimal config file, and if yes, what option in your "full" config file causes this effect?

OK, you're absolutely correct. When I run Elog-2.6.2-1722 with a minimal 'elogd.cfg' the "Suppress default [0|1|2|3]" flag does appear to behave as expected. Taking your advice I went through my local 'elogd.cfg' evaluating items to see where the problem starts and I found a problem. In my local config file I use conditional attributes to modify the "category" and "type" fields (in the posting form) and here is what I'm finding wrong. For this example I have set "Suppress default = 3" and the following actions take place:

1.) Select "New" to begin a post and the form displays correctly with NO "[] Suppress Email notification" checkbox showing.

2.) When selecting "Category" an choosing an appropriate menu item the form is then redrawn and now there is a problem, the "[] Suppress Email notification" checkbox is displaying. The checkbox does work correctly but the behavior I'm expecting is for no checkbox to display during the composition of this posting. Am I misunderstanding the behavior of the "Suppress default = 3" flag?

3.) Each of the other flag parameters appear to work as expected as used in the above example.

I have attached screenshots that demonstrate this behavior as well as a snippet of the 'elogd.cfg' file.

Hope this helps a little...

Thanks, Greg
icon5.gif   Error Sending Email, posted by Ibrahim Genc on Thu Oct 12 16:22:40 2006 
I've set up all e-mail configuration but I get error message after submitting a message

verbose output is as follows: every parameter I used works in outlook express.

Another question is; Can I change the port number of the smtp server? Some servers use another port than 25.

Thanks so much.
--
ibrahim

------------------------------------------------
Email ALL to genc@xxx.com.tr

timezone: -7200, offset: 10800


Email from genc@xxx.com.tr to genc@xxx.com.tr,genc@xxx.com.tr,, SMTP host
mail.xxx.com.tr:
220 mx-d.xxx.com ESMTP Postfix
EHLO neuron
250-mail-003.xxx.com
250-PIPELINING
250-SIZE 41943040
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN CRAM-MD5
250-AUTH=LOGIN PLAIN CRAM-MD5
250 8BITMIME
==== Return ================================
HTTP/1.1 302 Found
Server: ELOG HTTP 2.6.2-1722
Connection: Keep-Alive
Keep-Alive: timeout=60, max=10
Location: http://127.0.0.1:8080/PhD/4?error=Error+sending+Email+via+<i>"mail.xxx.com.tr"</i>
    icon2.gif   Re: Error Sending Email, posted by Stefan Ritt on Thu Oct 12 16:34:07 2006 

Ibrahim Genc wrote:
I get error message after submitting a message


Your verbose output seems to be only partial. I have modified the verbose output recently, so please update to a more recent version of elog. With 2.6.2-3 I get for example
Email from stefan.ritt@psi.ch to stefan.ritt@psi.ch, SMTP host xxx.psi.ch:
220 xxx.psi.ch xxxvs01 Thu, 12 Oct 2006 16:25:17 +0200
HELO xxx.psi.ch
250 xxx.psi.ch Hello [129.129.xxx.xxx]
MAIL FROM: stefan.ritt@psi.ch
250 2.1.0 stefan.ritt@psi.ch....Sender OK
RCPT TO: <stefan.ritt@psi.ch>
250 2.1.5 stefan.ritt@psi.ch
RCPT TO: <stefan.ritt@psi.ch>
250 2.1.5 stefan.ritt@psi.ch
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Date: Thu, 12 Oct 2006 16:25:17 +0200
To: "Stefan Ritt" <stefan.ritt@psi.ch>
From: Stefan Ritt <stefan.ritt@psi.ch>
User-Agent: Elog Version 2.6.2
Subject: Updated ELOG entry
X-Elog-URL: http://localhost:8080/demo/1
X-Elog-submit-type: web|elog
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

... here comes the complete email body ....

.
250 2.6.0 <xxx.psi.ch> Queued mail for delivery
QUIT
221 2.0.0 xxx.psi.ch Service closing transmission channel
==== Return ================================
HTTP/1.1 302 Found
Server: ELOG HTTP 2.6.2-1724
Connection: Keep-Alive
Keep-Alive: timeout=60, max=10
Content-Length: 20

This is of course without SMTP username. Our mail server does not support SMTP username, so I programmed this kind of "blindly".



Ibrahim Genc wrote:
Another question is; Can I change the port number of the smtp server? Some servers use another port than 25.


All server I met so far were running on port 25, so I hardcoded this in elogd.c. You can change it in the source code at line 2119:
bind_addr.sin_port = htons((short) 25);

If more people ask for this, I can make it a parameter.
ELOG V3.1.5-3fb85fa6