[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sylpheed
Subject:    [sylpheed:21822] Re: binaries in newsgroups
From:       melvin.hadasht () free ! fr
Date:       2003-10-28 21:59:59
[Download RAW message or body]

On Tue, Oct 28, 2003 at 11:06:18PM +0000, Saulius Gedgaudas wrote:
> 
> Is it posible coding and decoding of binaries from newsgroups using Sylpheed?
> 

To encode a binary, just use the output of uuencode.
'man uuencode' says that the syntax should be:
uuencode [file] name
where 'file' is the name of the file to encode and 'name' is the filename as written in
the "begin " line of the inlined data, this name is in general the base name of the file
(i.e. without path information). If 'file' is absent, the file is taken from
standard input. 

So we need the output of something like 'uuencode $FILENAME `basename $FILENAME`'. Sylpheed
does not provide a file selector for the actions, but it lets you specify an arbitrary 
string that you enter in a special window when you execute the action. For this, use the %u 
token. 

Maybe something like this will work (no X to test at the moment)
FILENAME=%u; uuencode $FILENAME `basename $FILENAME` >

We take advantage of shell variables, and of the basename program. 

The '>' means the output of uuencode is to be inserted where the cursor is.

Just run that action when you compose your message, paste the filename you want in the input dialog and voilą.

-- 
Melvin Hadasht

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic