about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTAnchor.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-02-08 10:50:02 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-02-08 10:50:02 -0500
commit8ce6b560f4fb325be3d34266c54c70eb8668e8e1 (patch)
treed227c501d100ee0c5f1c72601d9ea5a487c1e2ca /WWW/Library/Implementation/HTAnchor.c
parent87434eaa074d789f65bac589b03df341e76e7a4e (diff)
downloadlynx-snapshots-8ce6b560f4fb325be3d34266c54c70eb8668e8e1.tar.gz
snapshot of project "lynx", label v2-8-2dev_16
Diffstat (limited to 'WWW/Library/Implementation/HTAnchor.c')
-rw-r--r--WWW/Library/Implementation/HTAnchor.c42
1 files changed, 41 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTAnchor.c b/WWW/Library/Implementation/HTAnchor.c
index 74399c91..9e3933ad 100644
--- a/WWW/Library/Implementation/HTAnchor.c
+++ b/WWW/Library/Implementation/HTAnchor.c
@@ -699,6 +699,8 @@ PUBLIC BOOL HTAnchor_delete ARGS1(
     FREE(me->content_disposition);
     FREE(me->content_location);
     FREE(me->content_md5);
+    FREE(me->message_id);
+    FREE(me->subject);
     FREE(me->date);
     FREE(me->expires);
     FREE(me->last_modified);
@@ -1060,6 +1062,44 @@ PUBLIC CONST char * HTAnchor_content_location ARGS1(
     return( me ? me->content_location : NULL);
 }
 
+/*	Message-ID, used for mail replies - kw
+*/
+PUBLIC CONST char * HTAnchor_messageID ARGS1(
+	HTParentAnchor *,	me)
+{
+    return( me ? me->message_id : NULL);
+}
+
+PUBLIC BOOL HTAnchor_setMessageID ARGS2(
+	HTParentAnchor *,	me,
+	CONST char *,		messageid)
+{
+    if (!(me && messageid && *messageid)) {
+	return FALSE;
+    }
+    StrAllocCopy(me->message_id, messageid);
+    return TRUE;
+}
+
+/*	Subject, used for mail replies - kw
+*/
+PUBLIC CONST char * HTAnchor_subject ARGS1(
+	HTParentAnchor *,	me)
+{
+    return( me ? me->subject : NULL);
+}
+
+PUBLIC BOOL HTAnchor_setSubject ARGS2(
+	HTParentAnchor *,	me,
+	CONST char *,		subject)
+{
+    if (!(me && subject && *subject)) {
+	return FALSE;
+    }
+    StrAllocCopy(me->subject, subject);
+    return TRUE;
+}
+
 /*	Link me Anchor to another given one
 **	-------------------------------------
 */
@@ -1203,7 +1243,7 @@ PUBLIC void HTAnchor_setPhysical ARGS2(
 **     text/plain
 **	from file:	HTFile.c ->  HTPlain.c		     ->  GridText.c
 **
-**  The lock/set_by is used to lock e.g., a charset set by an explicit
+**  The lock/set_by is used to lock e.g. a charset set by an explicit
 **  HTTP MIME header against overriding by a HTML META tag - the MIME
 **  header has higher priority.  Defaults (from -assume_.. options etc.)
 **  will not override charset explicitly given by server.