[pskmail] Re: File uploads via PSKMail.

  • From: vk2eta@xxxxxxxxx
  • To: pskmail@xxxxxxxxxxxxx
  • Date: Fri, 05 Jun 2009 10:10:25 +0000


I had a look through the code and the only way I can see without code writting is to use the latest server (0.8.5) and the java client which allows you to attach a file to an email.

An option, if the objective is just to upload and not send the file by email is the follwing: in the current sever code, the attachement received by the server is deleted after being send, but by commenting out one line in the send_MIME() subroutine the file coud be left there and used for other purposes than emailing (like for an ftp or http server for example).

The line to comment out is:

`rm "$ENV{HOME}/.pskmail/uploads/$afile"`;

The directory $ENV{HOME}/.pskmail/uploads would then contain the files that were send as an attachment to the emails.

It seems that each email can only have one attachment but that needs to be confirmed. And of course that is only available with the java client whih will make Ian happy :).

Hope this helps.

73, John.

On 03/06/2009 8:49pm, stevez@xxxxxxxxxx wrote:
Hello all,

I was wondering if it is possible (and if so, how) to send a file to (or

even via) a PSKMail server.

I notice an uploads directory in my ~/.pskmail on my server.

I've also seen talk in the mailing list archives about speed comparisons

between binary and text uploads, and even some talk about updating

source code via PSKMail - so some way of uploading files must be

possible. The trouble is I have no idea how this would be done.

Any hints welcome, and I promise to update doco or the FAQ with what

ever I learn.

Thanks all

Steve (VK2ZSZ)

Other related posts: