Re: [otrs] Exporting attachments from DB to FS

Have looked at the documentation for this but am unable to figure out where these attachments are saved once the parameter is enabled ... ? $Self->{TicketStorageModule} = 'Kernel::System::Ticket::ArticleStorageFS'; thanks, alex

Yes.
You can do this also in Admin -> Sysconfig -> Core::Ticket ->
Ticket::StorageModule: FS
2008/9/30 Alex
Have looked at the documentation for this but am unable to figure out where these attachments are saved once the parameter is enabled ... ?
$Self->{TicketStorageModule} = 'Kernel::System::Ticket::ArticleStorageFS';
thanks, alex _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

В сообщении от Wednesday 01 October 2008 02:46:57 Bohuslav Blín написал(а):
Yes.
You can do this also in Admin -> Sysconfig -> Core::Ticket -> Ticket::StorageModule: FS
Thanks for the idea, Bohuslav. Can you answer to question about storaging articles on FS? I'm switched to FS акщь DB. OTRS create folders by month, day and article number in /var/articles/* . But what is strange: If article has an attachment, then in this folder i see this files: -rw-rw-r-- 1 otrs apache 306 Sep 20 12:42 file-1 -rw-rw-r-- 1 otrs apache 32 Sep 20 12:42 file-1.content_type -rw-rw-r-- 1 otrs apache 4056505 Sep 20 12:42 pasport.jpg -rw-rw-r-- 1 otrs apache 30 Sep 20 12:42 pasport.jpg.content_type -rw-rw-r-- 1 otrs apache 5502648 Sep 20 12:42 plain.txt .content-type contains description about it. file-1 is a first text/plain part of letter. pasport.jpg is an attachment in this article. BUT why file plain.txt created in _every_ article folder? It contains all the same in original (npt parsed/decoded) form and double consumed size. How not to create plain.txt? -- Mike Lykov System Administrator, Domain Name Registrar REG.RU http://www.reg.ru/ +7 495 580-11-11 int. 504

Hi Mike,
2008/10/1 Mike Lykov
If article has an attachment, then in this folder i see this files:
-rw-rw-r-- 1 otrs apache 306 Sep 20 12:42 file-1 -rw-rw-r-- 1 otrs apache 32 Sep 20 12:42 file-1.content_type -rw-rw-r-- 1 otrs apache 4056505 Sep 20 12:42 pasport.jpg -rw-rw-r-- 1 otrs apache 30 Sep 20 12:42 pasport.jpg.content_type -rw-rw-r-- 1 otrs apache 5502648 Sep 20 12:42 plain.txt
.content-type contains description about it.
file-1 is a first text/plain part of letter. pasport.jpg is an attachment in this article.
BUT why file plain.txt created in _every_ article folder? It contains all the same in original (npt parsed/decoded) form and double consumed size.
How not to create plain.txt?
This is how otrs works. If you look at tables article_attachment and article_plain, you will see this data. For example you need file plain.txt when you want to look at plain (source) email in ticket view. Bohuslav.

/opt/otrs/var/article Ciao AleX Alessio Tosi Sistemi Informativi Tel. +39 0290026.812 Mob. +39 3486024492 OKI Systems (Italia) S.p.A. via Milano 11 20084 Lacchiarella MI - Italy View Alessio Tosi's LinkedIn profileView Alessio Tosi's profile Any opinions expressed in this email are those of the individual and not necessarily of the Company. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from the Company are confidential and solely for the use of the intended recipient. It may contain material protected by legal privilege. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. Please notify the sender immediately of the error and delete any copies of this message Warning: The Company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments. -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Alex Sent: Tuesday, September 30, 2008 8:41 PM To: otrs@otrs.org Subject: Re: [otrs] Exporting attachments from DB to FS Have looked at the documentation for this but am unable to figure out where these attachments are saved once the parameter is enabled ... ? $Self->{TicketStorageModule} = 'Kernel::System::Ticket::ArticleStorageFS'; thanks, alex _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (4)
-
Alessio Tosi
-
Alex
-
Bohuslav Blín
-
Mike Lykov