Questions tagged [uuencode]

Uuencode is an algorithm for converting binary files to text. It is taken from the phrase "Unix-to-Unix encoding," as the first implementation was the Unix program "uuencode." It was originally used to transmit files over email and Usenet; it has been supplanted by MIME and Base64.

Uuencode is an algorithm for converting binary files to text. It is taken from the phrase "Unix-to-Unix encoding," as the first implementation was the Unix program "uuencode." It was originally used to transmit files over email and Usenet; it has been supplanted by MIME and Base64. See also .

58 questions
45
votes
7 answers

How to base64 encode /dev/random or /dev/urandom?

cat /dev/urandom is always a fun way to create scrolling characters on your display, but produces too many non-printable characters. Is there an easy way to encode it on the command-line in such a way that all of its output are readable characters,…
alexanderpas
  • 2,712
  • 2
  • 23
  • 33
10
votes
2 answers

Using sendmail for HTML body and binary attachment

Objective: To send mail (using sendmail) with HTML body and binary attachment. Followed the guidelines specified in the following…
compuneo
  • 351
  • 1
  • 3
  • 13
4
votes
1 answer

When using HTTP, which encoding is better, base64, yEnc, or uuencode?

My requirement is to encode data and send it across network via HTTP, but I am stuck trying to choose the best encoding technique. Which of the three above is best? Is there anything better? The criteria for "best" should be small size and fast…
Charzhard
  • 783
  • 1
  • 7
  • 19
3
votes
4 answers

Send a mail using 'sendmail' with uuencode, and having a subject alongwith

I am trying to send a mail with attachment using sendmail. The problem is I am unable to send a subject line along with this. The following command line fires two mails instead of one - one with the "Subject : Report", and the other with the…
bilkulbekar
  • 327
  • 2
  • 3
  • 10
3
votes
2 answers

Trying to determine if file has been uuencoded

I am trying to process a large collection of txt files which themselves are containers for the actual files that I am wanting to process. The txt files have sgml tags that set boundaries for the individual files I am processing. Sometimes, the…
PyNEwbie
  • 4,882
  • 4
  • 38
  • 86
3
votes
1 answer

Does Java has any standard mechanism for uudecoding?

I was writing a Java program to download attachments from POP3 email. Originally I do this with getting an input stream of a MimePart if its content type is validated. And then I can simply write the input stream into a local file through a…
peakingcube
  • 1,388
  • 15
  • 32
2
votes
3 answers

How can we figure out why certain uuencoded files are not decoding properly using Python?

We are trying to decode some uuencoded PDF files that are embedded in a txt file. The problem we have is that most of the PDF files decoded just fine using Python's uuencode library. Here is the code: try: …
Colby
  • 23
  • 3
2
votes
1 answer

Are there any special variations of uuencoding / uudecoding?

I have written a small program which can encode/decode a text with uuencode/uudecode. The code is based on the algorithm described on Wikipedia. It works fine when I encode/decode a string. But I have found a uuencoded file which I can't decode.…
kiritsuku
  • 52,967
  • 18
  • 114
  • 136
2
votes
1 answer

substitute for uuencode in UNIX shell scripting (to send an email from UNIX box)

I have been given a task to automate a script, and I have written a script for this purpose. This script needs to run from both datacentre and AWS. In the end the result needs to be zipped and sent to the intended recipient. I have used uuencode to…
Satya
  • 167
  • 3
  • 11
2
votes
1 answer

Linux: why colon (:) is removed from the file name when using uuencode?

I am trying to e-mail a file containing colon (:) character in the name: my_attachment_name=some_file_with_:_in_the_name.txt uuencode "${my_attachment_name}" "`basename \"${my_attachment_name}\"`" | mail -s "My Report ..."…
RGO
  • 4,586
  • 3
  • 26
  • 40
2
votes
1 answer

Does python zlib library support uuencode?

My python code is trying to decompress a uuencoded file using the zlib library. Here is the code snippet: self.decompress = zlib.decompressobj(wbits) . . buf = self.fileobj.read(size) . . uncompress = self.decompress.decompress(buf) My current…
Chetan
  • 1,724
  • 2
  • 14
  • 18
2
votes
2 answers

Send e-mail with multiple attachments using command line and sendmail

Is it possible to send multiple attachments with uuencode and sendmail? In a script I have a variable containing the files that need to be attached to a single e-mail like: $attachments=attachment_1.pdf attachment_2.pdf attachment_3.pdf…
user2656114
  • 949
  • 4
  • 18
  • 35
2
votes
3 answers

Using uuencode to attach multiple attachments from a variable to an e-mail and send using sendmail

I have a script that currently does: cat $body | uuencode $attachment $attachment | sendmail $sender -t What should I adjust so that $attachment could be multiple attachments? I have come up with the below but it doesn't look correct? cat $body…
user2656114
  • 949
  • 4
  • 18
  • 35
1
vote
1 answer

uudecode algorithm in javascript

i'm looking for a implementation of uudecode algorithm in javascript, anybody knows if any framework or native javascript implements this funcionality? I'm trying to find the solution in the web and i cant find anything, if any can helps i would…
Kalamarico
  • 5,466
  • 22
  • 53
  • 70
1
vote
1 answer

UUencode checksum fault

I have a stream of data that im attempting to encode with UUencode, in order to pass the data on to an external chip. The chip accepts 512 bytes of raw data at once. I encode 512 bytes with UUencode. As far as i understand, the data should be…
richzilla
  • 40,440
  • 14
  • 56
  • 86
1
2 3 4