Fossil

Check-in [0a6898b0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Only show the SMTP transcript button if the transcript actually exists.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:0a6898b030444f7ea6dba36111761407c2454a2e41ef74541bb67e87e77a55e1
User & Date: drh 2018-07-17 17:14:43
Context
2018-07-17
18:32
Improved tracing capabilities for email notifications. Add the SelectAll button to the webmail display. check-in: f880aa82 user: drh tags: trunk
17:14
Only show the SMTP transcript button if the transcript actually exists. check-in: 0a6898b0 user: drh tags: trunk
16:59
Fix a typo in the on-line documentation for the "fossil smtpd" command. check-in: 032e80b5 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/webmail.c.

460
461
462
463
464
465
466
467


468
469
470
471
472
473
474
        @ <pre>%h(p->aBody[i].zContent)</pre>
      }
    }
  }
  db_finalize(&q);

  /* Optionally show the SMTP transcript */
  if( eTranscript>0 ){


    if( P("ts")==0 ){
      sqlite3_snprintf(sizeof(zENum), zENum, "%d", emailid);
      style_submenu_element("SMTP Transcript","%s",
            url_render(pUrl, "ts", "1", "id", zENum));
    }else{
      db_prepare(&q,
        "SELECT decompress(etxt) FROM emailblob WHERE emailid=%d", eTranscript







|
>
>







460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
        @ <pre>%h(p->aBody[i].zContent)</pre>
      }
    }
  }
  db_finalize(&q);

  /* Optionally show the SMTP transcript */
  if( eTranscript>0
   && db_exists("SELECT 1 FROM emailblob WHERE emailid=%d", eTranscript)
  ){
    if( P("ts")==0 ){
      sqlite3_snprintf(sizeof(zENum), zENum, "%d", emailid);
      style_submenu_element("SMTP Transcript","%s",
            url_render(pUrl, "ts", "1", "id", zENum));
    }else{
      db_prepare(&q,
        "SELECT decompress(etxt) FROM emailblob WHERE emailid=%d", eTranscript