* Incoming RFC822 messages get the To: field translated directly to
authorArt Cancro <ajc@citadel.org>
Thu, 4 Dec 2003 04:20:08 +0000 (04:20 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 4 Dec 2003 04:20:08 +0000 (04:20 +0000)
  a Citadel <R> field.

citadel/ChangeLog
citadel/internet_addressing.c

index 924c9c24ef1e7f6e703b9c6f9bba1571664fc28c..e87f553450d74ecead8659b3a90b2ef15c33fba7 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 612.1  2003/12/04 04:20:08  ajc
+ * Incoming RFC822 messages get the To: field translated directly to
+   a Citadel <R> field.
+
  Revision 612.0  2003/12/01 04:11:48  ajc
  * THIS IS 6.12
 
@@ -5098,3 +5102,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 2ee15507727776fc12b3c93817c50b416f1774d6..7ebb3191563932f0117f29ea31c7ca26a0629921 100644 (file)
@@ -349,6 +349,12 @@ int convert_field(struct CtdlMessage *msg, int beg, int end) {
                processed = 1;
        }
 
+       else if (!strcasecmp(key, "To")) {
+               if (msg->cm_fields['R'] == NULL)
+                       msg->cm_fields['R'] = strdoop(value);
+               processed = 1;
+       }
+
        else if (!strcasecmp(key, "Message-ID")) {
                if (msg->cm_fields['I'] != NULL) {
                        lprintf(5, "duplicate message id\n");