#3881 Unable to open message in queue

Jamie Cameron

In 1.530, able to view messages within the queue by selecting the message ID (opening view_mailq.cgi for the message) then the text/html link (opening qdetach.cgi for the message)

In 1.540, I can still open the message ID using mailq.cgi, but there is no link for qdetach.cgi to fully view the message contents. There is nothing in the table under "Attachment Name", and no link associated with attachment type text/html or file size.

This is no doubt an easy fix.


  • Jamie Cameron
    Jamie Cameron

    What kind of attachment does the message have? I just tested this with an email with a PNG attached, and it could be viewed in the mail queue just fine ..

  • It is a text/HTML attachment, basically the content of the message instead of just the preview. (I am too stupid to figure out how to attach a screen print, my fault, not yours) In 1.530, when you selected the message, it would have under the "Attachments" box, a mailbox icon with mail on the side and an envelope showing, with "text/html" underneath it. If you clicked on that mailbox, it would open "https://www.webminsvc.birket.com:10000/sendmail/qdetach.cgi?file=/var/spool/mqueue/hfp34KpXEs007229&attach=0", which more often or not, was html with external image source files. I don't have to open many of these (usually only if it looks like it is in Chinese, which some of my users do receive legitimately), to decide whether to delete or to flush. I use Sendmail on two boxes to filter spam going to M$ Exchange.

    Hmm, I guess I should try sending an image file with just enough spamminess to it to get trapped without being deleted outright?

    BTW: JC, you are a Saint. Webmin never ceases to amaze me in a positive way.

  • Jamie Cameron
    Jamie Cameron

    Odd, HTML attachments should still appear.

    I'd be interested to see if email with a gif or png attachment are shown OK.

    By the way, in webmin 1.540 a table is used to show attachments instead of icons.

  • Okay, I've been "playing".
    First, I edited view_mailq.cgi, and replaced "Display other attachments" code with similar code from 1.530, and it worked as it did in 1.530. Then I put the 1.540 code back in.

    Second, I edited ""<a href='qdetach.cgi?file=$qfile&attach=$a->{'idx'}$subs'>$a->{'filename'}</a>","

    I had just inserted an extra $qfile so that there would be something to anchor the link.

    ""<a href='qdetach.cgi?file=$qfile&attach=$a->{'idx'}$subs'>$a->{'filename'} $qfile</a>","

    The result was rather inelegant, BUT it did give me something to click on to view the contents of text/html.

    What I am curious about (and feel free to thump me on the nose if I am out of line) is $a->{'filename'} I, being remarkably ignernt, am not sure what it is supposed to do. I assume that it extracts filename from $a, but I do not know if $a has that to give.

    Of course Jamie, you are The Boss, and I bow to your tolerance.