On 10/9/06, Jonathan Angliss <jon@xxxxxxxxxxxxxxxx> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Arthur, > On Monday, October 02, 2006, Arthur wrote: > > A big company (BigCo.com) bought the smaller company (SmallCo.com) for > > which I work. My SmallCo.com mail server has about 500 users. When my > > SmallCo.com users send email through the SquirrelMail web client now, I > > would like the "from address" for the outgoing mail to be > > user@xxxxxxxxxx How can I change this for one user? > > > If I can change this for one user, I can probably write a script to > > change all my other users. Note that the usernames do not map exactly; > > that is, JoeSmith@xxxxxxxxxxx might map to smithj@xxxxxxxxx while > > JaneSmith@xxxxxxxxxxx might map to smithja@xxxxxxxxxx I can deal with > > the mapping myself. But I do not know how to set this for even one > > user. > > Are you using file preferences, or database preferences? If file > preferences, you can use a simple perl one liner... > > perl -pi -w -e 's/smallco/bigco/ig;' *.pref > > This will replace all occurances of smallco with bigco > (case-insensitive). This would need to be executed from the prefs > folder (see $data_dir in config/config.php). Make a backup first > obviously. If you're using database prefs, it might take a little > more work. If there is no email address set in user prefs, depending on the format of the IMAP usernames, changing $domain in your configuration file might also work. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users