Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 588 of 808  Not logged in ELOG logo
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:44:06 2007 
Ok,

I noticed that the email notification got two copies of the attached files to elog post. It looks like the cause is
between elog and the mail server. When there is email notification, the attachement is sent along to the mail server and that's taking a long time and there are two copies of the attachment.


Jacky Li wrote:
Hi,

I did more testing..if I suppress email notification, it is fast. There is something wrong there.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:00:56 2007 
Hi,


Jacky Li wrote:
Ok,

I noticed that the email notification got two copies of the attached files to elog post. It looks like the cause is
between elog and the mail server. When there is email notification, the attachement is sent along to the mail server and that's taking a long time and there are two copies of the attachment.


Jacky Li wrote:
Hi,

I did more testing..if I suppress email notification, it is fast. There is something wrong there.



Indeed I can confirm that without email notification it's blazing fast. I haven't observed attachments being send twice. Though I got two indentical entries in the elog.

On my box I'm using sendmail. Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?

Best Regards,
Konrad
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 14:06:41 2007 

Konrad Klimaszewski wrote:
Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?


There is such an option:
Email format = 47

This tells elog to send email notifications without attachments. Anyhow I would not recommend to send big attachments as emails, since most email systems won't allow you that. Since the attachments are base64 encoded, the encoding can also take quite a long time.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:15:55 2007 

Stefan Ritt wrote:

Konrad Klimaszewski wrote:
Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?


There is such an option:
Email format = 47

This tells elog to send email notifications without attachments. Anyhow I would not recommend to send big attachments as emails, since most email systems won't allow you that. Since the attachments are base64 encoded, the encoding can also take quite a long time.


Great Smile. I missed this one while digging through documentation.
Maybe you could consider setting as default:
Email format = 111

Cheers,
Konrad
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 14:20:27 2007 

Konrad Klimaszewski wrote:
Great Smile. I missed this one while digging through documentation.
Maybe you could consider setting as default:
Email format = 111


Well, then people will come up and ask: I can see some attachment name in my email, but the attachment is missing, what can I do?. So they would not find the configuration option as you did not, and complain here. You never can make everybody happy Frown

An alternative approach however would be to limit the attachment size. If above 1 MB for example, do not send it. Then make this a flexible parameter (maybe someone wants 2 MB). I will think about that.
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:34:31 2007 

Stefan Ritt wrote:

Konrad Klimaszewski wrote:
Great Smile. I missed this one while digging through documentation.
Maybe you could consider setting as default:
Email format = 111


Well, then people will come up and ask: I can see some attachment name in my email, but the attachment is missing, what can I do?. So they would not find the configuration option as you did not, and complain here. You never can make everybody happy Frown

An alternative approach however would be to limit the attachment size. If above 1 MB for example, do not send it. Then make this a flexible parameter (maybe someone wants 2 MB). I will think about that.


Of course you're right. I suggested using "111" because then in email notification there is a link to the attachment.
Which for me is enough Smile. But there always will be someone that's not happy.

Your solution is nice but then attachments will be sent in a bit inconsistent way.
Easier would be to make it more obvious in the documentation.
I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" Wink).

Best Regards,
Konrad

PS
Thanks for implementing ELCode for tables - love them Big grin
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 15:05:33 2007 

Konrad Klimaszewski wrote:
I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" Wink).


http://midas.psi.ch/elog/faq.html#18


Konrad Klimaszewski wrote:
Thanks for implementing ELCode for tables - love them Big grin


Have you tried tables in HTML form? Even better! Just switch the encoding from ELCode to HTML (starting from version 2.7.0).
    icon2.gif   Re: large attachment seems to hang elogd?, posted by Jacky Li on Tue Nov 20 22:27:03 2007 
Hi,

I put in the option:

Email Format = 111

Attachment still comes in to the notification instead of the link. I am using elog-2.7.0-1. Any ideas? Thank you.



Stefan Ritt wrote:

Konrad Klimaszewski wrote:
I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" Wink).


http://midas.psi.ch/elog/faq.html#18


Konrad Klimaszewski wrote:
Thanks for implementing ELCode for tables - love them Big grin


Have you tried tables in HTML form? Even better! Just switch the encoding from ELCode to HTML (starting from version 2.7.0).
ELOG V3.1.5-3fb85fa6