Index: calais.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/opencalais/Attic/calais.admin.inc,v
retrieving revision 1.1.2.8.2.5
diff -u -p -r1.1.2.8.2.5 calais.admin.inc
--- calais.admin.inc	7 Dec 2009 08:35:43 -0000	1.1.2.8.2.5
+++ calais.admin.inc	18 Feb 2010 14:04:58 -0000
@@ -199,7 +199,15 @@ function _calais_build_semanticproxy_con
     '#options' => $spfields,
     '#default_value' => variable_get("calais_semanticproxy_field_{$key}", ''),
     '#description' => t('SemanticProxy submits the content of a URL to Calais for processing. You would use this if your content type is a node that has a short blurb/summary with the full content living on another site. This will ask SemanticProxy to get the contents of that URL and submit it to Calais for you. This field must contain a URL.'),
-  );  
+  );
+  $form[$key]['semanticproxy']["calais_semanticproxy_body_limit_{$key}"] = array(
+    '#type' => 'textfield',
+    '#title' => t('Body length limit'),
+    '#description' => t('Disables sending the node to the Semantic Proxy if the node body is longer than the configured limit.'),
+    '#default_value' => variable_get("calais_semanticproxy_body_limit_{$key}", 0),
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+  );
   $form[$key]['semanticproxy']["calais_semanticproxy_document_{$key}"] = array(
     '#type' => 'select',
     '#title' => t('Field to save document text'),
Index: calais.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/opencalais/calais.module,v
retrieving revision 1.3.2.16.2.22.2.11
diff -u -p -r1.3.2.16.2.22.2.11 calais.module
--- calais.module	7 Dec 2009 08:33:20 -0000	1.3.2.16.2.22.2.11
+++ calais.module	18 Feb 2010 14:04:58 -0000
@@ -773,7 +773,12 @@ function calais_remove_rdf($node) {
 function _calais_use_semanticproxy($node) {
   $key = drupal_strtolower($node->type);
   $spfield = variable_get("calais_semanticproxy_field_{$key}", '');
-  return !empty($spfield);
+  $body_limit = variable_get("calais_semanticproxy_body_limit_{$key}", 0);
+  $body = TRUE;
+  if ($body_limit != 0) {
+    $body = drupal_strlen($node->body) > $body_limit;
+  }
+  return !empty($spfield) && $body
 }
 
 /**
