* Gnats email can't handle attachments? [not found] <20040813160030.2A9BB1C400D@mailfilter.gointernet.co.uk> @ 2004-08-19 15:32 ` Adam Cade 2004-08-19 15:32 ` Chad Walstrom 2004-08-19 17:10 ` Help-gnats Digest, Vol 21, Issue 7 Adam Cade 1 sibling, 1 reply; 6+ messages in thread From: Adam Cade @ 2004-08-19 15:32 UTC (permalink / raw) To: help-gnats [-- Attachment #1.1: Type: text/plain, Size: 368 bytes --] Get the error "Error while trying to load list of jobs. Please contact technical support" It seems any binary format.. Gnats decode wrong. Rather then getting the image i get a load of code. Help?? Thanks in advance, -- Adam Cade , Go Internet Ltd email: adam@gointernet.co.uk voice: +44 (0)20 7419 0001 fax : +44 (0)20 7419 6519 web : www.gointernet.co.uk [-- Attachment #1.2: Type: text/html, Size: 858 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gnats email can't handle attachments? 2004-08-19 15:32 ` Gnats email can't handle attachments? Adam Cade @ 2004-08-19 15:32 ` Chad Walstrom 0 siblings, 0 replies; 6+ messages in thread From: Chad Walstrom @ 2004-08-19 15:32 UTC (permalink / raw) To: help-gnats; +Cc: Adam Cade [-- Attachment #1.1: Type: text/plain, Size: 432 bytes --] Adam Cade wrote: > Get the error "Error while trying to load list of jobs. Please contact > technical support" Is this GNATS or GNATSWEB that you're having problems with. > It seems any binary format.. Gnats decode wrong. Rather then getting > the image i get a load of code. Hmm.... -- Chad Walstrom <chewie@wookimus.net> http://www.wookimus.net/ assert(expired(knowledge)); /* core dump */ [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help-gnats Digest, Vol 21, Issue 7 [not found] <20040813160030.2A9BB1C400D@mailfilter.gointernet.co.uk> 2004-08-19 15:32 ` Gnats email can't handle attachments? Adam Cade @ 2004-08-19 17:10 ` Adam Cade 2004-08-22 11:55 ` Chad Walstrom 1 sibling, 1 reply; 6+ messages in thread From: Adam Cade @ 2004-08-19 17:10 UTC (permalink / raw) To: help-gnats [-- Attachment #1.1: Type: text/plain, Size: 4959 bytes --] ahh, sorry! GNATSWEB Thanks! help-gnats-request@gnu.org wrote: >Send Help-gnats mailing list submissions to > help-gnats@gnu.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gnu.org/mailman/listinfo/help-gnats >or, via email, send a message with subject or body 'help' to > help-gnats-request@gnu.org > >You can reach the person managing the list at > help-gnats-owner@gnu.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Help-gnats digest..." > > >Today's Topics: > > 1. RE: Unparseable replies from GNATS server (Stuart Stevens) > 2. Failed to connect to gnatsweb server (Stuart Stevens) > 3. Re: Failed to connect to gnatsweb server (Chad Walstrom) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Thu, 12 Aug 2004 10:26:50 -0700 >From: "Stuart Stevens" <stuart_stevens@sierralogic.com> >Subject: RE: Unparseable replies from GNATS server >To: "'Stuart Stevens'" <stuart_stevens@sierralogic.com>, > <help-gnats@gnu.org> >Message-ID: <E1BvJQ6-0003es-Fk@lists.gnu.org> >Content-Type: text/plain; charset="us-ascii" > >Hi > >Does anybody have a recommendation on how to add an append-only comments >field? > >I would like edits to allow new additions to the field and views to show the >whole field. > >Stuart > >-----Original Message----- >From: Stuart Stevens [mailto:stuart_stevens@sierralogic.com] >Sent: Wednesday, August 04, 2004 7:49 PM >To: 'Stuart Stevens'; help-gnats@gnu.org >Subject: RE: Unparseable replies from GNATS server > > > >In edit.c, set_field is being called with old_value set to 0x00. > > > > if ((old_value == NULL && new_value != NULL) > || (new_value == NULL && old_value != NULL) > || (new_value != old_value && strcmp (old_value, new_value) != 0)) > { > /* Ignore changes to readonly fields. */ > if (fieldDefForIndex (field)->readonly) > { > fieldsChanged[x] = 0; > set_field (new_pr, field, old_value, err); > } > else > { > fieldsChanged[x] = 1; > } > } > > > >-----Original Message----- >From: Stuart Stevens [mailto:stuart_stevens@sierralogic.com] >Sent: Wednesday, August 04, 2004 5:08 AM >To: 'Stuart Stevens'; help-gnats@gnu.org >Subject: RE: Unparseable replies from GNATS server > >I am running GNATS 4.0 on Linux - Red Hat 9. I pulled the TOT and rebuilt >this morning. I then run the daemon directly and I got a memory fault. The >daemon fails with the following field "Comment-new" added to dbconfig: > >field "Comments" { > multitext > read-only >} > >field "Comment-new" { > multitext > on-change { > append-to-field "Comments" { > "Comment added by %s on %D\n\n%s" > "$EditUserEmailAddress" "$CurrentDate" "$NewValue" > } > } > on-change { > set-field "Comment-new" { > "" > } > } >} > >I issued the following commands: > >lock 2511 stuart >editaddr stuart >edit 2511 ><email with changes> > >Next step is to get into the debugger. > >Any ideas? > >Thanks >Stuart > > > > > > > >------------------------------ > >Message: 2 >Date: Thu, 12 Aug 2004 20:06:17 -0700 >From: "Stuart Stevens" <stuart_stevens@sierralogic.com> >Subject: Failed to connect to gnatsweb server >To: <help-gnats@gnu.org> >Message-ID: <E1BvSRx-0003Fb-SV@lists.gnu.org> >Content-Type: text/plain; charset="us-ascii" > > >I am trying to pull down the latest gnatsweb code and I was unable to login. >I used CVS 1.11.2 from behind a firewall. > > >cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/gnatsweb login >CVS password: >cvs [login aborted]: connect to subversions.gnu.org(199.232.41.3):2401 >failed: Connectit > > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/pipermail/help-gnats/attachments/20040812/ffff46c9/attachment.html > >------------------------------ > >Message: 3 >Date: Fri, 13 Aug 2004 10:52:41 -0500 >From: Chad Walstrom <chewie@wookimus.net> >Subject: Re: Failed to connect to gnatsweb server >To: help-gnats@gnu.org >Message-ID: <20040813155241.GE21337@wookimus.net> >Content-Type: text/plain; charset="us-ascii" > >Stuart Stevens wrote: > > >>I am trying to pull down the latest gnatsweb code and I was unable to login. >>I used CVS 1.11.2 from behind a firewall. >> >> >>cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/gnatsweb login >>CVS password: >>cvs [login aborted]: connect to subversions.gnu.org(199.232.41.3):2401 >>failed: Connectit >> >> > >You're trying to connect to the subversion server for a CVS repository! >Bad! ;-) Take a look at this site for instructions: > >http://savannah.gnu.org/cvs/?group=gnatsweb > > > > -- Adam Cade , Go Internet Ltd email: adam@gointernet.co.uk voice: +44 (0)20 7419 0001 fax : +44 (0)20 7419 6519 web : www.gointernet.co.uk [-- Attachment #1.2: Type: text/html, Size: 7252 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help-gnats Digest, Vol 21, Issue 7 2004-08-19 17:10 ` Help-gnats Digest, Vol 21, Issue 7 Adam Cade @ 2004-08-22 11:55 ` Chad Walstrom 0 siblings, 0 replies; 6+ messages in thread From: Chad Walstrom @ 2004-08-22 11:55 UTC (permalink / raw) To: help-gnats; +Cc: Adam Cade [-- Attachment #1.1: Type: text/plain, Size: 256 bytes --] Adam Cade wrote: > GNATSWEB What version of gnatsweb are you using? Have you considered using latest CVS version? -- Chad Walstrom <chewie@wookimus.net> http://www.wookimus.net/ assert(expired(knowledge)); /* core dump */ [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats ^ permalink raw reply [flat|nested] 6+ messages in thread
* Gnats email can't handle attachments?
@ 2004-09-08 17:25 Adam Cade
2004-09-10 17:01 ` Stuart Stevens
0 siblings, 1 reply; 6+ messages in thread
From: Adam Cade @ 2004-09-08 17:25 UTC (permalink / raw)
To: help-gnats
Hi guys!
Need your need!
GnatsWeb seems to be coding the e-mail attachments wrong. Any binary
format seems to come out like:
>How-To-Repeat:
>Fix:
Unknown
>Unformatted:
----gnatsweb-attachment----
Content-Type: image/pjpeg; name="AmendJobError.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="AmendJobError.jpg"
/9j/4AAQSkZJRgABAQEAYABgAAD//gAcU29mdHdhcmU6IE1pY3Jvc29mdCBPZmZpY2X/2wBDAAoH
BwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8
SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7
Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAMABAADASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAA
AAQFAgMGBwEI/8QAXBAAAQMCAgQKBAgMAwcCBAQHAQACAwQRBRIGEyExFBUWIkFRVZTR0lRhldMy
NlNxgZKToRcjM0JSc3SRo7Kz8Ac0ViRDYnKDscFFwjV14fElJkRjZKKCljfD4v/EABoBAQEBAQEB
AQAAAAAAAAAAAAACAQMEBQb/xAA4EQACAQIDBAgGAgEFAQEBAAAAAQIDERITUSExkbEEQVJhgaHR
4RQVMnHB8AUiNCMzQmLxgiRy/90ABAAo/9oADAMBAAIRAxEAPwDl9B4KWbH81fhcuI0ccR1scbA4
gnY3eRtLrAAG5OwXXozNHtHMawevFFo3BT1URytjM2WQAncdhyPsD0EA7L3DgOA0QfV4jWUuE0bK
etc etc....
Any one have any help?
Thanks,
--
Adam Cade , Go Internet Ltd
email: adam@gointernet.co.uk
voice: +44 (0)20 7419 0001
fax : +44 (0)20 7419 6519
web : www.gointernet.co.uk
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Gnats email can't handle attachments? 2004-09-08 17:25 Gnats email can't handle attachments? Adam Cade @ 2004-09-10 17:01 ` Stuart Stevens 0 siblings, 0 replies; 6+ messages in thread From: Stuart Stevens @ 2004-09-10 17:01 UTC (permalink / raw) To: 'Adam Cade', help-gnats Adam There is a special section on MIME on the GNATS home page http://www.gnu.org/software/gnats/ . See http://www.gnu.org/software/gnats/mimedecode.html Text follows: GNATS > DECODING MIME E-MAIL A well-known problem for many users of GNATS is that MIME-ified mail messages are handled badly by GNATS. MIME is a standard way for "rich" content to be transferred by e-mail . This content might consist of arbitrary attachments with content such as images, sounds, executable files or plain text. A typical MIME e-mail message contains a plaintext part first, and then one or more parts containing attachments. Currently, GNATS makes no attempt to decode these messages. This is especially noticeable when letters such æ, ö, ß, å etc. are used in the subject field of PRs submitted by e-mail. Such messages get a synopsis containing the rather ugly looking string "=?iso-8859-1?Q?", underscores instead of spaces and the special letters themselves replaced by strings such as =F8, =E8 etc. In the message body, all special characters are replaced by =XX strings. These strings are commonly referred to as quoted printables. Thus, quoted printables will also be present in the Description field of the PR if the message body contained international characters. Most modern e-mail clients decode MIME e-mail messages properly, removing the iso string, translating underscores back to spaces and quoted printables to their special letter counterparts. However, GNATS does not contain functionality for this, so e-mail messages are filed directly into the database without any translation. Another big problem arises when users submit PRs by e-mail, containing attachments. Those parts of the message that contain binary data is simply dumped as long encoded blocks of data into the PR description, together with whatever plaintext the message might contain. The easiest way to solve this is by placing a parser script at the beginning of the line in the GNATS mail alias that pipes messages into queue-pr. The following Perl script uses Perl MIME modules to decode the message. It fully decodes headers and bodies of messages, stripping out parts of a message that are not plain text, decoding those parts and saving them to an archive directory. Separate directories are made to hold the contents of each message. A reference is then inserted into the original message, stating the location of the saved file. The parts of the message that were originally in plaintext get their quoted printables translated and are otherwise left alone. In order to use the script below, you need to download and install the following Perl modules on your system. Get the latest versions listed on the following pages: MIME-Base64 MIME-tools #!/usr/bin/perl # # parsemime.pl -- Yngve Svendsen, May 2001 # # Script to decode MIME-encoded mail messages. Fully decodes header # fields according to RFC2047. Merges multi-line header fields into # single lines. Decodes the message body, saving binary parts to disk. # Outputs a new message body, consisting of the plaintext message parts # and references detailing the location of the saved stripped-out # non-plaintext parts. use MIME::Parser; use File::Basename; undef $/; # We want to treat everything read from STDIN as one line $input = <>; $/ = "\n"; ($headers, $body) = split (/\n\n/, $input, 2); # Split MIME-multipart messages and store the parts in subdirectories # under the directory indicated by $output_path. Depending on which # mail system your site uses, the directory specified by $output_path might # have to have special permissions. If you have qmail, the dir should # be owned by the user 'alias'. Sendmail should be content with 'root' # as owner. my $output_path = '/path/to/archive/directory'; my ($parsed) = (basename($0))[0]; my $parser = MIME::Parser->new(); # Permission mask for output files. # These permissions are very lax. Replace with what is appropriate # for your system. $oldumask = umask 0002; $parser->output_under($output_path); $parser->output_prefix($parsed); $parser->output_to_core(); my $entity = $parser->parse_data($input); # Permissions for the directory containing the output files. # These permissions are very lax. Replace with what is appropriate # for your system. chmod 0775, ($parser->output_dir); # Process the headers: $procheaders = $headers; $procheaders =~ s/\?=\s\n/\?=\n/g; # Lines ending with an encoded-word # have an extra space at the end. Remove it. $procheaders =~ s/\n[ |\t]//g; # Merge multi-line headers into a single line. $transheaders = ''; foreach $line (split(/\n/, $procheaders)) { while ($line =~ m/=\?[^?]+\?(.)\?([^?]*)\?=/) { $encoding = $1; $txt = $2; $str_before = $`; $str_after = $'; # Base64 if ($encoding =~ /b/i) { require MIME::Base64; MIME::Base64->import(decode_base64); $txt = decode_base64($txt); } # QP elsif ($encoding =~ /q/i) { require MIME::QuotedPrint; MIME::QuotedPrint->import(decode_qp); $txt = decode_qp($txt); } $line = $str_before . $txt . $str_after; } # The decode above does not do underline-to-space translation: $line =~ tr/_/ /; $transheaders .= $line . "\n"; } # Reconstruct the message, made from headers and the MIME text parts # we saved earlier. Add references in the message body to the non-text # parts that have been stripped out and stored. The purgeable method # returns the full path of the files constructed from the different # message parts. print $transheaders . "\n"; foreach $file ($parser->filer->purgeable) { # Strip trailing spaces from filenames: $file =~ /(\S*)\s*$/; $file = $1; if ($file =~ /\.txt\s*$/) { # We have found a plaintext part. Include it in the new body: open PART, $file; while (<PART>) { print; } close PART; # Build list of files included in the new body. We will delete # these files further down. unshift @purgeables, $file; } else { # We have found a non-plaintext part. Add a reference to it in the # new body: print "\n\n** Attachment decoded and saved to \n** $file\n\n"; } } # Make the list we built the new list of purgeable files: $parser->filer->purgeable(\@purgeables); # Delete them: $parser->filer->purge; umask $oldumask; Set up the mail alias which receives bug reports to pipe messages through this script before it is piped into queue-pr. Like this (you should modify the path to queue-pr to fit your installation): | /path-to-script/script.pl | /usr/local/libexec/gnats/queue-pr -q Warning: Using this filter causes PRs to be stored in the Gnats database in a decoded format which might not be supported properly by all UNIXes. Outgoing mail from GNATS will also be unencoded, possibly resulting in problems when mail is transferred over the Internet. Some mail clients may also have problems with it. In short: your mileage may vary. ---------------------------------------------------------------------------- ---- GNATS > DECODING MIME E-MAIL First published: Wednesday, 09-May-2001 23:38:00 MET DST Last modified: Wednesday, 09-May-2001 23:38:00 MET DST yngve.svendsen@clustra.com -----Original Message----- From: help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org [mailto:help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org] On Behalf Of Adam Cade Sent: Wednesday, September 08, 2004 3:00 AM To: help-gnats@gnu.org Subject: Gnats email can't handle attachments? Hi guys! Need your need! GnatsWeb seems to be coding the e-mail attachments wrong. Any binary format seems to come out like: >How-To-Repeat: >Fix: Unknown >Unformatted: ----gnatsweb-attachment---- Content-Type: image/pjpeg; name="AmendJobError.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="AmendJobError.jpg" /9j/4AAQSkZJRgABAQEAYABgAAD//gAcU29mdHdhcmU6IE1pY3Jvc29mdCBPZmZpY2X/2wBDAAoH BwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8 SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAMABAADASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAA AAQFAgMGBwEI/8QAXBAAAQMCAgQKBAgMAwcCBAQHAQACAwQRBRIGEyExFBUWIkFRVZTR0lRhldMy NlNxgZKToRcjM0JSc3SRo7Kz8Ac0ViRDYnKDscFFwjV14fElJkRjZKKCljfD4v/EABoBAQEBAQEB AQAAAAAAAAAAAAACAQMEBQb/xAA4EQACAQIDBAgGAgEFAQEBAAAAAQIDERITUSExkbEEQVJhgaHR 4RQVMnHB8AUiNCMzQmLxgiRy/90ABAAo/9oADAMBAAIRAxEAPwDl9B4KWbH81fhcuI0ccR1scbA4 gnY3eRtLrAAG5OwXXozNHtHMawevFFo3BT1URytjM2WQAncdhyPsD0EA7L3DgOA0QfV4jWUuE0bK etc etc.... Any one have any help? Thanks, -- Adam Cade , Go Internet Ltd email: adam@gointernet.co.uk voice: +44 (0)20 7419 0001 fax : +44 (0)20 7419 6519 web : www.gointernet.co.uk _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-08 17:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20040813160030.2A9BB1C400D@mailfilter.gointernet.co.uk> 2004-08-19 15:32 ` Gnats email can't handle attachments? Adam Cade 2004-08-19 15:32 ` Chad Walstrom 2004-08-19 17:10 ` Help-gnats Digest, Vol 21, Issue 7 Adam Cade 2004-08-22 11:55 ` Chad Walstrom 2004-09-08 17:25 Gnats email can't handle attachments? Adam Cade 2004-09-10 17:01 ` Stuart Stevens
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).