Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  

The only rose without thorns is friendship.


rocksolid / Helpdesk / uudecode driving me nuts

SubjectAuthor
* uudecode driving me nutstrw
`* Re: uudecode driving me nutstrw
 `- Re: uudecode driving me nutstrw

1
Subject: uudecode driving me nuts
From: trw
Newsgroups: rocksolid.shared.helpdesk
Organization: def5
Date: Wed, 23 Dec 2020 22:15 UTC
Path: i2pn2.org!rocksolid2!.POSTED.127.117.190.215!POSTED.localhost!not-for-mail
From: trw...@anon.org (trw)
Newsgroups: rocksolid.shared.helpdesk
Subject: uudecode driving me nuts
Date: Wed, 23 Dec 2020 22:15:46+0000
Organization: def5
Message-ID: <d1b7a3fc8932499e90b691717df6758e@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.org; posting-account="def.i2p"; posting-host="127.117.190.215";
logging-data="10707"; mail-complaints-to="usenet@novabbs.org"
View all headers

To decode attachments which are embedded in the body of an article I tried to make use of uudecode. On the cli this command works nicely:
uudecode -o /var/www/bbx/att/image.jpg /var/opt/msg/18329@test.com
It produces a correct file by the name of image.jpg in the path that was given. The same line put in a shellscript which is run by www-data produces the file under the right path and name, but the file is always empty (size is 0 bytes).
Other lines of the same script create files in the same directory without issue, so I assume it cannot be the permissions.
The same script run by root is also producing the file correctly, just called by www-data it is not. There is something I miss here, maybe a an ENV variable is not set and that causes uudecode to fail ? Something like that...

Any feedback appreciated.

cheers

trw

--
Posted on def4


Subject: Re: uudecode driving me nuts
From: trw
Newsgroups: rocksolid.shared.helpdesk
Organization: def5
Date: Wed, 23 Dec 2020 22:35 UTC
Path: i2pn2.org!rocksolid2!.POSTED.127.117.190.215!POSTED.localhost!not-for-mail
From: trw...@anon.org (trw)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: uudecode driving me nuts
Date: Wed, 23 Dec 2020 22:35:29+0000
Organization: def5
Message-ID: <382ad3edb09cb11128bf2c2e86bee41d@def4>
References: <d1b7a3fc8932499e90b691717df6758e@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.org; posting-account="def.i2p"; posting-host="127.117.190.215";
logging-data="20162"; mail-complaints-to="usenet@novabbs.org"
In-Reply-To: <d1b7a3fc8932499e90b691717df6758e@def4>
View all headers

10 s after I posted I realized that the file to decode was not named correctly....thanks for all your help :-]
def4 is not displaying embedded attachments (like def3 generates them)

--
Posted on def4


Subject: Re: uudecode driving me nuts
From: trw
Newsgroups: rocksolid.shared.helpdesk
Organization: def5
Date: Wed, 23 Dec 2020 22:46 UTC
Path: i2pn2.org!rocksolid2!.POSTED.127.117.190.215!POSTED.localhost!not-for-mail
From: trw...@anon.org (trw)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: uudecode driving me nuts
Date: Wed, 23 Dec 2020 22:46:41+0000
Organization: def5
Message-ID: <65405240713dfdd6d9937933bdd0d10f@def4>
References: <382ad3edb09cb11128bf2c2e86bee41d@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.org; posting-account="def.i2p"; posting-host="127.117.190.215";
logging-data="25787"; mail-complaints-to="usenet@novabbs.org"
In-Reply-To: <382ad3edb09cb11128bf2c2e86bee41d@def4>
View all headers

def4 is not displaying embedded attachments (like def3 generates them)

def4 is NOW displaying embedded attachments (like def3 generates them)

damn it

--
Posted on def4


1
rocksolid light 0.6.9
clearneti2ptor