[Rt-commit] rt branch, 4.2/record-attachments-dropping, repushed
? sunnavy
sunnavy at bestpractical.com
Mon Jul 14 16:27:39 EDT 2014
The branch 4.2/record-attachments-dropping was deleted and repushed:
was 4e962aeefbf7f27f618c5fdc967447b8b0eaa314
now 1289ddecffc961dcd28b012725196f56fc5c6079
1: 78f7d02 ! 1: c610009 record attachments' dropping/truncation as txns
@@ -16,18 +16,8 @@
- $Filename
- );
+ my ( $encoding, $type, $note_args );
-+
-+ my $txn = RT::Transaction->new( RT->SystemUser );
-+ $txn->Load($args{'TransactionId'});
-+ if ( $txn->Type =~ /SystemError|Attachment(?:Truncate|Drop)/ ) {
-+ $encoding = 'none';
-+ $type = $Attachment->mime_type;
-+ $content = $Attachment->bodyhandle->as_string;
-+ }
-+ else {
-+ ( $encoding, $content, $type, $Filename, $note_args ) =
++ ( $encoding, $content, $type, $Filename, $note_args ) =
+ $self->_EncodeLOB( $Attachment->bodyhandle->as_string, $Attachment->mime_type, $Filename, );
-+ }
my $id = $self->SUPER::Create(
TransactionId => $args{'TransactionId'},
2: fd5c6fa = 2: 338128d test attachment dropping/truncation
3: 4e962ae ! 3: 5f6aebe make attachment truncate/drop and error txns more noticeable
@@ -31,3 +31,4 @@
.transaction .message-header-value.verify { font-weight: bold; }
+
-: ------- > 4: 1289dde refactor email sent failure system error txn to use the same tech as Attachment Truncate/Drop.
More information about the rt-commit
mailing list