Koozali.org: home of the SME Server

Logging on as one of the mailbox names...?

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #15 on: February 08, 2006, 06:42:28 AM »
Sure it can, but it doesn't retain the Read/Unread status of the individual messages.

And in one case, I had a mail that had a bunch of stuff quoted from websites, with each one of the cited bits beginning with From at the start of the line... and that message got split up into a whole bunch of short messages. Probably because my particular mail system did not create a seperate file identifying the start and stop points of all the messages... This is particularly odd because Elm, the mailreader I use to read that mailbox on the original machine, reads that mail in as one long mail rather than several short ones...

And a third problem...

Well...

Would you want to drag 500 individual messages over onto the IMAP server?  Followed by 500 more messages from another MBox file?

Didn't think so...!   :-D

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Logging on as one of the mailbox names...?
« Reply #16 on: February 14, 2006, 08:35:57 AM »
Quote from: "pfloor"
Ah, I thought you wanted something perminant.  You can use sudo and it will execute the script as a different user.

Log in as root and then:

First Read the manual:
man sudo

To run the script under tom you would do something like this:
sudo -u tom script_name -a -b -c

Hope this helps,

Paul


Okay, I copied the script to /bin and then entered the command as follows:

Code: [Select]
sudo -u username mb2md.pl -s boxname.sent -d /home/e-smith/files/users/username/Maildir/.Sentall on one line, and it didn't prompt me for username's password, instead I just got
Code: [Select]
sudo: unable to exec /bin/mb2md.pl: Permission denied
Aaaaargh!

Is there a way I can set mb2md.pl so that is it usable by all users?  And should/can I rename it to not have the .pl on the end and still have it be runnable?

Moto

Logging on as one of the mailbox names...?
« Reply #17 on: August 19, 2006, 05:06:11 PM »
Quote from: "pfloor"

Code: [Select]
sudo -u username mb2md.pl -s boxname.sent -d /home/e-smith/files/users/username/Maildir/.Sentall on one line, and it didn't prompt me for username's password, instead I just got
Code: [Select]
sudo: unable to exec /bin/mb2md.pl: Permission denied
Aaaaargh!

Is there a way I can set mb2md.pl so that is it usable by all users?  And should/can I rename it to not have the .pl on the end and still have it be runnable?


Just for the record i needed the same so copied the script to /tmp , made the script executable and ran it using the syntax 'sudo -u user ./mb2md.pl -s /pathtomailboxfile'  and the job was done.