Asp.net源码专业站
首页->尚未分类->BugTrack免安装英文原版2.4.8>>btnet_service.exe.config>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:BugTrack免安装英文原版2.4.8
当前文件:文件类型 XTXHGRGZAXU57/btnet_service.exe.config[5K,2009-6-12 12:00:16]打开代码结构图
普通视图
		            
1<!-- 2 Used by btnet_service.exe and btnet_console.exe. These fetch messages 3 from a pop3 server and stuff them into the database as bugs. Go to admin, 4 projects, and enter a pop3 username and password for each project that you 5 are interested in. One email account per project. Don't forget to check 6 the "enabled" checkbox. Then make sure these settings are ok. 7 8 btnet_console.exe is easier to use for getting things up and running. It 9 writes lots of little debugging error messages. After that's working, install 10 and use btnet_service.exe instead. You'll probably also want to change 11 the "DeleteMessagesOnServer" setting from "0" to "1". 12 13 btnet_service.exe expects this file to be located at this path only: 14 c:\btnet_service.exe.config. 15 16 For btnet_console.exe, you pass the path to this file as a command line 17 argument. 18 19 You can have multiple <Website> elements in this file so that one instance 20 of btnet_service can serve multiple websites. Just make another copy of 21 the Website section and change your desired sections. You'll almost certainly 22 want the "InsertBugUrl" and "ConnectionString" settings to be different for 23 a different website. 24 25 If you are migrating from an older version of btnet_service that did not support 26 multiple Website elements, just do the following: 27 28 1) Change "pop3Settings" to "Website". 29 2) Copy your ConnectionString so that it is somewhere WITHIN the Website section. 30 3) Create a GlobalSettings section and put your FetchIntervalInMinutes into it. 31 32--> 33 34<configuration> 35 36 <configSections> 37 <section 38 name="btnetSettings" 39 type="System.Configuration.NameValueFileSectionHandler,System, Version=1.0.3300.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 40 </configSections> 41 42 <btnetSettings> 43 44 <GlobalSettings> 45 <add key="LogFileFolder" value="c:\temp"/> 46 <add key="LogEnabled" value="1"/> 47 <!-- 48 How frequently should btnet_console.exe or btnet_service.exe check the server for emails? 49 --> 50 <add key="FetchIntervalInMinutes" value="15"/> 51 <!-- 52 How many errors should we allow before the fetch loop automatically 53 stops? This is a safeguard in case there is some sort of problem with 54 the web server where insert_bug.aspx does succeed in inserting the bug, 55 but somehow fails to give a good response to this service. 56 57 If the service doesn't get a good response, it will not delete the email 58 from the pop3 server and will try to insert the email again when the 59 fetch interval triggers another loop. The result can be a lot of 60 duplicate bugs generated from the one problem email. This has 61 happened to a couple people.... 62.. --> 63 <add key="TotalErrorsAllowed" value="100"/> 64 65 66 <!-- 67 68 Are you Swedish? 69 70 Turning this on changes how the service reads its input. If you are 71 finding that special characters have been mysteriously stripped out 72 of the incoming emails, set this to "1" and see if it helps. 73 --> 74 <add key="ReadInputStreamCharByChar" value="0"/> 75 76 77 78 </GlobalSettings> 79 80 81 <Website> 82 83 <!-- 84 This is the setting that btnet_console.exe or btnet_service.exe uses to post the bugs. 85 --> 86 <add key="InsertBugUrl" value="http://127.0.0.1/btnet/insert_bug.aspx"/> 87 88 <!-- 89 This should be the same as Web.config's setting ConnectionString. 90 --> 91 <add 92 key="ConnectionString" 93 value="server=(local);database=btnet;user id=sa;password=;Trusted_Connection=no" 94 /> 95 96 <!-- 97 Replace my server with YOUR server. 98 --> 99 <add key="Pop3Server" value="pop.sbcglobal.yahoo.com"/> 100 101 <!-- 102 BugTracker.NET username, password that btnet_server.exe will use 103 to talk to BugTracker.NET. These are not the username/password 104 for the pop3 server itself - those come from the project rec in 105 the projects table. 106 --> 107 <add key="ServiceUsername" value="email"/> 108 <add key="ServicePassword" value="x"/> 109 110 <!-- 111 Only retrieve messages if their subject contains the magic string below. 112 If the value is blank, then btnet_pop3.exe will retrieve all messages. 113 Probably for your production, the value should be blank. 114 --> 115 <add key="SubjectMustContain" value=""/> 116 117 <!-- 118 Skip message if the subject contains the magic string below. 119 --> 120 <add key="SubjectCannotContain" value=""/> 121 122 123 <!-- 124 For my own testing, it was useful to have this option. 125 For production the value should be 1. 126 --> 127 <add key="DeleteMessagesOnServer" value="0"/> 128 129 <!-- 130 For diagnosing problems, dump the message text to a file 131 --> 132 133 <!-- 134 <add key="MessageOutputFile" value="c:\temp\btnet_test_messages_out.txt"/> 135 --> 136 137 <!-- 138 For testing, read the message text from a file rather than from 139 a POP3Server. 140 141 Seperate multiple messages in the file with a line like this: 142 Q6Q6 143 144 Maximum of 100 test messages. 145 --> 146 <!-- 147 <add key="MessageInputFile" value="c:\temp\btnet_test_messages_in.txt"/> 148 --> 149 150 <!-- 151 Customize the text that appears in the subject of emails that allows 152 us to related incoming emails to the bugids they refer to. We parse 153 these words in the subject to get the bugid. 154 This MUST be the same as Web.config's setting "TrackingIdString". 155 --> 156 <!-- 157 <add key="TrackingIdString" value="DO NOT EDIT THIS:"> 158 --> 159 160 </Website> 161 </btnetSettings> 162 163</configuration> 164
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:BugTrack免安装英文原版2.4.8
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146