@@ -257,6 +257,7 @@ void fprint_menu0(FILE *fp, struct emailinfo *email, int pos)
257
257
int num = email -> msgnum ;
258
258
int loc_cmp = (pos == PAGE_BOTTOM ? 3 : 4 );
259
259
char * ptr ;
260
+ char * id = (pos == PAGE_TOP ) ? "option2" : "option3" ;
260
261
261
262
#ifdef HAVE_ICONV
262
263
int tmplen ;
@@ -271,8 +272,8 @@ void fprint_menu0(FILE *fp, struct emailinfo *email, int pos)
271
272
272
273
273
274
if (set_mailcommand && set_hmail ) {
274
- fprintf (fp , "<li><a name=\"options2 \" id=\"options2 \"></a><dfn>%s</dfn>:" ,
275
- lang [MSG_MAIL_ACTIONS ]);
275
+ fprintf (fp , "<li><a name=\"%s \" id=\"%s \"></a><dfn>%s</dfn>:" ,
276
+ id , id , lang [MSG_MAIL_ACTIONS ]);
276
277
if ((email -> msgid && email -> msgid [0 ]) || (email -> subject && email -> subject [0 ])) {
277
278
#ifdef HAVE_ICONV
278
279
ptr = makemailcommand (set_replymsg_command , set_hmail , email -> msgid , tmpptr );
@@ -298,7 +299,7 @@ void fprint_menu0(FILE *fp, struct emailinfo *email, int pos)
298
299
fprintf (fp , "<li>" );
299
300
/* add the anchor if we didn't do so in the above block */
300
301
if (!(set_mailcommand && set_hmail ))
301
- fprintf (fp , "<a name=\"options2 \" id=\"options2 \"></a>" );
302
+ fprintf (fp , "<a name=\"%s \" id=\"%s \"></a>" , id , id );
302
303
fprintf (fp , "<dfn>%s</dfn>:" , lang [MSG_CONTEMPORARY_MSGS_SORTED ]);
303
304
if (show_index [dlev ][DATE_INDEX ])
304
305
fprintf (fp , " [ <a href=\"%s#%d\" title=\"%s\">%s</a> ]" ,
@@ -316,19 +317,22 @@ void fprint_menu0(FILE *fp, struct emailinfo *email, int pos)
316
317
fprintf (fp , " [ <a href=\"%s#%d\" title=\"%s\">%s</a> ]" ,
317
318
index_name [dlev ][AUTHOR_INDEX ], num ,
318
319
lang [MSG_LTITLE_BY_AUTHOR ], lang [MSG_BY_AUTHOR ]);
319
- if (show_index [dlev ][ATTACHMENT_INDEX ]) {
320
+ if (show_index [dlev ][ATTACHMENT_INDEX ])
320
321
fprintf (fp , " [ <a href=\"%s\" title=\"%s\">%s</a> ]" ,
321
322
index_name [dlev ][ATTACHMENT_INDEX ],
322
323
lang [MSG_LTITLE_BY_ATTACHMENT ], lang [MSG_BY_ATTACHMENT ]);
323
- fprintf (fp , "</li>\n" );
324
- if (ihtmlhelpupfile )
325
- fprintf (fp , "<li><dfn>%s</dfn>: %s</li>" , lang [MSG_HELP ], ihtmlhelpupfile );
326
- }
324
+ fprintf (fp , "</li>\n" );
325
+ if (ihtmlhelpupfile )
326
+ fprintf (fp , "<li><dfn>%s</dfn>: %s</li>" , lang [MSG_HELP ], ihtmlhelpupfile );
327
327
}
328
328
329
329
if (set_custom_archives && * set_custom_archives )
330
330
fprintf (fp , "<li><dfn>%s</dfn>: %s</li>\n" , lang [MSG_OTHER_MAIL_ARCHIVES ], set_custom_archives );
331
- fprintf (fp ,"</ul>\n" );
331
+
332
+ if (!(set_show_msg_links && set_show_msg_links != loc_cmp )
333
+ || (set_show_index_links && set_show_index_links != loc_cmp )){
334
+ fprintf (fp ,"</ul>\n" );
335
+ }
332
336
#ifdef HAVE_ICONV
333
337
if (tmpptr )
334
338
free (tmpptr );
@@ -1096,7 +1100,7 @@ void printheaders (FILE *fp, struct emailinfo *email)
1096
1100
d_index = MSG_EXPIRED ;
1097
1101
if (email -> is_deleted == 4 || email -> is_deleted == 8 )
1098
1102
d_index = MSG_FILTERED_OUT ;
1099
- fprintf (fp , "<a name=\"start%d\" accesskey=\"j\" id=\"start\"></a>" , email -> msgnum );
1103
+ fprintf (fp , "<a name=\"start%d\" accesskey=\"j\" id=\"start%d \"></a>" , email -> msgnum , email -> msgnum );
1100
1104
fprintf (fp , "<p>%s</p>\n" , lang [d_index ]); /* AUDIT biege: No more warnings about format-bug */
1101
1105
return ;
1102
1106
}
@@ -1199,14 +1203,14 @@ void printbody(FILE *fp, struct emailinfo *email, int maybe_reply, int is_reply)
1199
1203
d_index = MSG_EXPIRED ;
1200
1204
if (email -> is_deleted == 4 || email -> is_deleted == 8 )
1201
1205
d_index = MSG_FILTERED_OUT ;
1202
- fprintf (fp , "<a name=\"start%d\" accesskey=\"j\" id=\"start\"></a>" , email -> msgnum );
1206
+ fprintf (fp , "<a name=\"start%d\" accesskey=\"j\" id=\"start%d \"></a>" , email -> msgnum , email -> msgnum );
1203
1207
fprintf (fp , "<p>%s</p>\n" , lang [d_index ]); /* AUDIT biege: No more warnings about format-bug */
1204
1208
return ;
1205
1209
}
1206
1210
1207
1211
if (!set_showhtml ) {
1208
1212
fprintf (fp , "<pre id=\"body\">\n" );
1209
- fprintf (fp , "<a name=\"start%d\" accesskey=\"j\" id=\"start\"></a>" , email -> msgnum );
1213
+ fprintf (fp , "<a name=\"start%d\" accesskey=\"j\" id=\"start%d \"></a>" , email -> msgnum , email -> msgnum );
1210
1214
pre = TRUE;
1211
1215
}
1212
1216
0 commit comments