- switch (x)
- {
- case 0:
-
- hdr->article_num = atoi (b);
- nntp_get_status (ctx, hdr, NULL, hdr->article_num);
- break;
- case 1:
- hdr->env->subject = safe_strdup (b);
- /* Now we need to do the things which would normally be done in
- * mutt_read_rfc822_header() */
- if (hdr->env->subject)
- {
- regmatch_t pmatch[1];
-
- rfc2047_decode (&hdr->env->subject);
-
- if (regexec (ReplyRegexp.rx, hdr->env->subject, 1, pmatch, 0) == 0)
- hdr->env->real_subj = hdr->env->subject + pmatch[0].rm_eo;
- else
- hdr->env->real_subj = hdr->env->subject;
- }
- break;
- case 2:
- rfc822_free_address (&hdr->env->from);
- hdr->env->from = rfc822_parse_adrlist (hdr->env->from, b);
- rfc2047_decode_adrlist (hdr->env->from);
- break;
- case 3:
- hdr->date_sent = mutt_parse_date (b, hdr);
- hdr->received = hdr->date_sent;
- break;
- case 4:
- FREE (&hdr->env->message_id);
- hdr->env->message_id = safe_strdup (b);
- break;
- case 5:
- mutt_free_list (&hdr->env->references);
- hdr->env->references = mutt_parse_references (b, 0);
- break;
- case 6:
- hdr->content->length = atoi (b);
- break;
- case 7:
- hdr->lines = atoi (b);
- break;
- case 8:
- if (!hdr->read)
- FREE (&hdr->env->xref);
- b = b + 6; /* skips the "Xref: " */
- hdr->env->xref = safe_strdup (b);
- nntp_parse_xref (ctx, nntp_data->group, b, hdr);
+ switch (x) {
+ case 0:
+
+ hdr->article_num = atoi (b);
+ nntp_get_status (ctx, hdr, NULL, hdr->article_num);
+ break;
+ case 1:
+ hdr->env->subject = safe_strdup (b);
+ /* Now we need to do the things which would normally be done in
+ * mutt_read_rfc822_header() */
+ if (hdr->env->subject) {
+ regmatch_t pmatch[1];
+
+ rfc2047_decode (&hdr->env->subject);
+
+ if (regexec (ReplyRegexp.rx, hdr->env->subject, 1, pmatch, 0) == 0)
+ hdr->env->real_subj = hdr->env->subject + pmatch[0].rm_eo;
+ else
+ hdr->env->real_subj = hdr->env->subject;
+ }
+ break;
+ case 2:
+ rfc822_free_address (&hdr->env->from);
+ hdr->env->from = rfc822_parse_adrlist (hdr->env->from, b);
+ rfc2047_decode_adrlist (hdr->env->from);
+ break;
+ case 3:
+ hdr->date_sent = mutt_parse_date (b, hdr);
+ hdr->received = hdr->date_sent;
+ break;
+ case 4:
+ FREE (&hdr->env->message_id);
+ hdr->env->message_id = safe_strdup (b);
+ break;
+ case 5:
+ mutt_free_list (&hdr->env->references);
+ hdr->env->references = mutt_parse_references (b, 0);
+ break;
+ case 6:
+ hdr->content->length = atoi (b);
+ break;
+ case 7:
+ hdr->lines = atoi (b);
+ break;
+ case 8:
+ if (!hdr->read)
+ FREE (&hdr->env->xref);
+ b = b + 6; /* skips the "Xref: " */
+ hdr->env->xref = safe_strdup (b);
+ nntp_parse_xref (ctx, nntp_data->group, b, hdr);