Custom Query (332 matches)


Show under each result:

Results (301 - 303 of 332)

Ticket Resolution Summary Owner Reporter
#104 fixed tiny syntax error in bas anonymous
---	(revision 233)
+++	(working copy)
@@ -687,7 +687,7 @@
 				value = field.get('value')
 				options = field.get('options')
-				if value and options and value not in options
+				if value and options and value not in options:
 					value = options[int(value)]
 			if self.DEBUG > 10:
#105 fixed Better support for inline attachments and multiple body parts bas anonymous

Right now, email2trac assumes that the first text part of a message is its body, and that everything else is an attachment.

With modern email clients, it's possible to create a message that has an attachment in the middle of its body. MIME represents this kind of a thing as a text/plain part followed by an image type followed by another text/plain part.

When this happens, email2trac produces a ticket whose description contains only the first part of the body, and gives it two attachments: one for the image, and one for the second part of the body. This is wrong.

The patch that I am attaching implements the following features

Proper support for multiple body parts

If a message's body is broken up into several pieces (by attachments in the middle of the message), the ticket's description is set to the entire body, not just the first part

For example, from an email like this:

some text
<some image>
more text

the ticket that is created will have "some text" and "more text" in its description

Links to attachments inside the ticket description

[attachment:filename] links are automatically placed inside the ticket description, so that message text can clearly refer to them.

For example, an email like

I opened this file in your app:
<my file>
and I got the following error dialog:

will generate a ticket like this:

I opened this file in your app:

[attachment:"my file"]

and I got the following error dialog:


Inline image attachments

If an attachment is of type image/* and its Content-Disposition is inline, then a Trac Image macro is placed inside the ticket description in the appropriate place, so that the resulting ticket has the image inline where it belongs in the text.

The same email as in the previous example, if the image is inline, will result in:

I opened this file in your app

[attachment:"my file"]

and I got the following error dialog:

#125 invalid sendmail with email2trac problem bas anonymous

Hi, I've been looking through the archives and have followed the instructions for setting up sendmail with email2trac. i'm still having problems though

Mar 8 14:57:58 columbia sendmail[12261]: n28LvwGd012261: to=tracproj, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31888, relay=[] [], dsn=2.0.0, stat=Sent (n28LvwZD012262 Message accepted for delivery) Mar 8 14:57:58 columbia sendmail[12263]: n28LvwZD012262: alias <tracproj@…> => "|run_email2trac --project=versicUserDocs_trac --ticket _prefix=vsc_trac" Mar 8 14:57:58 columbia sendmail[12263]: n28LvwZD012262: to="|run_email2trac --project=versicUserDocs_trac --ticket_prefix=vsc_trac", ctladdr=<tracproj@col> (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=32499, dsn=5.3.0, stat=unknown mailer error 254 Mar 8 14:57:58 columbia sendmail[12263]: n28LvwZD012262: n28LvwZC012263: DSN: unknown mailer error 254

i setup the smrsh dir as per the instructions:

[root@columbia smrsh]# pwd /etc/smrsh [root@columbia smrsh]# ll total 24 8 drwxr-xr-x 2 root root 4096 Mar 8 05:21 . 16 drwxr-xr-x 112 root root 12288 Mar 8 15:00 .. 0 lrwxrwxrwx 1 root root 25 Mar 8 05:21 email2trac -> /usr/local/bin/email2trac 0 lrwxrwxrwx 1 root root 29 Mar 8 04:34 run_email2trac -> /usr/local/bin/run_email2trac

running email2trac from the commandline worked correctly and i got a new ticket created

[root@columbia smrsh]# email2trac --project=versicUserDocs_trac --ticket_prefix=vsc_trac < /opt/trac/email2trac/trunk/msg.txt

Anyone got this working with sendmail? Have i missed something?

Note: See TracQuery for help on using queries.