Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to paste a 3K file into Thunderbird's "Write" window (i.e. for composing new messages).

This (sometimes) works:

date | xclip
# then use middle button to paste

This doesn't work:

cat /tmp/out.txt | xclip
xclip -o | wc    # just to make sure it got there - reports:      70     309    3233
# press middle mouse in Thunderbird's "Write" window - nothing is pasted

But this works:

cat /tmp/out.txt | xclip
# open gedit, paste into gedit, then select-all and copy
# paste into Thunderbird

Is there a limit to what Thunderbird can accept via the X-clipboard?

Is there another way to insert the contents of a file into a Thuderbird compose window?

I'm using Ubuntu 10.10.

share|improve this question
    
Are you sure that the problem is on Thunderbird's end? Is there not a limit to the X clipboard? (Also, any reason for not just attaching this beast?) –  new123456 Oct 3 '11 at 21:58
    
there's something else going on -- even the first example (date | xclip) doesn't always work. –  user5402 Oct 3 '11 at 22:07
add comment

2 Answers

How about using the compose command line?

thunderbird -compose "to='recipient@domain.com',subject='Test',body='`cat /tmp/out/txt`' "
share|improve this answer
    
that's interesting... –  user5402 Nov 10 '11 at 2:05
add comment

Somewhere on the web I found that xsel does the trick - I just tested it and will be using it from now on.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.