r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Pekr
22-Sep-2009
[6059]
Thanks Graham - what should I do with the first run of Tortoise? 
I suppose I better don't do Check-out? Should I create a "working 
copy"? I don't remember how I did it for Rebgui, as I am long time 
issuing Update item from the context menu. I need to do first sync 
of Cheyenne now, and would not like to screw something on the server 
side :-)
Graham
22-Sep-2009
[6060x4]
You can't screw up the server .. you don't have any rights
you want to do a SVN update
doc is the only person with write access to the repo
r26 is now up fixing this error.
Pekr
22-Sep-2009
[6064x2]
I create Cheyenne local dir, and there is no SVN Update in the context 
menu. I first need to somehow create copy of the SVN. OK, there was 
Check-out in the context menu, hopefully Doc does not kill me that 
I have checked-out sources to myself, blocking others from submissions 
:-)
What does Cheyenne MTA means? (sorry for coming late to the topic) 
- does it mean I can turn-off Sendmail for e.g.? :-)
Graham
22-Sep-2009
[6066x3]
mail transport agent
well, it's not working yet ffor me ... when meeting a greylisting 
server
but otherwise it should work .
Dockimbel
22-Sep-2009
[6069]
The goal is to send sendmail to trashcan when you need to send emails 
from Cheyenne scripts or webapps.
Pekr
22-Sep-2009
[6070]
OK, but it can't replace Linux MTA generally, can it? I mean - installing 
Cheyenne with MTA can I replace the need for Sendmail for e.g. entirely?
Dockimbel
22-Sep-2009
[6071x5]
Cheyenne's MTA doesn't support yet all the SMTP features found in 
others MTA, but should be enough for general usage.
Btw, it doesn't accepting other mail clients than Cheyenne's CGI 
and RSP scripts.
It's for Cheyenne only usage. Sending email is often required in 
web applications, setting up and maintaining a third party MTA like 
sendmail is costly and complicated. Having a MTA built in Cheyenne 
will save everyone a lot of time and troubles.
Still need some work for debugging and fine-tuning as said by Graham.
If any user wants to extend its capabilities to make a complete sendmail/qmail/postfix/... 
replacement, you're welcome.
Robert
22-Sep-2009
[6076]
MTA support much appreciated.
Dockimbel
22-Sep-2009
[6077]
SVN r27

FIX: better integration of scheduler in Cheyenne's event loop.
FIX: bug fixes in deferred task (MX or SMTP retries)
Graham
22-Sep-2009
[6078x3]
In the www directory there's a demo file called email.rsp which you 
can use to test the MTA.  Change line 58 to your own from address.
This r27 is the first version that successfully attempts to resend 
a greylisted email ... so far it has retried twice to send my mail 
to google, but google keeps temp failing my mail :(  Guess my IP 
address is marked as a spam source.
Moved to a different IP adddress to test ..gmail still temp fails 
me!
Dockimbel
22-Sep-2009
[6081x2]
Does it return a 421?
Maybe the retry delay is too short (or too long)?
Graham
22-Sep-2009
[6083]
Yes... 421 I think 15 mins is too long for the retry ...i would think 
5mins is better.
Graham
24-Sep-2009
[6084x4]
I finally got gmail to accept mail from cheyenne.  I changed the 
from address in emai..rsp to one that matched the sending domain, 
and changed the greylisting delay retry period to 5 mins from 15 
mins.  It went thru after the 2nd attempt.
email.rsp
So, this could be an issue for a server with no mx record
of course applies to any MTA .. just not to cheyenne's.
Dockimbel
24-Sep-2009
[6088x5]
I should add a From: field in %email.rsp. I'll set the retry delay 
to 5 mn also.
I was relying on info from http://en.wikipedia.org/wiki/Greylisting
about other MTA default delay :


Most open-source MTAs have retry rules set to attempt delivery after 
around fifteen minutes (Sendmail default is 0, 15, ..., Exim default 
is 0, 15, ..., Postfix default is 0, 16.6, ..., Qmail default is 
0, 6:40, 26:40, ..., Courier default is 0, 5, 10, 15, 30, 35, 40, 
70, 75, 80,...). Microsoft Exchange defaults to 0, 1, 2, 22, 42, 
62 ...
I thought also to make increasing delay (instead of static) like 
Qmail or Exchange, but can't find any info online about the efficiency 
of this method. Any expert advice welcome.
Btw, if you're a Cheyenne user, that would be nice is you could tell 
it to ohloh.net here : http://www.ohloh.net/p/cheyenne-server
Ohloh seems to become trendy, not sure if it's a good thing or not, 
anyway Cheyenne is listed there so...
Graham
24-Sep-2009
[6093x2]
Across all R projects on Ohloh, 6.1% of all source code lines are 
comments. For cheyenne-server, this figure is only 0.4%. 
how many R projects are on Ohloh??
Dockimbel
24-Sep-2009
[6095x2]
REBOL is not recognized by Ohloh's parser. It thinks that it's coded 
with R (statistical analysis language), so stats related to code 
are wrong.
Their parser is open-sourced : http://sourceforge.net/apps/trac/ohcount/

Anyone interested in adding REBOL support? (requires knowing/learning 
Ruby)
Graham
24-Sep-2009
[6097]
There are a couple of projects by Volker referenced there .. but 
I didn't see any source code.
Dockimbel
24-Sep-2009
[6098]
Ohloh is crawling in Google Code's and probably Sourceforge's repositories. 
Volker has a few projects in Sourceforge.
Graham
24-Sep-2009
[6099x3]
There's no REBOL in the drop down list of programming languages :(
You have to sign up, confirm your email, and then confirm your email 
subscriptions before you can add cheyenne-server!
Ok, cheyenne-server is now up to 2 users!
amacleod
24-Sep-2009
[6102x2]
I'm need to get the name I assigned a face when I alt-click on it. 
I can get its style, offset, size etc but I do not see a way to get 
the face's name. More specificly I have multiple scroll-panels and 
I need to know the one I'm clicking in...
Sorry wrong group
Graham
24-Sep-2009
[6104x5]
I want to be able to use cheyenne's MTA from Rebol.
in email.rsp, modify the lines at 43 to this

	if block? file: param/file [
		file/1: to-file file/1
		if file/2 [
			attempt [
				file/2: to-file file/2
			]
		]
And this works ...


myname: "Graham Chiu"
myemail: [gchiu-:-compkarori-:-com]
toemail: [dontspamme-:-gmail-:-com]
subject: "testing Cheyenne"
msg: "Yes, this i a message"
file: "encap-paths.r"
path-to-file: %/c/chesvn/Cheyenne/encap-paths.r



result: read/custom http://localhost:7900/email.rsp reduce compose/deep 
[ 'POST
	rejoin [
	"from=" (myname)
	"&from=" (myemail)
	"&to=" (toemail)
	"&subject=" (subject)
	"&msg=" (msg)
	"&file=" (file)
	"&file=" (path-to-file)
	]
]
use whatever port your Cheyenne is running on
because I use duplicate cgi names .. ie. from and file, they are 
turned into a block when processed